Repository navigation
fix(i18n): prune the wait-for-setup help copy #23799 removed - #23802
Conversation
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between cd275b7ab92bf34466bf516af7580c0bbe89c812 and 397eb16. You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between ceffecf and cd275b7ab92bf34466bf516af7580c0bbe89c812. 📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The change removes unused setup-help translations while retaining the setup-wait label. No concrete merge-blocking risk is evident. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
#23799 removed both `waitForSetupBeforeAgentHelp` call sites but left the entry in all six locale catalogs. The runtime-required generator treats an entry with no literal-default call site as one only the catalog can serve, so the two dead entries had to ship in the boot bundle for the catalog check to pass, and `verify:localization-catalogs` failed on every pull request until they did. Deleting them is the resolution rather than regenerating `en-runtime-required.json`: no call site can reach either string, so shipping them would add dead weight to the boot bundle to satisfy a check about what the bundle must contain. The sibling `waitForSetupBeforeAgent` heading keys stay; #23799 removed only the help paragraphs.
cd275b7 to
397eb16
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Prune the two dead
waitForSetupBeforeAgentHelpentries from all six catalogs — removing them fromen,es,fr,ja,ko, andzhtakes them out ofcollectRuntimeRequiredKeys' input, soen-runtime-required.jsoncoversen.jsonagain andstatic analysis(and the unit matrix behind it) unblocks.
I reproduced the fix: verify:localization-catalogs exits 0 (en-runtime-required.json covers en.json: 1748 of 14808), and a flattened key-set diff against base shows exactly the two intended removals per file with zero additions or value changes. All six catalogs parse, prettier --check is clean, and the src/renderer/src/i18n/ suite (21 files / 202 tests) plus verify:localization-extraction and audit-localization-coverage --check all pass. The untouched sibling waitForSetupBeforeAgent headings still have live call sites (NewWorkspaceComposerAdvancedSection.tsx:281, RepositoryHookPolicySettings.tsx:147, repository-git-hooks-search-entries.ts:121), and no waitForSetupBeforeAgentHelp reference remains anywhere in the tree.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Rebase onto updated
main(643f93f0, after #23801 merged) — the head advanced fromcd275b7to397eb16, but every changed-file blob in the PR diff is byte-identical (the TOC's per-file diff hashes are unchanged). No new authored content, so the initial review's verification still holds:verify:localization-catalogspasses, the key-set delta is exactly the two intendedwaitForSetupBeforeAgentHelpremovals per catalog, and the i18n suite is green.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…3700, #22943, #23720, #23793, #23776, #23796) into #23059 #23573 (keep a turn's bar on the prompt that opened it) is ported onto the turn-record membership instead of kept as a second owner lookup: - The running turn's bar comes from nativeChatTurnMembership, which now returns barTurnKey beside liveTurnKey. Where the host states each row's turn they are the same key: the running root turn's anchor, and a message handed over mid-turn is already scoped to that turn. Where the host states no scope, rows still group by position, so barTurnKey is the user entry the running record names (through the same anchors) while liveTurnKey keeps the positional live group, as #23573 kept row liveness on the newest prompt. - activeTurnOpenedBy, selectStructuredAgentTurnBars' openedBy and selectNativeChatActiveTurnKey are removed; the desktop list, the slot builder and both turn-status hooks read barTurnKey. - The queued-send clock (queuedUntil: a turn counts from the previous turn's end when its send waited behind it) is kept, read in the same one-pass walk over root turn records that keys timing by anchor. - Its tests are adapted to pass a journal: each runs on a host that states no scope (the original expectations), and the desktop and mobile bar tests also run on a scoped host. #23621 (a message Claude folds into its running turn no longer splits the turn) is host-only and merged as is: the translator contract carries both openTurnInLiveProviderCycle and #23059's command-turn members. Both sides grew the Claude translator past its line budget, so its result branch moves unchanged into claude-result-journaling.ts, beside claude-message-journaling.ts (the pre-commit lint refuses the merge without it). #23801's Codex child path (no error-driven end) and #23059's Codex /compact guard (a command turn ends only on turn/completed) both stand.

ELI5
A recent change deleted two lines of help text from the UI, but the translations for that text were left behind in all six language files. A check that makes sure every shipped string is actually reachable then failed on every pull request. This deletes the leftover translations.
What Changed
Before:
verify:localization-catalogsfailed insidestatic analysison every PR withen-runtime-required.json no longer covers en.json, namingauto.components.NewWorkspaceComposerCard.waitForSetupBeforeAgentHelpandauto.components.settings.RepositoryHooksSection.waitForSetupBeforeAgentHelp. Because the unit-test matrix only runs whenstatic analysissucceeds, this also skipped the entire unit suite.After: the check passes and the matrix runs. No user-visible change — the strings it describes were already removed from the UI.
The mechanism: #23799 deleted both
waitForSetupBeforeAgentHelpcall sites fromNewWorkspaceComposerAdvancedSection.tsxandRepositoryHookPolicySettings.tsxbut left the entries inen.jsonplus the five translated catalogs.collectRuntimeRequiredKeysmarks an entry required when no call site supplies a literal default, because in that case the catalog is the only thing that can serve it. With the call sites gone, both entries became "required" anden-runtime-required.jsonno longer covereden.json.This removes the two
waitForSetupBeforeAgentHelpentries fromen,es,fr,ja,koandzh. The siblingwaitForSetupBeforeAgentheading keys are untouched — #23799 removed only the help paragraphs, and those headings still have live call sites.Why
The error message suggests
pnpm run sync:localization-runtime-catalog, which would regenerateen-runtime-required.jsonand make the check pass. That is the wrong fix here: it would add two unreachable strings to the boot bundle in order to satisfy a check about what the boot bundle must contain. The generator's own doc comment calls an entry that every call site already spells "dead weight in the boot bundle"; an entry with no call site at all is strictly worse. The generator cannot tell "dynamic key" from "no references at all", so it fails safe toward shipping — pruning at the source is what actually resolves it.Alternative considered: leave the translations in place for a future re-introduction of the copy. Rejected — the catalogs are generated from live call sites, so a reinstated paragraph would re-extract its own entry, and stale entries are exactly what this check exists to catch.
Linked Issue
No pre-existing issue; this is a merge-time regression from #23799, found while auditing CI runner demand. It is the second of two independent breaks on
main; the other is #23801.Visual Proof
N/A— no UI change. The help paragraphs these strings backed were already deleted by #23799; this removes only their now-unreachable translations.Testing
Local, macOS:
pnpm run verify:localization-catalogs— passes (was the failing step); now reports1748 of 14808 English entries must ship in the boot bundlepnpm run verify:localization-extraction— passespnpm run verify:localization-coverage— passespnpm exec vitest run --config config/vitest.config.ts src/renderer/src/i18n/— 21 files, 202 tests passedThe edit was made structurally, not by line deletion: each catalog was parsed before and after and the flattened key sets compared, asserting exactly two removals per file, both ending in
.waitForSetupBeforeAgentHelp, with zero added and zero changed entries. That mattered because one of the two occurrences is the last entry in its object, so deleting its line alone would have left a trailing comma and invalid JSON.en.jsonis prettier-formatted in a wayJSON.stringifydoes not reproduce, so a full re-serialize was deliberately avoided to keep the diff at 6 lines.No new test:
verify:localization-catalogsis itself the regression test, and it now passes. It failed for exactly this class of change, which is the coverage working as intended.Review
Agent skill upstream boundary
Notes
Security: none. Cross-platform: none — catalog data only. Remote SSH: none. Mobile: unaffected, these are renderer catalogs. Backwards compatibility: removes two strings no call site can request. Performance: two fewer entries considered for the boot bundle.
Checklist