Skip to content

fix(web): autoscan debounce help says when a file counts as unchanged - #228

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
darthShadow:fix/autoscan-debounce-help
Dec 5, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
darthShadow:fix/autoscan-debounce-help

Conversation

@darthShadow

@darthShadow darthShadow commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

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:

Ignores repeat reports within this window for a file whose size and modification time have not changed. Deleted files, and files with a new size or modification time, are still scanned.

No keys added or removed; placeholders and the description stay the same.

Translations: run make translate-pr before merging.

AI disclosure: written with Claude Code (claude-opus-5-5) in T3 Code; reviewed by the author.

Translations

make translate-pr translated 38 strings; all 38 languages have every key (make check-complete).

Last pass, per language

Model: claude-opus-5-5

Language Written Failed Batches Claude calls Wall time
es 1 0 1 1 0 min
de 1 0 1 1 0 min
fr 1 0 1 1 0 min
pt-BR 1 0 1 1 0 min
nl 1 0 1 1 0 min
it 1 0 1 1 0 min
pl 1 0 1 1 0 min
tr 1 0 1 1 0 min
sv 1 0 1 1 0 min
da 1 0 1 1 0 min
nb 1 0 1 1 0 min
fi 1 0 1 1 0 min
cs 1 0 1 1 0 min
hr 1 0 1 1 0 min
ru 1 0 1 1 0 min
uk 1 0 1 1 0 min
ja 1 0 1 1 0 min
ko 1 0 1 1 0 min
zh-Hans 1 0 1 1 0 min
zh-Hant 1 0 1 1 0 min
ar 1 0 1 1 0 min
hu 1 0 1 1 0 min
ro 1 0 1 1 0 min
sk 1 0 1 1 0 min
sl 1 0 1 1 0 min
bg 1 0 1 1 0 min
el 1 0 1 1 0 min
ca 1 0 1 1 0 min
lt 1 0 1 1 0 min
lv 1 0 1 1 0 min
et 1 0 1 1 0 min
vi 1 0 1 1 0 min
pt-PT 1 0 1 1 0 min
id 1 0 1 1 0 min
ms 1 0 1 1 0 min
he 1 0 1 1 0 min
hi 1 0 1 1 0 min
th 1 0 1 1 0 min

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>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Dec 5, 2026
@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Localized Autoscan debounce descriptions now state that repeated reports are skipped only when file size and modification time remain unchanged. Translation state entries update the corresponding identifiers and metadata. No implementation changes are described.

Changes: Autoscan debounce localization

Layer / File(s) Summary
Debounce descriptions and translation state
catalog/*.arb, state/*.json
Locale descriptions specify the size and modification-time criteria for skipping repeated reports, and clarify that deleted files and files with either value changed are still scanned. Corresponding state entries update translation identifiers and, in many locales, model metadata.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: Minimal · up to 4bf71

This updates the Autoscan debounce help text in all languages to say that "unchanged" means the same file size and modification time. It has no effect on scanning behavior. The merge risk is minimal.

Architecture risk: Low · up to 4bf71

The catalog’s autoscan debounce description now tells users that a repeated file report is suppressed only when both size and modification time are unchanged; this clarifies the documented rule without changing runtime scanning.

Changed areas: catalog, state

Review details

Systems and components

  • observed — 39 changed files mapped to catalog.
  • observed — 38 changed files mapped to state.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the autoscan debounce help text now defines when a file counts as unchanged. The raw summary and PR description both describe rewritten help text in catalog and state files…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description explains that the web admin Autoscan debounce help text is rewritten to define when a file counts as unchanged, by size and modification time. It gives the reason: Silo server change #…
Full details: Title check

Explanation

The title names the change: the autoscan debounce help text now defines when a file counts as unchanged. The raw summary and PR description both describe rewritten help text in catalog and state files that define unchanged by size and modification time, so the title matches the main change.

Full details: Description check

Explanation

The description explains that the web admin Autoscan debounce help text is rewritten to define when a file counts as unchanged, by size and modification time. It gives the reason: Silo server change #5870 stops comparing inode, so a new inode alone no longer marks a file as changed. It quotes the old and new help text, notes that no keys or placeholders change, and mentions the translation step. This matches the changeset, which updates the debounce description across the catalog and state files.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Tools execution failed with the following error:

Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6dee40f7-6fb6-4c3b-8aba-8151d5792398
Commits

Reviewing files that changed from the base of the PR and between 0b3cec1 and 4bf71a3.

Files selected for processing: 77

  • catalog/ar.arb
  • catalog/bg.arb
  • catalog/ca.arb
  • catalog/cs.arb
  • catalog/da.arb
  • catalog/de.arb
  • catalog/el.arb
  • catalog/en.arb
  • catalog/es.arb
  • catalog/et.arb
  • catalog/fi.arb
  • catalog/fr.arb
  • catalog/he.arb
  • catalog/hi.arb
  • catalog/hr.arb
  • catalog/hu.arb
  • catalog/id.arb
  • catalog/it.arb
  • catalog/ja.arb
  • catalog/ko.arb
  • catalog/lt.arb
  • catalog/lv.arb
  • catalog/ms.arb
  • catalog/nb.arb
  • catalog/nl.arb
  • catalog/pl.arb
  • catalog/pt-BR.arb
  • catalog/pt-PT.arb
  • catalog/ro.arb
  • catalog/ru.arb
  • catalog/sk.arb
  • catalog/sl.arb
  • catalog/sv.arb
  • catalog/th.arb
  • catalog/tr.arb
  • catalog/uk.arb
  • catalog/vi.arb
  • catalog/zh-Hans.arb
  • catalog/zh-Hant.arb
  • state/ar.json
  • state/bg.json
  • state/ca.json
  • state/cs.json
  • state/da.json
  • state/de.json
  • state/el.json
  • state/es.json
  • state/et.json
  • state/fi.json
  • state/fr.json
  • state/he.json
  • state/hi.json
  • state/hr.json
  • state/hu.json
  • state/id.json
  • state/it.json
  • state/ja.json
  • state/ko.json
  • state/lt.json
  • state/lv.json
  • state/ms.json
  • state/nb.json
  • state/nl.json
  • state/pl.json
  • state/pt-BR.json
  • state/pt-PT.json
  • state/ro.json
  • state/ru.json
  • state/sk.json
  • state/sl.json
  • state/sv.json
  • state/th.json
  • state/tr.json
  • state/uk.json
  • state/vi.json
  • state/zh-Hans.json
  • state/zh-Hant.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@silo-triage silo-triage Bot added size/L 200–499 added + deleted lines (all files); change volume, not priority. and removed size/S 0–49 added + deleted lines (all files); change volume, not priority. labels Dec 5, 2026
@Quick104
Quick104 merged commit 1ec18ef into Silo-Server:main Dec 5, 2026
4 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L 200–499 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants