Skip to content

docs(autoscan): say a reported folder delete or rename now updates the library - #396

Merged
zZebrahz merged 1 commit into
mainfrom
docs/autoscan-folder-rename
Nov 18, 2026
Merged

zZebrahz merged 1 commit into
mainfrom
docs/autoscan-folder-rename

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #331

The Autoscan guide said a renamed, moved, or deleted folder's old titles stay until the next full library scan, with Partial scan shown until then. Since Silo-Server/silo-server#3093 and Silo-Server/silo-server#3172, that's only true when nothing reported the change, or in ebook and comic libraries. When monitoring or an autoscan source reports it, the scan that follows cleans up.

Pages changed

Page Change Preview
Keep libraries up to date Rewrote "If old titles stay after a folder rename" Open

What changed on each page

Keep libraries up to date

  • Opens with the fix: "If a renamed, moved, or deleted folder's old titles are still listed, choose Scan on the library to remove them."
  • Says what happens when monitoring or an autoscan source reports the change: a deleted folder's titles leave the library, and a renamed or moved folder's titles appear at the new location.
  • Adds that a renamed audiobook folder keeps its listening progress, collections, and metadata edits if the new folder is scanned within 24 hours and the book's tags include its author, narrator, and year. A book without those tags comes back as a new book.
  • Lists the two cases where old titles still wait for a full scan: nothing reported the change (including Sonarr and Radarr polling sources, which don't report deletes), or the folder is in an ebook or comic library, where Partial scan still appears.
  • Heading, anchor, and the page's search question about a renamed show folder are unchanged.

Worth checking: this section doesn't name the Sonarr On Series Delete and Radarr On Movie Delete triggers. #329 adds them to "Add a webhook source". Nothing here contradicts it: a title deleted with its folder leaves the library on the scan that follows the report.

Left out on purpose

  • Deleting the last folder in a library folder. Silo treats an empty library folder as possibly disconnected storage and keeps its titles (docs/architecture/missing-files.md; a full scan shows Empty root guarded). That's a separate topic for "Files are missing" on Add and manage libraries, not specific to renames.
  • The file removal grace setting (scanner.file_removal_grace) and how the audiobook match works. The page gives the outcome and the 24-hour default.
  • A folder whose parent folder is gone too stays protected. That's an edge case beyond the depth of this page.

Evidence

Source reviewed, not tested on a live server or device: silo-server ef2c24f9a (main), which includes #3093 (1649eef35c) and #3172 (08d1f4d0d1).

  • internal/scanner/scanner.go scopeRootVanished: a scoped scan of a deleted folder whose parent still exists walks as empty, so its files are reconciled and no Partial scan warning is set. internal/scanner/audiobook_scan.go uses the same check.
  • internal/scanner/ebook_scan.go: a missing scoped root is still a walk failure, so ebook and comic libraries keep the old entries and set partial_walk (Partial scan).
  • internal/scanner/audiobook_scan.go findAudiobookDuplicate: a renamed book reuses its item only when author, narrator, and year are all present. docs/architecture/missing-files.md covers the 24-hour grace hold.
  • internal/autoscan/arrwebhook/parse.go: rename events send both old and new paths, so a webhook source reports both sides.

Needs a hands-on check: nothing beyond the server PRs' own verification.

bun run test:docs: fail 0
bun run build: 106 page(s) built
Search: 140 of 151 queries find an expected page in the top 3.
git diff --check: clean

Follow-ups

  • The tag table on Set up audiobook libraries doesn't say which tag gives a book's year, which a renamed book now needs to keep its progress.

Risks

None identified. Documentation only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: T3 Code (Claude Code agent harness)
  • Tool(s): Claude Code, GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated at the maintainer's request
  • Adversarial review: n/a

Note

Update autoscan docs: reported folder deletes and renames now update the library

Rewrites the old-titles section in autoscan.md. It now tells users to run a manual scan when old titles remain, and explains how a scan handles reported changes and when audiobook state is kept.

  • Notes exceptions: Sonarr and Radarr polling sources do not report deletes, and ebook or comic libraries stay marked Partial scan until a full scan runs.

Macroscope summarized a0a3611.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

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: 5e359a47-1c2c-47b3-ba75-5b0a29c68f84
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 18, 2026
@silo-kody

silo-kody Bot commented Nov 18, 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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while.

@zZebrahz
zZebrahz merged commit 604e1f5 into main Nov 18, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview — a0a3611d Deployed Nov 18, 2026 by zZebrahz via teardown #170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/S 0–49 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autoscan guide: "If old titles stay after a folder rename" is out of date

1 participant