Skip to content

fix(i18n): regenerate the runtime catalog and localize the cookie example from #21462 - #21889

Merged
Jinwoo-H merged 3 commits into
mainfrom
fix-runtime-catalog-accounts-pane
Sep 21, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
fix-runtime-catalog-accounts-pane

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 21, 2026 •

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

Main is red on the static-analysis job since 7a6d10064e (#21462), for two reasons in sequence:

  1. verify:localization-runtime-catalog: eight en.json entries under auto.components.settings.AccountsPane.* and auto.components.settings.accounts.search.* were added without regenerating src/renderer/src/i18n/en-runtime-required.json. First commit is the generator's own --fix output, 12 lines, no hand edits.
  2. verify:localization-coverage (reached once 1 passes): one <code> example in accounts-pane-provider-setting-sections.tsx was left as raw JSX text. Second commit wraps it in translate with the key its placeholder twin already uses (auto.components.settings.AccountsPane.37b4b4a3f7).

Reproduced on pristine main (node config/scripts/generate-runtime-required-english-catalog.mjs exits 1 at 7a6d10064e, 0 at 646fa3645f; audit-localization-coverage.mjs --check exits 1 at 169bccc544 naming that site). On the branch all four localization checks exit 0, typecheck:web 0, oxfmt and oxlint 0 on the edited file. Control: with the second commit's edit reverted the coverage check reds naming exactly that site.

Every PR's merge ref fails this job until these land. Companion to #21874 (merged).

…countsPane strings

#21462 (7a6d100) added eight en.json entries without re-running the
generator, so `verify:localization-runtime-catalog` fails on main and on
every PR's merge ref. Generated with `--fix`; no hand edits.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
@coderabbitai

coderabbitai Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Understand this PR’s impact

Explore downstream dependencies and potential security impact with Blast Radius.

View blast radius →

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: 4006219a-7ec3-454b-8f95-96a46a8f0636

📥 Commits

Reviewing files that changed from the base of the PR and between c8c6da8 and a766162.

📒 Files selected for processing (1)
  • src/renderer/src/components/settings/accounts-pane-provider-setting-sections.tsx

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


📝 Walkthrough

Walkthrough

The English runtime localization now includes OpenCode Go authentication instructions for raw tokens and full cookie headers. It adds token examples, DevTools lookup guidance, and a Windows and WSL sharing note. Account search localization now requests the opencode.ai session cookie for rate-limit fetching. The cookie example in the settings component now uses translate().

Priority: ⬇️ Low

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description explains the changes, cause, testing, and scope. It does not follow the required template because it lacks the required Linked Issue format, Visual Proof or an explicit N/A explanation… Add the missing template sections. Include a Fixes #<issue-number> or equivalent linked issue, provide before-and-after visual proof or state N/A with a reason, document manual and automated testing status, complete the AI Disclosure an…
✅ Passed checks (3 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly identifies the runtime catalog regeneration and cookie example localization changes.
Full details: Description check

Explanation

The description explains the changes, cause, testing, and scope. It does not follow the required template because it lacks the required Linked Issue format, Visual Proof or an explicit N/A explanation, completed testing and checklist details, and the remaining template sections.

Resolution

Add the missing template sections. Include a Fixes #&lt;issue-number&gt; or equivalent linked issue, provide before-and-after visual proof or state N/A with a reason, document manual and automated testing status, complete the AI Disclosure and Agent skill boundary sections, and complete the checklist or explain each exception.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

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-required English catalog — adds the 8 en.json entries (.en-runtime-required.json) that #21462 introduced without re-running the sync, under auto.components.settings.AccountsPane.* and auto.components.settings.accounts.search.d1d2ae383c.

Verification on this branch: generate-runtime-required-english-catalog.mjs exits 0; re-running it with --fix leaves the working tree clean (byte-for-byte generator output, no hand edits); origin/main's catalog contains none of the 8 keys while en.json contains all 8, confirming the main red is real and cleared here. verify-localization-catalog and verify-localization-extraction also pass.

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

Jinwoo-H and others added 2 commits September 20, 2026 23:42
The same commit (#21462) left one `<code>` example as raw JSX text, so
`verify:localization-coverage` fails on main once the runtime catalog
passes. The text already has a key (its placeholder twin uses
`auto.components.settings.AccountsPane.37b4b4a3f7`); reuse it. Control:
with this edit reverted the check names exactly this site, with it
restored the check passes.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
@Jinwoo-H Jinwoo-H changed the title fix(i18n): regenerate the runtime-required English catalog for the AccountsPane strings fix(i18n): regenerate the runtime catalog and localize the cookie example from #21462 Sep 21, 2026

@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

  • Localized the OpenCode Go cookie-header example — wrapped the <code> text in accounts-pane-provider-setting-sections.tsx in translate('auto.components.settings.AccountsPane.37b4b4a3f7', 'auth=…; __Host-console_session=…'), clearing the verify:localization-coverage red. The key is reused from the same section's input placeholder and its en.json value matches the literal default, so no catalog regeneration is required — verified by a clean --fix run.

All four localization gates pass on the branch: generate-runtime-required-english-catalog.mjs (verify) exits 0 and --fix leaves the working tree clean; audit-localization-coverage.mjs --check, verify-localization-catalog.mjs, and verify-localization-extraction.mjs all exit 0.

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

@Jinwoo-H
Jinwoo-H merged commit 8a3a119 into main Sep 21, 2026
30 checks passed
@Jinwoo-H
Jinwoo-H deleted the fix-runtime-catalog-accounts-pane branch September 21, 2026 04:07
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