Skip to content

fix(i18n): prune the wait-for-setup help copy #23799 removed - #23802

Merged
nwparker merged 1 commit into
mainfrom
nwparker/prune-wait-for-setup-copy
Sep 29, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/prune-wait-for-setup-copy

Conversation

@nwparker

@nwparker nwparker commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​18 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12

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-catalogs failed inside static analysis on every PR with en-runtime-required.json no longer covers en.json, naming auto.components.NewWorkspaceComposerCard.waitForSetupBeforeAgentHelp and auto.components.settings.RepositoryHooksSection.waitForSetupBeforeAgentHelp. Because the unit-test matrix only runs when static analysis succeeds, 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 waitForSetupBeforeAgentHelp call sites from NewWorkspaceComposerAdvancedSection.tsx and RepositoryHookPolicySettings.tsx but left the entries in en.json plus the five translated catalogs. collectRuntimeRequiredKeys marks 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" and en-runtime-required.json no longer covered en.json.

This removes the two waitForSetupBeforeAgentHelp entries from en, es, fr, ja, ko and zh. The sibling waitForSetupBeforeAgent heading 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 regenerate en-runtime-required.json and 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 reports 1748 of 14808 English entries must ship in the boot bundle
  • pnpm run verify:localization-extraction — passes
  • pnpm run verify:localization-coverage — passes
  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/i18n/ — 21 files, 202 tests passed

The 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.json is prettier-formatted in a way JSON.stringify does not reproduce, so a full re-serialize was deliberately avoided to keep the diff at 6 lines.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

No new test: verify:localization-catalogs is 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

  • Not applicable, or this change follows `docs/reference/agent-skill-sharing-upstream-boundary.md` and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or `N/A` with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • `pnpm lint`, `pnpm typecheck`, `pnpm test`, and `pnpm build` pass (or CI will cover; local preferred)

@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] Removes help text strings from localization files.

The catalog-only PR appears safe to merge.

Summary

The PR removes two obsolete help-text keys from each of the six renderer localization catalogs while retaining the still-used heading keys.

  • No new actionable issue was identified in the current PR diff.

Reviews (2) · Last reviewed commit: "fix(i18n): prune the wait-for-setup help..."

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 0955d4fa-4b15-4771-b41c-b501eba56214

📥 Commits

Reviewing files that changed from the base of the PR and between cd275b7ab92bf34466bf516af7580c0bbe89c812 and 397eb16.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: bbe42d50-79f6-4bbb-bd78-242b9f8ed2a2

📥 Commits

Reviewing files that changed from the base of the PR and between ceffecf and cd275b7ab92bf34466bf516af7580c0bbe89c812.

📒 Files selected for processing (6)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The waitForSetupBeforeAgentHelp translation entry was removed from the settings entries and nested translation objects in the English, Spanish, French, Japanese, Korean, and Chinese locales. The waitForSetupBeforeAgent label remains.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to cd275

The change removes unused setup-help translations while retaining the setup-wait label. No concrete merge-blocking risk is evident.

Architecture Summary

Architecture risk: 🔵 Low · up to cd275

The change affects 1 system.

Changed systems: src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — src (service) was modified; 6 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in src/renderer/src/i18n/locales/en.json: Removed the root-level waitForSetupBeforeAgentHelp translation entry.
  • observed — Modified behavior in src/renderer/src/i18n/locales/en.json: Kept the waitForSetupBeforeAgent translation in the nested object and removed its adjacent waitForSetupBeforeAgentHelp entry.
  • observed — Modified behavior in src/renderer/src/i18n/locales/es.json: Removed the waitForSetupBeforeAgentHelp translation describing setup prerequisites.
  • observed — Modified behavior in src/renderer/src/i18n/locales/es.json: Kept the waitForSetupBeforeAgent translation unchanged; removed the following waitForSetupBeforeAgentHelp translation.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: removing obsolete wait-for-setup help translations. The trailing issue reference and word "removed" make the title slightly awkward, but it remains specif…
Description check ✅ Passed The description is complete and follows the repository template. It explains the change, cause, alternatives, testing, lack of UI impact, and checklist status. It also identifies why no linked issue w…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

#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.
@nwparker
nwparker force-pushed the nwparker/prune-wait-for-setup-copy branch from cd275b7 to 397eb16 Compare September 29, 2026 06:15

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Prune the two dead waitForSetupBeforeAgentHelp entries from all six catalogs — removing them from en, es, fr, ja, ko, and zh takes them out of collectRuntimeRequiredKeys' input, so en-runtime-required.json covers en.json again and static 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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Rebase onto updated main (643f93f0, after #23801 merged) — the head advanced from cd275b7 to 397eb16, 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-catalogs passes, the key-set delta is exactly the two intended waitForSetupBeforeAgentHelp removals per catalog, and the i18n suite is green.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit 2d358df into main Sep 29, 2026
38 of 42 checks passed
@nwparker
nwparker deleted the nwparker/prune-wait-for-setup-copy branch September 29, 2026 06:27
brennanb2025 added a commit that referenced this pull request Sep 29, 2026
brennanb2025 added a commit that referenced this pull request Sep 29, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant