Skip to content

fix(scanner): skip hidden files and __MACOSX folders in every library - #5931

Open
Rhainland wants to merge 18 commits into
Silo-Server:mainfrom
Rhainland:fix/scanner-skip-dot-files
Open

Rhainland wants to merge 18 commits into
Silo-Server:mainfrom
Rhainland:fix/scanner-skip-dot-files

Conversation

@Rhainland

@Rhainland Rhainland commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A (requested in discussion #5847)
Validation tasks: changes #1232 C1 (an autoscan change for a hidden file now shows as Ignored, with reworded reason text)

Other clients: Apple N/A (server-side catalog fix, no client change); Android N/A (server-side catalog fix, no client change); Roku N/A (server-side catalog fix, no client change)

When macOS copies a file to a network share, it writes a small AppleDouble file named ._<name> beside it, with the same extension. Silo catalogs these as media: ._Movie (2020).mkv becomes a second version of the movie, ._2_English.srt becomes an extra subtitle with no language, and a __MACOSX folder from an unzipped archive turns into duplicate titles. This affects every library on a share that Macs write to.

With this change, every library scan skips dot-prefixed files and __MACOSX folders, as Jellyfin does. The ignore files .ignore, .siloignore and .nomedia are hidden too, but they are still read. Hidden files that were already cataloged are removed by the next scan of their folder or library.

Approach

  • Scanner. The rule is scanner.SkippedFileName (a dot-prefixed base name). It applies in the media checks (SupportsVideoFile, SupportsAudioFile, SupportsEbookFile), the sidecar checks (IsLocalMetadataSidecar, IsSubtitleSidecar and the Subs/ folder listing) and theme song lookup, so every walker, single-file scan and monitor event follows it. __MACOSX joins the skipped housekeeping directories.
  • Scan requests for hidden files. The scan resolver answers a hidden file with path_ignored, the reason it already gives for a path the ignore files exclude. This covers a file that exists and one that was deleted. The real-time monitor, structured and legacy autoscan, Jellyfin autoscan, and the Audiobookshelf watcher therefore record a hidden file as ignored and queue no scan.
    • The Audiobookshelf watcher now gets the resolver's reason through the library handler, and answers 200 for any path_ignored refusal. Every other refusal still reaches it.
    • A change to an ignore file is not rejected as hidden, so it still rescans its folder.
  • Reason text. The web autoscan activity text for path_ignored now covers hidden files. The catalog change is fix(web): autoscan activity says a hidden file is skipped too silo-translations#234; this branch syncs it locally and will be re-synced from its release.
  • Docs. docs/architecture/scanner-ignore-files.md describes the rule and where it applies. realtime-monitoring.md, scan-api.md and admin-api.md are updated to match.

Validation

  • Go tests for scanner, scantrigger, autoscan, librarymonitor, themesongs, jellycompat, Audiobookshelf and the ABS admin adapter cover the new rule. Each new test fails without the change.
  • Full pre-PR gate: build, gofmt, go mod tidy -diff, vet, make lint-changed, make lint-router-recovery, make test-go, web lint, format, build, budget, make test-web (3799 passed), and every verify-* target in CONTRIBUTING passed. verify-actionlint, verify-shellcheck and verify-prometheus-rules were not run: the change touches no workflows, shell scripts or rules.
  • Running builds of main (835131f) and this branch on the same database and synthetic media: catalog, item detail, scan API, autoscan activity and the Audiobookshelf watcher. See Evidence.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-5931/

Surface and build: web app and web admin, main 835131f against this branch, same database and synthetic media.

The test folder holds Alpha (2020)/Alpha (2020).mkv, its ._ copy, a Subs/Alpha (2020)/2_English.srt with its ._ copy, and __MACOSX/Beta (2021)/Beta (2021).mkv. Results after a library scan:

# main
titles:    Alpha (2020), Beta (2021)
Alpha:     versions ["Alpha (2020).mkv", "._Alpha (2020).mkv"]
           external subtitles: language "en", language ""
POST /api/v2/scan {"path": ".../._Alpha (2020).mkv"}  -> accepted
Radarr Download for ._Alpha (2020).mkv               -> queued, subtree scan of the movie folder
ABS watcher add ._Book.m4b / unlink ._Gone.m4b      -> 200, one scan queued each

# this branch
titles:    Alpha (2020)
Alpha:     versions ["Alpha (2020).mkv"]
           external subtitles: language "en"
POST /api/v2/scan {"path": ".../._Alpha (2020).mkv"}  -> 400 "Hidden files are not scanned"
Radarr Download for ._Alpha (2020).mkv               -> ignored, path_ignored, no scan
ABS watcher add ._Book.m4b / unlink ._Gone.m4b      -> 200, no scan

# unchanged on both
POST /api/v2/scan for "Alpha (2020).mkv"            -> accepted (subtree)
POST /api/v2/scan for ".siloignore"                 -> 400 "Unsupported media file extension for library type"
Radarr Download for "Alpha (2020).mkv"              -> queued
ABS watcher add Book.m4b                            -> 200, one scan queued
ABS watcher add for a path outside the library      -> 400

Risks

  • Existing data. Hidden files that are already cataloged are removed by the next folder or library scan, under the usual missing-file rules. A deliberately dot-prefixed media file would go the same way; Silo skips dot-prefixed folders already, so this treats files the same way.
  • One-time metadata re-apply. Hidden sidecars no longer count in a folder's stored sidecar listing, so the first scan of an affected folder sees a changed listing and re-applies local metadata once.
  • Deleted hidden files. A deleted ._ file that was already cataloged is not reconciled by the event that reports its deletion, since that change is ignored. The next scan of its folder or library removes it.
  • Watcher answers. The Audiobookshelf watcher now answers 200, without scanning, where it used to answer 400 in two cases:
    • a path the library's ignore files exclude;
    • a deleted hidden file reported under the wrong library ID.
  • Translations. This branch pins a local build of the translations catalog. Before merge it is re-synced from the silo-translations release that contains fix(audiobooks): enforce download privilege on ABS-compat download routes #234.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, Codex CLI (review), GitHub CLI, Playwright (screenshots)
  • Model(s): claude-opus-5-5; gpt-6.2-sol (review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: Eight rounds of independent review by gpt-6.2-sol (Codex CLI) and claude-opus-5-5. Fixed findings include ignore files being rejected as hidden, autoscan outcomes for deleted hidden files, and the Audiobookshelf watcher's handling of hidden files and dot-named library roots. The final round on this head found nothing.

Note

Skip hidden files and __MACOSX folders in all library scans

  • Adds scanner.HiddenFile and scanner.SkippedFileName helpers, and skips dot-prefixed files in audio, ebook, video, subtitle, sidecar, and theme-song detection in ignore.go, subtitles.go, and related scanner files
  • Adds __MACOSX to scanner.ignoredDirNames for case-insensitive housekeeping-directory skipping
  • scantrigger.ClassifyLibraryPath and Resolver.resolveVanished now reject hidden files with a 400 path_ignored request error in scantrigger.go
  • Autoscan and the ABS admin watcher endpoint treat path_ignored as an ignored outcome rather than a scan error in service.go and admin_server.go; abs.AdminError gains an Ignored field
  • Updates docs, scan API error table, and web locale messages to describe hidden-file skipping
  • Behavioral Change: the three ignore files (.ignore, .nomedia, .siloignore) remain readable as rules; other dot-prefixed media files and hidden sidecars are no longer scanned, and hidden vanished paths record path_ignored instead of unresolved

Macroscope summarized 46d1a5b.

macOS writes an AppleDouble "._" file beside every file it copies to a
network share, with the original's extension, so scans cataloged
"._Movie (2020).mkv" as a second video. Scans now skip every dot-prefixed
file, as they already skip dot-prefixed folders, and the __MACOSX folder
left by unzipping a macOS archive.

The check sits in SupportsVideoFile, SupportsAudioFile and
SupportsEbookFile, so library walks, single-file scans and real-time
monitor events all apply it. Hidden subtitle files are no longer attached
as sidecars, and hidden sidecar-looking files no longer make the monitor
queue a folder rescan.
A Mac copying theme-music/Main.mp3 also writes theme-music/._Main.mp3,
which theme discovery probed and the monitor queued a theme scan for.
Each remaining case covers one new check: the video and ebook walks, the
__MACOSX skip, the Subs/<video>/ subtitle listing, the monitor's sidecar
routing and theme ownership.
Name the subtitle listing and the monitor's sidecar routing beside the
media-file checks, and say that the scan API rejects a hidden file.
.ignore, .siloignore and .nomedia are hidden files that still rescan their
directory when they change.
…le sidecar

The walk's sidecar listing recorded ._poster.jpg and ._movie.nfo, so a
Mac copying artwork into a folder made metadata recheck its items. The
sidecar checks now reject hidden names themselves, which also covers the
monitor's sidecar routing.
…ted type

A scan request or monitor event for ._Movie.mkv answered "Unsupported
media file extension", although .mkv is supported. Hidden files now get
path_ignored, the reason for a path the library's ignore files exclude,
which the Jellyfin autoscan endpoint already drops without trying the
parent folder.
Local sync of Silo-Server/silo-translations#234. Re-sync with --version
once that catalog release is published.
…er changes

.nomedia, .ignore and .siloignore are hidden files, so the hidden-file
rejection made Jellyfin autoscan drop an update for one instead of
scanning its folder to apply it.
The manual scan API scans a named file even when ignore files exclude
it, so its error table no longer says otherwise.
An Audiobookshelf watcher reporting ._Book.m4b got a 400, and an unlink
of one queued a scan of the missing path. scanner.HiddenFile is now the
one rule for a change scans skip; scantrigger and the watcher share it.
A library root may start with a dot, so the hidden-file skip applies only
to paths that are not existing directories.
…r decides

The watcher no longer judges paths by name. The handler keeps the
resolver's refusal as the error cause, the ABS adapter marks path_ignored
refusals, and the watcher acknowledges those while every other refusal
still reaches the caller. A vanished hidden name is ignored whether it was
a file or a folder, since scans skip hidden folders too.
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Dec 6, 2026
@silo-kody

silo-kody Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

Dot-prefixed files are excluded from media and sidecar scanning, while hidden scan targets receive an ignored-path error. Autoscan and Audiobookshelf watcher handling now record or acknowledge relevant ignored outcomes. Documentation and locale messages describe these rules.

Changes: Hidden-file scanning

Layer / File(s) Summary
Scanner exclusions
internal/scanner/*, internal/themesongs/*, docs/architecture/realtime-monitoring.md, docs/architecture/scanner-ignore-files.md
Scanner checks exclude dot-prefixed files from media, sidecar, subtitle, and theme-song handling. The scanner also skips __MACOSX directories. Tests cover hidden files and AppleDouble files.
Hidden-path refusals
internal/scantrigger/scantrigger.go, internal/api/handlers/libraries.go, internal/scantrigger/scantrigger_test.go, docs/scan-api.md
Scan classification and vanished-path resolution reject hidden paths with ReasonPathIgnored. API handlers retain the request error as the API error cause.
Ignored-path consumers
internal/audiobooks/abs/*, cmd/silo/abs_admin*, internal/autoscan/*, docs/admin-api.md, docs/architecture/scanner-ignore-files.md, web/src/locales/*, .silo-translations
Audiobookshelf watcher handling skips errors marked ignored, and autoscan records ignored outcomes for hidden vanished paths. Documentation and locale messages describe hidden-file exclusions and ignored outcomes.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant Resolve
  participant HiddenFile
  Client->>Resolve: Submit scan path
  Resolve->>HiddenFile: Check path
  HiddenFile-->>Resolve: Return hidden-path result
  Resolve-->>Client: Return RequestError with ReasonPathIgnored
Loading

Suggested reviewers: quick104, blurbery

Merge Risk: Low · up to 46d1a

Hidden-file exclusion works for scans and watcher updates. Before merging, make deleted hidden paths report path_ignored, correct the admin API documentation, and ship the updated translations with a published catalog pin.

Security architecture risk: Low · up to 46d1a

Silo will stop cataloging hidden files, and entries already in the catalog will wait for a qualifying folder or library scan to be retired. That delay is an intended tradeoff. The remaining concern is that the Audiobookshelf watcher can acknowledge a vanished hidden path before Silo verifies that it belongs to the library named in the request. The acknowledgment does not grant access to that library or start a scan.

Retained concerns

  • Trivial · security · observed: The Audiobookshelf watcher can return 200 for an unlink naming a vanished hidden path under a different enabled library. The resolver returns path_ignored before the Library API checks that the matched library is the requested one, and the watcher treats that result as handled. At the merge base, the same path could reach the library mismatch check and be refused. Keep the intended no-op acknowledgment for hidden paths, but verify requested-library ownership before acknowledging them. The existing library-ID comparison still prevents scan dispatch; it runs only when the resolver returns a target.

View findings in the submitted review

Security review details

Security Blast Radius

  • observed — The changed watcher behavior is on an administrator-only Audiobookshelf route. The affected acknowledgment can cross a configured library boundary, but the inspected path does not dispatch a scan in the other library or return catalog data.

Trust Boundaries and Controls

  • observed — The watcher validates the requested library against its access-filtered library list. Existing-path scans resolve within that library. Vanished-path scans resolve against configured libraries first and compare the resulting library ID only on successful resolution, leaving ignored refusals outside that comparison.

Public contracts

  • observed — The scan resolver refuses hidden files with HTTP 400 and a typed path_ignored reason. The Audiobookshelf watcher can return HTTP 200 without scheduling a scan when it receives that reason; a non-ignored refusal still surfaces, except for the existing already-running case.

Dependencies

  • observed — The Audiobookshelf adapter branches on the typed resolver reason preserved by APIError, not on the error message or on HTTP 400 alone.

Data and control flow

  • observed — Structured Autoscan file changes are resolved by exact path and can terminate as ignored without claiming a scan target. Legacy plugin paths are still grouped by parent directory, so a hidden basename alone does not stop a scan of its resolvable parent through that route.

Resilience and Maintainability Implications

  • observed — An ignored event is terminal for scan admission, not evidence that the catalog was reconciled. Repeating a refused hidden-file event does not schedule cleanup while the same conditions hold. A rename still processes both legs, so the non-ignored leg can fail independently or schedule its own scan.
  • observed — Autoscan can count a hidden-path refusal as resolved without enqueueing work. That does not override recovery for a transient resolver failure elsewhere in the same poll or an enqueue failure: both still prevent marker advancement.

Rollout and rollback

  • observed — At head the resolver stops direct scans of hidden files, including explicitly named files. Operators who need prompt retirement of existing hidden entries should run a covering folder or library scan rather than replay the hidden-file event. The scanner still applies its empty-scan confirmation and file-removal grace policies at reconciliation. An automatic cleanup schedule was not established.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: hidden (dot-prefixed) files and __MACOSX folders are now skipped during scans across every library. The changeset implements this in the scanner, scantrigger, autoscan…
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 is specific and on-topic. It explains that macOS AppleDouble ._ files and __MACOSX folders were being cataloged as media, and that the change makes every library scan skip dot-pref…
Full details: Title check

Explanation

The title names the main change: hidden (dot-prefixed) files and __MACOSX folders are now skipped during scans across every library. The changeset implements this in the scanner, scantrigger, autoscan, ABS watcher, docs, and locale text. The conventional-commit prefix 'fix(scanner):' matches the scanner-level rule.

Full details: Description check

Explanation

The description is specific and on-topic. It explains that macOS AppleDouble ._ files and __MACOSX folders were being cataloged as media, and that the change makes every library scan skip dot-prefixed files and __MACOSX folders. It also covers the scanner, scan-request, autoscan, Audiobookshelf watcher, docs, and locale changes, plus validation, risks, and evidence. This matches the changeset described in the raw summary.

Finishing Touches

Generate unit tests (beta)

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

Comment thread .silo-translations
Comment on lines +2 to +3
version=local-94d58a430627
sha256=-

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

Local translation pin prevents reinstalling the pinned catalog

A fresh checkout cannot reinstall the pinned translations because scripts/sync-translations rejects local-* versions. Pin the published release and its checksum when the catalog change is released.

Prompt for LLM
File .silo-translations, lines 2-3:

Local translation pin prevents reinstalling the pinned catalog

The local-build pin makes `scripts/sync-translations` without arguments fail because the script explicitly rejects `local-*` versions, so a fresh checkout cannot reinstall the pinned translations without a separate catalog checkout. Pin the published translation release and its checksum when the catalog change is released.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Known and listed under Risks: the pin points at a local build of Silo-Server/silo-translations#234 while that PR is open. Once its release is published, this branch re-syncs with --version <release> before merge, which replaces the pin and checksum.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. The local pin is a known temporary state, and the PR already documents the plan to replace it with the published release and checksum before merge. This is a pre-merge follow-up, not an additional finding.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments

Minor 5
  1. Deleted hidden paths return path_missing from ordinary scan requests.
  2. Qualify the hidden-file outcome.
  3. Qualify the ignore-file outcome.
  4. Update the translations for the changed reason.
  5. Pin the published catalog release before merging.
Trivial 1
  1. The Audiobookshelf watcher can return 200 for an unlink naming a vanished hidden path under a different enabled library. The resolver returns path_ignored before the Library API checks that the matched library is the requested one, and the watcher treats that result as handled. At the merge base, the same path could reach the library mismatch check and be refused. Keep the intended no-op acknowledgment for hidden paths, but verify requested-library ownership before acknowledging them. The existing library-ID comparison still prevents scan dispatch; it runs only when the resolver returns a target.
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: 0e026c09-5d04-4eb2-bc27-14c20f3e6cf3
Commits

Reviewing files that changed from the base of the PR and between 835131f and 46d1a5b.

Files selected for processing: 30

  • .silo-translations
  • cmd/silo/abs_admin.go
  • cmd/silo/abs_admin_test.go
  • docs/admin-api.md
  • docs/architecture/realtime-monitoring.md
  • docs/architecture/scanner-ignore-files.md
  • docs/scan-api.md
  • internal/api/handlers/libraries.go
  • internal/audiobooks/abs/admin.go
  • internal/audiobooks/abs/admin_server.go
  • internal/audiobooks/abs/admin_test.go
  • internal/autoscan/service.go
  • internal/autoscan/service_test.go
  • internal/scanner/audio_extensions.go
  • internal/scanner/ebook.go
  • internal/scanner/ignore.go
  • internal/scanner/ignore_test.go
  • internal/scanner/scanner.go
  • internal/scanner/sidecars.go
  • internal/scanner/subtitles.go
  • internal/scanner/subtitles_test.go
  • internal/scanner/video_extensions.go
  • internal/scantrigger/scantrigger.go
  • internal/scantrigger/scantrigger_test.go
  • internal/themesongs/themes.go
  • internal/themesongs/themes_test.go
  • web/src/locales/ar-XB.json
  • web/src/locales/en-XA.json
  • web/src/locales/en.json
  • web/src/locales/keys.ts

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

Comment thread .silo-translations
platform=web
version=2026.12.05-95a7440
sha256=23d4c6836d55d337939d391d9e07fd667e7a7294117f95d2cfd7fce2df11ad9d
version=local-94d58a430627

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Pin the published catalog release before merging.

A bare scripts/sync-translations now rejects this local pin. Merge the catalog change, then sync its published release.

As per coding guidelines, “Before the client pull request merges, re-sync with --version <release>” so the pin names a published release.

Source: Coding guidelines

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Planned: this branch re-syncs with --version <release> once Silo-Server/silo-translations#234 is released, before merge. See Risks in the PR body.

Comment thread docs/admin-api.md
`unresolved` (did not map to a scannable library location), `ignored` (empty path,
a file change that resolved to a whole library, or a file the library's ignore files
exclude) or `error` (resolve or enqueue failure). `reason` is a machine code for
exclude or that is hidden) or `error` (resolve or enqueue failure). `reason` is a machine code for

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Data Integrity & Integration · Quick win

Qualify the hidden-file outcome.

A legacy auto change for Movie/._Movie.mkv resolves its parent and can be queued. A structured change for .nomedia is exempt from the hidden-file check and can be unresolved. Limit this description to the hidden-file changes that the resolver rejects with path_ignored.


Minor · Data Integrity & Integration · Quick win

Qualify the ignore-file outcome.

A movie file below the library root can match .siloignore and still produce a queued outcome. The resolver widens it to a subtree scan before it checks file-level ignore rules. Describe ignored as the outcome when the resolver rejects the path, rather than for every excluded file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that the sentence overreaches: legacy auto changes are grouped by parent folder, so a hidden file reported that way can still queue its folder. I'll narrow it to structured file changes for hidden files in the push that re-syncs the translations release, so the branch moves once.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rhainland Thanks. I’m not marking the finding as addressed while the change is pending.


Learnings added

Learnt from: Rhainland
Repo: Silo-Server/silo-server PR: 5931
File: docs/admin-api.md:3658-3658
Timestamp: 2026-12-06T16:05:45.559Z
Learning: Within repository "Silo-Server/silo-server", only for files matching one of ["docs/admin-api.md"]: When reviewing Autoscan poll-event outcome documentation in docs/admin-api.md, do not assume every hidden-file report has an ignored outcome. Legacy `auto` changes are grouped by parent folder, so a hidden-file report can queue its folder.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

Comment thread internal/scantrigger/scantrigger.go Resolved
Comment thread web/src/locales/en.json
{
"type": 0,
"value": "The library's ignore files exclude this file, so it was not scanned."
"value": "Scans skip this file: it is hidden, or the library's ignore files exclude it."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Heavy lift

Update the translations for the changed reason.

French, German and Spanish still say that the library’s ignore files excluded the file. For a hidden file, that explanation is incorrect. Update the translations in the catalog and sync the generated files.

As per coding guidelines, “Every piece of text a user can see ships with its catalog entry and translations,” including “changed wording.”

Source: Coding guidelines

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other locales come from the catalog pull request, Silo-Server/silo-translations#234, whose translation pass rewrites every locale for this key. This branch re-syncs from that release before merge, which brings French, German, Spanish and the rest up to date. Translations aren't written by hand here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rhainland Thanks for clarifying. The catalog release and sync are the right approach; the generated files do not need hand edits.

Before merge, please verify that the release sync updates the affected key in the shipped locales. I’m not marking the finding as addressed until that sync is complete.


Learnings used

Learnt from: CR
Repo: Silo-Server/silo-server PR: 0
File: docs/architecture/i18n.md:0-0
Timestamp: 2026-11-22T05:05:17.984Z
Learning: Applies to web/src/locales/{*.json,keys.ts} : Applicability reference:
AGENTS.md: # Silo Server
## Translations
Every piece of text a user can see ships with its catalog entry and translations. That covers
new UI text and changed wording, and also server text that clients translate: default section
titles, new problem types and field-error codes, and settings manifest labels. A change that
adds such text is not done until the catalog side is handled.
[docs/architecture/i18n.md](docs/architecture/i18n.md) is the authority; the web call sites
are in `web/src/i18n/README.md`.

Source excerpt:
# Interface translation

## Catalog ownership

Never edit generated files. Change the catalog, then sync.
Learnt from: CR
Repo: Silo-Server/silo-server PR: 0
File: web/src/i18n/README.md:0-0
Timestamp: 2026-12-04T20:54:10.942Z
Learning: Applies to web/src/locales/** : Applicability reference:
AGENTS.md: # Silo Server
## Translations
Every piece of text a user can see ships with its catalog entry and translations. That covers
new UI text and changed wording, and also server text that clients translate: default section
titles, new problem types and field-error codes, and settings manifest labels. A change that
adds such text is not done until the catalog side is handled.
[docs/architecture/i18n.md](docs/architecture/i18n.md) is the authority; the web call sites
are in `web/src/i18n/README.md`.

Source excerpt:
# Translating the web app

## Converting an area

2. Sync: `scripts/sync-translations --local <silo-translations checkout>` (or
   `--version <release>` once releases exist). Commit `web/src/locales/` and
   `.silo-translations` with the change. Never edit generated files.
Learnt from: CR
Repo: Silo-Server/silo-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-11-17T15:42:14.500Z
Learning: Applies to web/src/locales/{*.json,keys.ts} : Source excerpt:
# Silo Server

## Translations

- Never edit `web/src/locales/*.json` or `keys.ts` by hand. They are generated, and the next
  `scripts/sync-translations --version` silently drops any key the catalog lacks, which breaks
  the typecheck in whichever pull request syncs next.
Learnt from: CR
Repo: Silo-Server/silo-server PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-11-13T01:46:15.300Z
Learning: Source excerpt:
# Silo Server

## Translations

- Interface text lives in `Silo-Server/silo-translations` (`catalog/en.arb`), never in client
  code. Add the key there with a `description`, typed `placeholders`, and `x-platforms` when
  only some clients show it. Web text goes under `web.<area>.*`, and admin-only text under
  `web.admin.*`. Reuse a key only when its English and meaning both match.

You are interacting with an AI system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish 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.

1 participant