Skip to content

[bug] Complete Refresh on a hand-matched series hides its folder from the library and Unmatched Items #5337

Backlog

Description

@Quick104

What happened

Running Complete Refresh on a series that an admin matched by hand, from a folder no provider matches on its own, removes it from the library and from Catalog Health → Unmatched Items. Only the Metadata Matcher queue still counts the folder (pending, no_candidates). The refresh job ends failed after its 60 s relink wait, and the next scan deletes the now-empty series. The folder comes back only when its match back-off ends (an hour, then a day, then parked) or when an admin presses Retry now in the Metadata Matcher, which nothing points them to.

For a folder that does have candidates, the old matched series stays listed with no seasons until the next scan, while the folder reappears as a new unmatched item.

Steps to reproduce

  1. Add a folder to a Series library that no provider matches, and wait for it in Unmatched Items.
  2. Match it by TVDB id (Match → Search by TVDB id → Apply Match).
  3. On the matched series, Manage → Refresh Metadata → Complete Refresh.
  4. Look at the library and Unmatched Items; run a library scan and look again.

Expected behavior

The folder stays visible and fixable: either the series is rebuilt, or the folder returns to Unmatched Items right away (#1249: "keep unmatched items visible and manually fixable").

Actual behavior

The folder is in neither the library nor Unmatched Items until its back-off expires or an admin uses Retry now.

Cause

prepareCompleteRefresh (internal/adminjob/item_refresh.go) clears the folder's file links. The scan re-queues the series root, but the queue upsert keeps the existing available_at (GREATEST(...) in internal/metadata/series_root_match_queue_repo.go:125), so a root already backed off as no_candidates isn't re-run. With nothing rebuilt, the job fails with errNoRebuiltContent and the empty item is removed at the next scan.

Silo version / commit

2970 · a16a24720 (local sandbox). Found during agent runtime testing for validation tasks #1250 (C2) and #1251 (C2). A remaining case of the closed #934, whose fix is in this build.

Evidence: https://evidence.siloserver.org/r/silo-server/v1-validation-1250/

AI disclosure

  • AI harness: Claude Code (in T3 Code).
  • AI tools: GitHub CLI, Playwright.
  • AI models: claude-sonnet-5-5 (testing), claude-opus-5-5 (verification and this report).
  • AI involvement: fully AI-generated. No person has reproduced it yet; filed at the maintainer's direction.
  • Independent review: a separate claude-opus-5-5 agent reproduced it on its own sandbox, confirmed Retry now restores the folder, and traced the cause above.

Filed with Claude Code (claude-sonnet-5-5 testing, claude-opus-5-5 verification) and GitHub CLI at the maintainer's direction.

Activity

  1. added
    bug
    on Nov 25, 2026
  2. added
    impact: usability
    priority: P1
    triaged
    on Nov 25, 2026
  3. Quick104 commented on Nov 25, 2026

    @Quick104
    ContributorAuthor

    Same bug on Movies, from agent runtime testing for validation task #197 (AC2) on the same build:

    • Movies use their own match queue with the same back-off upsert (GREATEST(available_at) in internal/metadata/movie_match_queue_repo.go:117), so a fix limited to the series queue would leave Movies broken.
    • Movies add a variant: an unmatched film that was only edited by hand (not matched) also disappears from the library and Unmatched Items after Complete Refresh.

    Evidence: https://evidence.siloserver.org/r/silo-server/v1-validation-197/

    Posted with Claude Code (claude-sonnet-5-5 testing, claude-opus-5-5 verification) and GitHub CLI at the maintainer's direction.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimpact: usabilitypriority: P1triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions