Repository navigation
fix(web): autoscan debounce help says when a file counts as unchanged - #228
Merged
Quick104 merged 2 commits intoDec 5, 2026
Merged
Conversation
Autoscan now treats a file as unchanged when its size and modification time match, without the inode. The help under the debounce window says so, and that deleted files and files with a new size or modification time are still scanned. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Codex (gpt-6.2-sol) <noreply@openai.com> Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
…s unchanged in every language
Quick104
added a commit
to darthShadow/silo-server
that referenced
this pull request
Dec 5, 2026
Pin the published catalog release that carries the autoscan debounce help text in every language (Silo-Server/silo-translations#228). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quick104
added a commit
to Silo-Server/silo-server
that referenced
this pull request
Dec 5, 2026
) * fix(playback): a seek resumes with 206 after inode churn or chmod A direct-play resume sends Range with If-Range. The ETag it carried came from the file's device, inode and change time, so a FUSE or FAT mount that renumbers its inodes, a chmod, a removed hardlink, or a switch to another host made the tag differ and the server answered 200 from byte 0. On Windows and other platforms without a filesystem revision the response had no ETag at all. The direct-play ETag is now sent on every platform, Windows included. It is a SHA-256 of the file's size, its modification time to the microsecond, and its first and last 64 KiB (the whole file under 128 KiB). It holds no device, inode or change time, so it survives inode churn, chmod and hardlink removal, and matches across API servers that see the same size and modification time. A process-wide cache of 4,096 entries, keyed on the path, the local filesystem revision and the hashed size and time, means the file is read only on a miss. The tag changes once at upgrade (dsr1 to dsr2). Changed answers: - A failed or short read of the sampled bytes answers 500 with no ETag, as a failed open does, on direct play and on the local download routes that share the function. Nothing is cached. - The tag does not prove byte equality. Two changes keep the old tag: a same-size edit that keeps or restores the modification time and leaves both sampled ends unchanged, and, on a mount whose stat hides a write (rclone), an edit at a sampled end until the next stat change, restart or eviction. A stale If-Range then gets 206, If-Match passes, and If-None-Match answers 304. - A node or proxy mount that dates a file differently sends another tag, so a resume that switches to it gets 200. Autoscan's debounce token drops the inode too. It is now file:<size>:<mtime in microseconds>, the same inputs the scan decides change by, so inode churn and a report handled on another node no longer queue a second scan. In exchange, a replacement with the same size and the same microsecond modification time, reported again inside debounce_seconds, is not rescanned, and other work on that row (repair of a missing file, probe repair, sidecar subtitles) waits for the next report or scheduled scan. This reverses the inode check that #1931 added for same-size replacements. The admin API reference, the stream-resume architecture note, the proxy's OpenAPI description and the autoscan help text now describe these rules. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Codex (gpt-6.2-sol) <noreply@openai.com> Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> * docs(playback): name the rolling-upgrade exception for direct-play tags During a rolling upgrade, servers still on the older dsr1 tag and servers on the new tag send different tags for the same file, so a resume that crosses them gets a full 200. The stream-resume note now says so beside its claim that the tag survives a switch between API servers. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Codex (gpt-6.2-sol) <noreply@openai.com> Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> * fix(playback): log a failed direct-play tag read Most ServeDirectPlay callers discard its error, so a storage error in the sample read answered 500 with nothing in the server log. Log it as a warning without the media path. Also correct the resume doc: the dsr1 to dsr2 change restarts old resumes after any upgrade, and a cached tag can outlive a same-size rewrite on a local disk within one change-time tick. Update the stale test comment and drop the windowsGOOS constant that lost its last user. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(playback): a failed tag read serves the file without an ETag A failed or short read of the sampled bytes answered 500 on direct play and on the local download routes that share the tag function. The tag is only a validator, so one unreadable sample cost the viewer or the download the whole file. Both paths now log a warning without the media path and serve the file with no ETag. Nothing is cached, so the next request samples again. Download serving had no log of its own for this failure; it does now. With no tag, http.ServeContent answers a resume that sends If-Range with an entity tag with the full 200, fails an If-Match entity tag with 412, and never matches an If-None-Match entity tag. Date-form If-Range and the * wildcard keep their standard handling. The stream-resume note describes the new behavior in place of the 500. The sample-read tests now expect a 200 with no ETag, for a plain GET and for Range with If-Range. The direct-play and download error unwrapping uses errors.AsType. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Codex (gpt-6.2-sol) <noreply@openai.com> Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> * chore(web): sync translations 2026.12.05-1ec18ef Pin the published catalog release that carries the autoscan debounce help text in every language (Silo-Server/silo-translations#228). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Codex (gpt-6.2-sol) <noreply@openai.com> Co-authored-by: Quick104 <31828688+Quick104@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrites the help under the debounce window on the web admin Autoscan settings page (
web.admin.settings.autoscan.polling.debounce.description) so it says when autoscan treats a file as unchanged.A Silo server change (Silo-Server/silo-server#5870) makes autoscan compare a file's size and modification time, to the microsecond, and stop comparing its inode. A file on a network or FUSE mount that reports a new inode for the same content then no longer counts as changed. The old text, "Ignores repeat reports of an unchanged file within this window. Changed or deleted files are still scanned.", didn't say what "unchanged" means. The new text names the two values:
No keys added or removed; placeholders and the description stay the same.
Translations: run
make translate-prbefore merging.AI disclosure: written with Claude Code (claude-opus-5-5) in T3 Code; reviewed by the author.
Translations
make translate-prtranslated 38 strings; all 38 languages have every key (make check-complete).Last pass, per language
Model: claude-opus-5-5