Skip to content

fix(i18n): drop the stale TerminalPane.minimumContrast entries from the runtime catalog (main red again) - #19575

Merged
nwparker merged 1 commit into
mainfrom
nwparker/drop-stale-minimum-contrast-runtime-catalog
Sep 10, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/drop-stale-minimum-contrast-runtime-catalog

Conversation

@nwparker

@nwparker nwparker commented Sep 8, 2026 •

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

ELI5

#19566 deleted seven unused English strings from en.json. #19544 was tested against a main that still had them, so it merged a regenerated shipped catalog that includes those seven — and now the catalog names strings that no longer exist. The check that compares the two fails again on every PR. This regenerates the shipped catalog from the current en.json; the only change is removing the seven stale entries.

Root cause

Measured on a literal detached checkout of main@12f53da: exit 1, "Shipped entries whose text disagrees with en.json:" followed by exactly the 7 keys. Flattened-JSON check: 7 shipped keys with no en.json entry, 0 genuine text mismatches.

The fix

pnpm run sync:localization-runtime-catalog — the non-destructive script that writes only en-runtime-required.json (not the destructive sync:localization-catalog) — regenerated from the current en.json. The diff is exactly the inverse of #19544's hunk: −10/+1, the seven entries and their block removed. No other key added, removed, or changed.

Verification (on main@12f53da + this commit)

Check Result
verify:localization-runtime-catalog (the failing step) exit 0 — "covers en.json: 1680 of 14189"
verify:localization-catalog exit 0 (output identical to untouched main; control run)
verify:localization-coverage exit 0
oxfmt --check en-runtime-required.json clean

Systemic

This is the third stale-base incident on main today, and this one re-broke a lane fixed 29 minutes earlier. Same mechanism as #19542/#19551: a PR's checks are green against the base snapshotted at trigger time, not the base it lands on. Nothing warned anyone — the PR was green, and main has no push-triggered CI to surface the break after merge. The control that prevents this is a strict status check / up-to-date-base requirement on main, which currently has no branch protection or rulesets at all.

…he runtime catalog

#19566 deleted seven orphan `TerminalPane.minimumContrast` entries from
en.json. #19544, validated against a main that still contained them, merged
a regenerated en-runtime-required.json that ships those seven entries. The
generator classifies a shipped entry with no en.json counterpart as
`contradicting`, which is a hard failure, so `verify:localization-runtime-
catalog` has been red on main again since 12f53da.

Regenerate the shipped catalog from the current en.json. The only change is
the removal of those seven entries; the generator exits 0 afterwards.
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

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: 960b2d24-9ae5-40d7-be49-29b6f8a768e5

📥 Commits

Reviewing files that changed from the base of the PR and between 12f53da and 36635e8.

📒 Files selected for processing (1)
  • src/renderer/src/i18n/en-runtime-required.json

Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

The pull request removes the minimumContrast localization block from the English runtime-required translations. The removed entries cover automatic, disabled, pinned, placeholder, suffix, description, and title settings. No exported or public entities change.

Merge Risk: ⚪ Minimal · up to 36635

This removes orphaned runtime localization entries and restores catalog consistency without changing user-facing settings behavior. No current merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the root cause, fix, scope, and verification results in detail. However, it omits several required template sections, including What Changed, Why, Linked Issue with a Fixes re… Add the missing template sections. Include the required linked issue reference, write N/A with a reason for Visual Proof because this change has no UI or interaction change, document testing and platforms, complete the Agent skill upstream …
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: removal of stale TerminalPane.minimumContrast entries from the runtime catalog. The parenthetical phrase is informal but does not make the title misleadin…
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.
Full details: Description check

Explanation

The description explains the root cause, fix, scope, and verification results in detail. However, it omits several required template sections, including What Changed, Why, Linked Issue with a Fixes reference, Visual Proof or an explicit N/A, Testing checkboxes and platform details, Review, Agent skill upstream boundary, Notes, and the final Checklist.

Resolution

Add the missing template sections. Include the required linked issue reference, write N/A with a reason for Visual Proof because this change has no UI or interaction change, document testing and platforms, complete the Agent skill upstream boundary and Checklist items, and add the required Notes and Review sections.

  • Fix all pre-merge checks with AI

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.

@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

  • Regenerated runtime catalog — src/renderer/src/i18n/en-runtime-required.json drops the stale TerminalPane.minimumContrast block (7 leaf entries) that #19566 removed from en.json but #19544's regen re-shipped against a pre-#19566 base.

Verified independently: node config/scripts/generate-runtime-required-english-catalog.mjs exits 0 (covers en.json: 1680 of 14189); no code reads TerminalPane.minimumContrast; the only surviving minimumContrast in en.json is auto.components.settings.terminal.search.minimumContrast.*, which terminal-typography-search.ts still references and this PR does not touch.

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

@nwparker
nwparker merged commit e74c22a into main Sep 10, 2026
29 checks passed
@nwparker
nwparker deleted the nwparker/drop-stale-minimum-contrast-runtime-catalog branch September 10, 2026 09:27
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