Skip to content

fix(metadata): keep AI item translations through a scheduled refresh - #2479

Merged
Quick104 merged 1 commit into
mainfrom
fix/2473-item-refresh-keeps-ai
Oct 14, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/2473-item-refresh-keeps-ai

Conversation

@Quick104

@Quick104 Quick104 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #2473
Validation tasks: none

Since b0a417c, a scheduled metadata refresh replaces AI-translated item overviews and taglines with the item's canonical-language text, stored as provider text. A French AI overview on an English item becomes the English overview after the next scheduled French refresh. On-view and automatic translation then treat the field as filled, so nothing repairs it.

b0a417c (for #2473) clears AI-written text before the refresh merge so that provider text can replace it. On an existing item refreshed in a non-canonical language, the item builder doesn't receive the provider's localized text: the refresh passes the canonical-language result as its accumulator. The cleared fields then fill with that canonical text.

Approach

The item localization builder carries AI text forward again, as it did before b0a417c. Season and episode builders receive provider-only results, so they keep b0a417c's behavior, and so does the item merge's copying of the source columns. Item refreshes still label carried-forward AI text as provider text. #2473 stays open for that; it needs the localized provider result passed to the item builder separately, which is a larger change to the refresh path.

b0a417c reached main without a pull request by mistake; this is the review fix the issue comment promised.

Validation

  • A new builder test, a fill-empty refresh handed canonical text over stored AI text, fails on main and passes with this change.
  • internal/metadata passes, and make lint-changed reports no issues.
  • Not reproduced on a live deployment. The regression was found by a gpt-6.1-sol (Codex) review of b0a417c, which reproduced it with an in-memory test of the refresh helpers, and confirmed against source.

Evidence

Before and after the change, the builder test shows a fill-empty refresh replacing a stored French AI overview with the English text on main, and keeping it with this change. Nothing was captured on a live deployment.

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

Risks

None identified. The change undoes part of b0a417c.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; Codex
  • Model(s): claude-opus-5-5; gpt-6.1-sol
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: gpt-6.1-sol (Codex) reviewed b0a417c and found this regression; this change is its suggested scope narrowed to the item builder. A background gpt-6.1-sol review of 59153eb found nothing further.

🤖 Generated with Claude Code

b0a417c cleared AI-written item overview and tagline text before the
refresh merge so provider text could replace it. A refresh in a
non-canonical language passes the canonical-language result to the item
builder, so a fill-empty refresh wrote canonical text into the cleared
fields and stored it as provider text. The item builder carries AI text
forward again; seasons and episodes, whose builders get provider-only
results, keep the b0a417c behavior.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 14, 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 ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T20:25:29.746123Z 59153eb PR opened
🔒 Security Review ✅ Completed 2026-10-14T20:26:05.990422Z 59153eb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 15ddaad1-b63c-4eb5-abf9-a73d7a0a8f0c
📥 Commits

Reviewing files that changed from the base of the PR and between 99d5623 and 59153eb.

📒 Files selected for processing: 2
  • internal/metadata/fallback_unification_test.go
  • internal/metadata/service.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish labels Oct 14, 2026
@silo-triage

silo-triage Bot commented Oct 14, 2026

Copy link
Copy Markdown

The fix changes what users see: a scheduled refresh should retain the translated overview/tagline rather than replace it with canonical-language text. Restoring earlier behavior is still a visible change, so Evidence: none, no user-visible change does not fit. Please add before-and-after captures of the same item's displayed text after the refresh on main and this branch, identifying the surface and builds. If using the web app, include desktop and phone-width captures or show that mobile is unaffected.

@macroscopeapp

macroscopeapp Bot commented Oct 14, 2026

Copy link
Copy Markdown

visible — evidence missing.

  • internal/metadata/service.go: scheduled refresh preserves AI-translated item overviews and taglines instead of replacing them with canonical-language text, changing localized item descriptions users see. The Evidence section has no before-and-after captures and incorrectly says there is no user-visible change; add before-and-after captures of the same item on each affected client surface, with the surface and build/commit identified. If no client renders these fields, include before-and-after response excerpts for the same item. The note that this was not reproduced on a live deployment does not explain why evidence could not be captured.

Suggested fix: No diff — add the requested evidence under ## Evidence, or explain why it could not be captured.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

Comment thread internal/metadata/service.go Resolved
@Quick104
Quick104 merged commit c8885b4 into main Oct 14, 2026
22 checks passed
@Quick104
Quick104 deleted the fix/2473-item-refresh-keeps-ai branch October 14, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant