Skip to content

fix(i18n): add the three activity keys #18245 left out of en.json - #18250

Merged
nwparker merged 1 commit into
mainfrom
fix/localization-catalog-activity-keys
Sep 2, 2026
Merged

nwparker merged 1 commit into
mainfrom
fix/localization-catalog-activity-keys

Conversation

@nwparker

@nwparker nwparker commented Sep 2, 2026 •

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

Problem

verify:localization-catalog and verify:localization-extraction both exit 1 on main. Three keys referenced from source are missing from en.json:

auto.components.activity.ActivityPrototypePage.activityOptions
dashboard.sidebar.closeActivity
dashboard.sidebar.openActivity

All three were introduced by c2fce80 (#18245) and are absent at its parent.

Why nobody saw it

main was also failing oxlint max-lines on src/shared/process-table-snapshot.ts. Because the Lint step fails first, every later step in static analysis — including both localization checks — was skipped. #18246 fixed the lint error and has now landed, so this localization failure is the next blocker for every open PR.

The break reached main because #18245 was merged past a red required check: its static analysis failed at 20:36:06 and it merged at 20:43:06. Separately, #18226 merged 8 seconds after its CI started (run created 20:42:07, merged 20:42:15, cancelled 20:42:39). Neither is in scope here, but they are the useful context for whoever owns CI merge policy — a green-required-check gate would have caught this before it reached main.

Fix

pnpm run sync:localization-catalog resolves only the statically-analyzable key (activityOptions). The two dashboard.sidebar.* keys are selected through a ternary in SidebarHeader.tsx, so the catalog tool cannot see them; the extraction check does, and reports them with an empty default. Those two are added by hand.

Total diff: 3 keys, 5 insertions in en.json, no churn elsewhere.

English strings match the inline translate(key, fallback) defaults at each call site exactly, which is also what SidebarHeader.test.tsx asserts as aria-label:

key string
dashboard.sidebar.openActivity View activity
dashboard.sidebar.closeActivity Turn off activity view
auto.…ActivityPrototypePage.activityOptions Activity options

No #18245 UI follow-up needed

All three call sites use translate(key, fallback) with correct English fallbacks, so the UI has been rendering the right copy all along — no raw keys, no placeholder text were user-visible. The only breakage was CI. The keys still belong in the catalog: without them the strings are invisible to the translation pipeline and can never be localized (they were counted as missing in all four non-English locales).

Verification

pnpm run verify:localization-catalog     # exit 0 (was 1)
pnpm run verify:localization-extraction  # exit 0 (was 1)
pnpm test src/renderer/src/components/sidebar/SidebarHeader.test.tsx  # 12 passed

Confirmed the three added keys introduce zero new inline-default drift (drift set is byte-identical before and after against a fixed extraction snapshot).

verify:localization-catalog and verify:localization-extraction both exited 1
on main. The failure was masked: the Lint step failed first on max-lines, so
every later static-analysis step was skipped.
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 038c80bf-1cc9-479c-b6e6-1677a23ef6bb

📥 Commits

Reviewing files that changed from the base of the PR and between 817827b and 96a26df.

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

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


📝 Walkthrough

Walkthrough

The English locale adds the activityOptions string for the agent activity options menu. It also adds openActivity and closeActivity strings for dashboard sidebar controls.

Merge Risk: ⚪ Minimal · up to 96a26

This localized change adds three missing English catalog entries without altering application behavior, and no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description gives clear problem, cause, fix, scope, and verification details, but it does not follow the repository template. The required Linked Issue entry is blank, and the required Visual Proo… Add the missing template sections. Provide an issue reference after "Fixes #". For this non-visual catalog-only change, add "N/A" with a brief reason under Visual Proof. Document testing steps and platforms, AI disclosure if applicable, rev…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: adding the three missing activity localization keys to en.json. It is concise and specific.
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 gives clear problem, cause, fix, scope, and verification details, but it does not follow the repository template. The required Linked Issue entry is blank, and the required Visual Proof, Testing, AI Disclosure, Review, boundary, Notes, and Checklist sections are missing.

Resolution

Add the missing template sections. Provide an issue reference after "Fixes #". For this non-visual catalog-only change, add "N/A" with a brief reason under Visual Proof. Document testing steps and platforms, AI disclosure if applicable, review considerations, the agent skill boundary checkbox, Notes, and the required Checklist items.

Full details: Docstring Coverage

Explanation

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 files. (1 skipped: 1 unsupported.)

  • 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 — added three missing i18n catalog keys to en.json that were introduced by #18245 but not registered in the catalog, causing both verify:localization-catalog and verify:localization-extraction to fail on main.

  • activityOptions under auto.components.activity.ActivityPrototypePage — auto-resolved by the sync tool.
  • openActivity / closeActivity under dashboard.sidebar — added by hand (ternary-selected in SidebarHeader.tsx, so the sync tool cannot see them).

All three English strings match the translate(key, fallback) defaults at the call sites byte-for-byte; the JSON nesting is correct; no user-visible behavior change.

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

@nwparker

nwparker commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

CI failure analysis: test / tests node 24 5/8 is a pre-existing flake, not this change

Two checks went red. verify is only an aggregator — its log shows it failed for exactly one reason, test: expected success, got failure. Notably that same log records STATIC_ANALYSIS: success, which is the real-CI confirmation that this PR clears both localization gates.

So there is one underlying failure:

FAIL src/main/skills/skill-install-lock.test.ts > skill install lock
     > publishes a complete candidate atomically when acquisitions overlap
AssertionError: promise rejected "Error: ENOENT ..." instead of resolving
Caused by: ENOENT: no such file or directory, scandir
  '/tmp/orca-skill-lock-test-Bmnhmu/state/locks/2a00...lock'

Why it is not caused by this PR

  1. No coupling. The diff is three string entries in the renderer i18n catalog. skill-install-lock.ts / -owner.ts / its test contain no reference to i18n, en.json, or locales. It is a main-process filesystem lock test.
  2. Documented precedent in this exact file. The most recent commit to it is 4e058d4, "Fix flaky CI tests by adding retry logic and increasing timeouts" (Fix flaky CI tests by adding retry logic and increasing timeouts #15635), whose message reads: "Increase skill install lock timeout from 100ms to 5s to account for fsync cost plus retry duration on loaded CI runners."
  3. Fix flaky CI tests by adding retry logic and increasing timeouts #15635 fixed only one of six call sites. It bumped line 48 to timeoutMs: 5_000 and left timeoutMs: 100 at lines 60, 71, 112, 147 and 285. Line 112 is inside the failing test.

Mechanism

Line 112 acquires secondRelease with a 100ms budget. On a loaded runner that budget expires exactly as #15635 describes, the candidate is never published, so the lock directory does not exist — and readPublishedOwner(lockPath) at line 128 calls readdir on the missing directory, producing the observed ENOENT: scandir. That is the failure mode #15635 documented, at a call site it did not fix.

Local evidence

pnpm test src/main/skills/skill-install-lock.test.ts → 11/11 passed, 11 consecutive runs, 8 of them under saturating CPU load (8 busy loops) to imitate a loaded runner. No reproduction.

Recommended follow-up (deliberately not in this PR)

Apply #15635's own fix to the five remaining timeoutMs: 100 sites in skill-install-lock.test.ts. Kept out of scope here because this PR is the last blocker on the localization gates and should not carry an unrelated test change.

@nwparker
nwparker merged commit 1d34d76 into main Sep 2, 2026
53 of 55 checks passed
nwparker added a commit that referenced this pull request Sep 2, 2026
Takes #18246 (process-table max-lines) and #18250 (i18n keys) so this PR's
merge ref is recomputed against a green base.
nwparker added a commit that referenced this pull request Sep 2, 2026
Takes #18246 (process-table max-lines) and #18250 (i18n keys) so this PR's
merge ref is recomputed against a green base.
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…json (stablyai#18250)

verify:localization-catalog and verify:localization-extraction both exited 1
on main. The failure was masked: the Lint step failed first on max-lines, so
every later static-analysis step was skipped.
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