Repository navigation
fix(metadata): keep AI item translations through a scheduled refresh - #2479
Conversation
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
|
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 |
|
visible — evidence missing.
Suggested fix: No diff — add the requested evidence under Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
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
internal/metadatapasses, andmake lint-changedreports no issues.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
AI Disclosure
🤖 Generated with Claude Code