Fix a playback regression where image subtitle requests could appear to stop entirely after stream cache teardown. Subtitle event cache builds now run in the background, while frame requests return quickly with no-frame responses until parsing completes, allowing the player to keep polling and begin showing captions as soon as data is ready.\n\nAlso improve seek marker placement by anchoring the subtitle triangles to the seek track element so they line up with the actual bar. Add regression coverage to ensure renderImageSubtitleFrame returns promptly while cache build is still pending.
Stop retaining stream sessions after the last viewer closes playback. When lease count reaches zero, the stream session now tears down immediately instead of waiting for in-flight request counters or idle timers. This clears stream output and subtitle caches as soon as viewers are gone, matching expected close behaviour.\n\nAlso harden request-finish handling so late response callbacks are safe after session teardown, and add regression coverage proving zero-viewer sessions are removed immediately even when an asset response is still finishing.
Reduce caption lag by coalescing overlapping current subtitle frame requests into a single in-flight fetch so playback no longer churns requests during transient server latency. Add explicit prefetch lifecycle logging so subtitle diagnostics now show requested/sent/received/not-available events for lookahead work as well as current frame fetches.\n\nAdd two seek bar indicators for subtitle timing visibility: a left-pointing marker for the last received caption start time and a right-pointing marker for the last requested caption start time. The markers use a white fill with a thin black outline and are updated from subtitle frame headers so they reflect caption start times rather than request timestamps.\n\nExpand shared video player tests to cover single-flight behaviour, prefetch telemetry, and seek marker rendering.
Admins can now delete subtitle debug log files from the debug browsing flow. This removes access-denied failures from the debug menu and adds route coverage to prevent regressions.
Add periodic stream expiry sweeping, throttle thumbnail cache sync heavily while streams are active, and cap subtitle log context memory with LRU trimming to prevent long-run buildup.
The installer now asks whether to run the service as root using a y/N prompt. For automation and non-interactive installs, FILEMANAGER_SERVICE_RUN_AS_ROOT still works as an explicit override.
Folder refresh permission repair now applies chmod only to the opened folder and its direct children, instead of walking the full subtree. This keeps navigation fast on large trees while still unblocking access as users browse deeper folders.
Documented the new chmod/listing behaviour and installer root-mode toggle in the technical reference, and regenerated the test index to include the new files route coverage group.
The service installer now supports an explicit root-run mode via FILEMANAGER_SERVICE_RUN_AS_ROOT=1. In root mode it omits the User directive and enables recursive chmod-on-list via service environment settings so access repair works automatically on folder refresh.
When enabled through environment settings, opening or refreshing a folder now performs a best-effort recursive chmod before listing items. This helps folders uploaded via other systems remain accessible in the file manager without manual intervention.\n\nThe behaviour is covered with route tests that verify chmod is applied when enabled and unchanged when disabled.
Record live subtitle request timing in the browser console and persist batched diagnostics to capped local cache log files for both authenticated playback and share playback.