Repository navigation
fix(ui): preference sync, picker arming, zoom, chat status, and reverted locales - #11241
Conversation
| export function tolerateUnknownValues<TShape extends z.ZodRawShape>(shape: TShape): TShape { | ||
| return Object.fromEntries( | ||
| Object.entries(shape).map(([key, schema]) => [ | ||
| key, | ||
| (schema as z.ZodType).catch(() => undefined) | ||
| ]) | ||
| ) as unknown as TShape | ||
| } |
There was a problem hiding this comment.
.catch() silences all field errors, not just enum drift
The .catch(() => undefined) wrapper is broader than its stated goal. It catches every Zod failure for a field, not just unknown enum members — so a structurally wrong value (e.g. sidebarWidth: "abc", rightSidebarOpen: 42) is silently dropped and the caller receives ok: true with no indication that the write was ignored. The PR description already flags the missing warning; it's worth adding a console.warn or sending a trace/log on the drop path so a client that sends a wrong type can be diagnosed without attaching a debugger.
Greptile SummaryThis PR fixes seven distinct regressions across preference sync, SSH startup delivery, project picker key arming, browser zoom re-seeding, native-chat live status, reverted locale translations, and emoji-offset match highlighting. Each fix ships with a regression test that fails on the parent commit and passes on the fix.
Confidence Score: 5/5All seven regressions are fixed with targeted, well-tested changes; each fix ships with a regression test verified to fail on the parent commit. Every fix is narrow, well-scoped, and covered by purpose-built regression tests that the PR author verified fail-then-pass against the specific source hunk. The generalized AssertNoMissingValues guard structurally prevents the same enum-drift class from recurring. The known gap in browser zoom is clearly documented and tested at the boundary it actually delivers. The locale restore was re-derived against main to avoid reverting upstream translations. Files Needing Attention: No files require special attention — the most complex change (client-ui-schemas.ts + ui-update-value-tolerance.ts) is fully exercised by client-ui.test.ts, and the SSH timer logic is exercised end-to-end by ssh-background-startup-delivery.test.ts.
|
| Filename | Overview |
|---|---|
| src/main/runtime/rpc/methods/client-ui-schemas.ts | Replaces hand-rolled enum literals with shared-union-derived schemas and wraps each field with .catch(() => undefined) so a drifted value degrades rather than rejecting the whole batch. |
| src/main/runtime/rpc/methods/ui-update-value-tolerance.ts | New module: tolerateUnknownValues wraps each Zod field with .catch(() => undefined) and omitUndefinedValues strips undefined entries so a rejected value reads as absent rather than an explicit clear. |
| src/main/runtime/rpc/methods/ui-state-schema-parity.ts | Extends the key-parity helper with AssertNoMissingValues, a mapped-type assertion that checks the schema's input domain covers every value a paired client could send. |
| src/main/runtime/rpc/methods/ui-state-schema-parity-checks.ts | New module: houses both parity assertions over every shared UI state key; imported as a type-only side-effect from client-ui.ts to stay in the typecheck graph. |
| src/renderer/src/lib/ssh-background-startup-delivery.ts | Adds sawOutput flag and 15 s no-output fallback budget; on first data the long timer is replaced by the original 1.5 s post-output deadline. |
| src/renderer/src/components/new-workspace/ProjectCombobox.tsx | Fixes deriveRowKeys to use sectionProjectOptions rather than raw rankProjectOptions so the keyboard-armed row matches the rendered list order. |
| src/renderer/src/components/new-workspace/ProjectComboboxRow.tsx | Replaces code-point index with a running UTF-16 code-unit counter so emoji astral glyphs no longer shift subsequent match marks one position late. |
| src/renderer/src/components/browser-pane/browser-page-zoom.ts | Adds compare-before-write guard and module-level explicitPaneZoomLevels map so user-set zoom survives pane remounts. |
| src/renderer/src/components/native-chat/native-chat-live-status.ts | Removes sessionId !== null short-circuit so a live working status propagates during the transcript-flush window, restoring the Stop button. |
| src/renderer/src/components/native-chat/native-chat-view-state.ts | Adds guard returning { kind: 'loading' } for a known session working with no transcript content yet, preventing an empty-state flash. |
| src/renderer/src/components/browser-pane/webview-registry.ts | Calls forgetExplicitBrowserPageZoomLevel in destroyPersistentWebview so a reused browser tab ID cannot inherit a destroyed tab's user-set zoom level. |
| src/shared/worktree-card-properties.ts | Exports WORKTREE_CARD_PROPERTIES as a const array so client schemas derive their accepted value domain from it rather than a hand-rolled enum that was missing 'cli'. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["ui.set RPC call arrives"] --> B{Known key?}
B -- No --> C["Reject entire batch\n(invalid_argument)"]
B -- Yes --> D["tolerateUnknownValues:\nparse each field with .catch(() => undefined)"]
D --> E{Valid value?}
E -- Yes --> F["Field value kept"]
E -- No / enum drift --> G["Field → undefined\n(degraded, not rejected)"]
F & G --> H["omitUndefinedValues:\nstrip undefined fields"]
H --> I["updateUIState called\nwith surviving fields only"]
J["SSH PTY spawn\narmFallback called"] --> K{waitForShellReady?}
K -- No --> L["startupShellReady=true\nschedule immediately"]
K -- Yes --> M{sawOutput?}
M -- No --> N["15 s no-output budget\n(shell still booting)"]
M -- Yes --> O["1.5 s post-output deadline\n(readline is armed)"]
N --> P["handleData receives first byte"]
P --> Q["sawOutput=true\nreplace 15s timer with 1.5s"]
Q --> O
R["BrowserPagePane mounts"] --> S{getExplicitBrowserPageZoomLevel?}
S -- null --> T["Seed from Settings default"]
S -- level --> U["Seed from user-set level\n(survives remount)"]
V["User zooms pane"] --> W["rememberExplicitBrowserPageZoomLevel"]
X["destroyPersistentWebview"] --> Y["forgetExplicitBrowserPageZoomLevel\n(prevents id reuse inheritance)"]
Reviews (3): Last reviewed commit: "fix(rpc): keep null in the ui.set value-..." | Re-trigger Greptile
📝 WalkthroughWalkthroughThe changes expand runtime UI schemas with derived worktree and plugin-tab validation, tolerant update handling, and compile-time parity checks. Browser panes now persist explicit per-page zoom and suppress redundant writes. Native chat state prioritizes live working sessions correctly. Project combobox navigation follows rendered sections and handles UTF-16 match offsets. SSH startup delivery differentiates silent shells from active shells. English recipe guidance and plugin-related translations for Spanish, Japanese, Korean, and Chinese are updated with regression coverage. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (3)
src/renderer/src/components/native-chat/native-chat-live-status.ts (1)
68-71: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueShorten or remove these explanatory comments. The test names and nearby conditions already convey most of this rationale.
src/renderer/src/components/native-chat/native-chat-live-status.ts#L68-L71: reduce to one concise reason for preservingworking.src/renderer/src/components/native-chat/native-chat-view-state.ts#L33-L36: reduce to one concise reason for the known-session loading state.src/renderer/src/components/native-chat/native-chat-view-state.test.ts#L52-L53: remove; the test name is sufficient.src/renderer/src/components/native-chat/native-chat-view-state.test.ts#L60-L61: remove; the test name and assertion are sufficient.src/renderer/src/components/native-chat/use-native-chat-live-session.test.ts#L261-L264: reduce to one concise regression note.src/renderer/src/components/native-chat/use-native-chat-live-session.test.ts#L308-L310: reduce to one concise regression note.As per coding guidelines, comments must be concise, limited to non-obvious information, and preferably one line.
Source: Coding guidelines
src/renderer/src/i18n/locale-english-regression.test.ts (1)
1-11: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCondense the regression comments.
These comments preserve useful context, but embed implementation history and mechanics across 15 lines. Keep a short invariant-focused comment instead.
Suggested simplification
-/** - * `#10770` merged from a base predating `#8549`, so its stale locale copies - * overwrote ~185 already-translated strings per locale back to English. A - * present catalog value always beats the English `translate()` fallback, so - * those strings render English at runtime with nothing to signal the loss. - * - * These are keys whose English source is UNCHANGED, so an English catalog value - * can only be a revert. Locale-wide coverage is deliberately not asserted here: - * genuinely-untranslated new keys are normal, and a blanket gate would fail on - * every future English-source addition. - */ +// Guards representative existing translations against stale-base regressions. ... -// Sampled across the reverted set: an unconditional sidebar filter row, plugin -// command failures on two surfaces, a settings description, and a status-bar -// metric — so a partial re-revert cannot pass by covering one namespace. +// Cover distinct namespaces so a partial regression cannot pass.As per coding guidelines, comments must be concise, limited to non-obvious information, and preferably one line.
Also applies to: 32-34
Source: Coding guidelines
src/renderer/src/components/browser-pane/browser-page-zoom.ts (1)
66-68: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCondense the new explanatory comments. These multi-line comments restate implementation detail; retain only a concise one-line rationale where needed.
src/renderer/src/components/browser-pane/browser-page-zoom.ts#L66-L68: reduce to the HostZoomMap no-op-write rationale.src/renderer/src/components/browser-pane/browser-page-zoom.ts#L79-L82: reduce to explicit zoom surviving pane remounts.src/renderer/src/components/browser-pane/BrowserPane.tsx#L2832-L2836: reduce to preserving tab-specific zoom across remounts.src/renderer/src/components/browser-pane/browser-page-zoom.test.ts#L153-L155: reduce to the remount persistence intent.src/renderer/src/components/browser-pane/browser-page-zoom.test.ts#L287-L294: reduce to the host-scoped write-suppression intent.Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 703a90fa-dd1a-49b0-819f-306c27a35b96
📥 Commits
Reviewing files that changed from the base of the PR and between d3681f6 and 82a0c38ecc998900ba5121aeabf017c2e75821cf.
📒 Files selected for processing (29)
src/main/runtime/rpc/methods/client-ui-schemas.tssrc/main/runtime/rpc/methods/client-ui.test.tssrc/main/runtime/rpc/methods/client-ui.tssrc/main/runtime/rpc/methods/ui-state-schema-parity-checks.tssrc/main/runtime/rpc/methods/ui-state-schema-parity.tssrc/main/runtime/rpc/methods/ui-update-value-tolerance.tssrc/renderer/src/components/browser-pane/BrowserPane.tsxsrc/renderer/src/components/browser-pane/browser-page-zoom.test.tssrc/renderer/src/components/browser-pane/browser-page-zoom.tssrc/renderer/src/components/browser-pane/webview-registry.tssrc/renderer/src/components/native-chat/native-chat-live-status.tssrc/renderer/src/components/native-chat/native-chat-view-state.test.tssrc/renderer/src/components/native-chat/native-chat-view-state.tssrc/renderer/src/components/native-chat/use-native-chat-live-session.test.tssrc/renderer/src/components/new-workspace/ProjectCombobox.test.tsxsrc/renderer/src/components/new-workspace/ProjectCombobox.tsxsrc/renderer/src/components/new-workspace/ProjectComboboxRow.test.tsxsrc/renderer/src/components/new-workspace/ProjectComboboxRow.tsxsrc/renderer/src/components/new-workspace/project-combobox-matching.tssrc/renderer/src/i18n/locale-english-regression.test.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/launch-agent-background-session-remote.test.tssrc/renderer/src/lib/ssh-background-startup-delivery.test.tssrc/renderer/src/lib/ssh-background-startup-delivery.tssrc/shared/worktree-card-properties.ts
| @@ -9333,7 +9333,7 @@ | |||
| "copy": "복사", | |||
| "copied": "복사됨", | |||
| "recipes": "조리법", | |||
| "recipesHelp": "agent가 orca.yaml에 추가하는 레시피가 여기에 표시되어 워크스페이스를 시작할 준비가 됩니다.", | |||
| "recipesHelp": "orca.yaml과 활성화된 플러그인의 레시피가 여기에 표시되어 워크스페이스를 시작할 수 있습니다.", | |||
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Keep the Korean “recipes” terminology consistent.
The adjacent recipes label uses 조리법, while this help text uses 레시피 for the same concept. Use one term consistently across the section.
82a0c38 to
02ead29
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d6a1f821-8e1b-4fc3-b3b2-540539e967ab
📥 Commits
Reviewing files that changed from the base of the PR and between 82a0c38ecc998900ba5121aeabf017c2e75821cf and 02ead29dadadbced542ff5c7d863bfd99af29084.
📒 Files selected for processing (20)
src/main/runtime/rpc/methods/client-ui-schemas.tssrc/main/runtime/rpc/methods/client-ui.test.tssrc/main/runtime/rpc/methods/client-ui.tssrc/main/runtime/rpc/methods/ui-state-schema-parity-checks.tssrc/main/runtime/rpc/methods/ui-state-schema-parity.tssrc/main/runtime/rpc/methods/ui-update-value-tolerance.tssrc/renderer/src/components/browser-pane/BrowserPane.tsxsrc/renderer/src/components/browser-pane/browser-page-zoom.test.tssrc/renderer/src/components/browser-pane/browser-page-zoom.tssrc/renderer/src/components/browser-pane/webview-registry.tssrc/renderer/src/components/native-chat/native-chat-live-status.test.tssrc/renderer/src/components/native-chat/native-chat-live-status.tssrc/renderer/src/components/native-chat/native-chat-view-state.test.tssrc/renderer/src/components/native-chat/native-chat-view-state.tssrc/renderer/src/components/native-chat/use-native-chat-live-session.test.tssrc/renderer/src/components/new-workspace/ProjectCombobox.test.tsxsrc/renderer/src/components/new-workspace/ProjectCombobox.tsxsrc/renderer/src/components/new-workspace/ProjectComboboxRow.test.tsxsrc/renderer/src/components/new-workspace/ProjectComboboxRow.tsxsrc/renderer/src/components/new-workspace/project-combobox-matching.ts
🚧 Files skipped from review as they are similar to previous changes (14)
- src/renderer/src/components/native-chat/native-chat-view-state.ts
- src/renderer/src/components/new-workspace/project-combobox-matching.ts
- src/main/runtime/rpc/methods/ui-update-value-tolerance.ts
- src/main/runtime/rpc/methods/client-ui.ts
- src/renderer/src/components/browser-pane/webview-registry.ts
- src/renderer/src/components/native-chat/native-chat-live-status.ts
- src/renderer/src/components/new-workspace/ProjectComboboxRow.tsx
- src/renderer/src/components/browser-pane/browser-page-zoom.ts
- src/renderer/src/components/new-workspace/ProjectCombobox.test.tsx
- src/renderer/src/components/new-workspace/ProjectCombobox.tsx
- src/renderer/src/components/new-workspace/ProjectComboboxRow.test.tsx
- src/renderer/src/components/browser-pane/browser-page-zoom.test.ts
- src/renderer/src/components/browser-pane/BrowserPane.tsx
- src/main/runtime/rpc/methods/client-ui.test.ts
02ead29 to
7da5e38
Compare
…ted locales 7.1 ui.set rejected whole preference payloads on enum drift. The new AssertNoMissingKeys guard is key-only, so it could not see that LegacyWorktreeCardProperty omitted 'cli' (in DEFAULT_WORKTREE_CARD_PROPERTIES) or that rightSidebarTab omitted 'workspaces'/'pr-checks' and every plugin tab. UiUpdate is .strict(), so one bad value failed the entire batch and silently dropped sidebarWidth/groupBy/sortBy/filterRepoIds riding the same debounced write. Both enums now derive from the shared unions, AssertNoMissingValues catches value drift by name, and UiUpdate drops an unknown value instead of rejecting the batch around it. Unknown KEYS still reject. 7.2 The SSH shell-ready fallback moved from first-output to spawn, so a remote shell needing >1.5s to prompt got the bracketed-paste startup command before readline armed it, with no recovery afterward. The short deadline now applies only once output proves the shell is talking; a silent-since-spawn shell gets a longer budget and still delivers eventually. 7.3 The project picker armed in rank order but rendered in section order, so with a folder group present the BOTTOM row was armed on open and Enter created the workspace in the wrong place. Row keys now derive from the same sections that render. The folders bucket also gains the recent-exclusion guard the projects bucket has; that duplicate was unreachable, so this is symmetry, not a live bug fix. 7.4 setBrowserPageZoomLevel now compares before writing, so a pane reasserting a level the host already holds no longer emits a redundant host-wide HostZoomMap write. The user-applied level also moved to a module-level map keyed by page id: the guest webview outlives its React pane, so the pane-local ref re-seeded from the shared Settings default on every remount and let a later default retroactively hijack an already-zoomed tab. See PR notes on the part of this finding that could not be fixed as prescribed. 7.5 A non-null sessionId short-circuited the live-work escape hatch, forcing 'loading' over hook 'working' and rendering an idle pane mid-turn: Send instead of Stop, no typing indicator, no streaming preview. Status stays 'working'; the empty-transcript loading SURFACE moves to selectNativeChatViewState, which keeps 7.6 stablyai#10770 merged from a base predating stablyai#8549, reverting 182-187 translated strings per locale to English (es 182, ja/ko/zh 187) plus en.json's recipesHelp. Restored by script, only where the English source is unchanged between the two shas, so later legitimate edits are preserved: 0 keys added or removed, every value sourced from 97e4776, and the four other English-source changes since 7.7 Match highlighting indexed by UTF-16 code unit but rendered by code point, so an emoji-named folder showed marks one glyph late. Cosmetic. Co-authored-by: Orca <[email protected]>
The 15s no-output budget added for the shell-ready fallback was applied to every SSH launch, including 'fast' delivery. Fast delivery waits for no marker and pastes nothing prompt-sensitive, so it gained a 10x startup delay for nothing. Co-authored-by: Orca <[email protected]>
Naming worktreeCardProperties and rightSidebarTab left the next field to drift exactly as unguarded: dropping 'pr-status' from groupBy typechecked clean. Check the value domain of every shared key instead, against z.input (what a client may send) rather than z.infer (post-transform). Also move the pure mergeNativeChatLiveSession suite beside the module it covers; the hook's test file owns an IO harness and was at the max-lines cap. Co-authored-by: Orca <[email protected]>
stablyai#10770 merged from a base predating stablyai#8549, so its stale locale copies overwrote ~185 already-translated strings per locale back to English. A present catalog value always beats the English translate() fallback, so those strings render English with nothing to signal the loss. Since that finding was written, stablyai#11205 and other upstream translation passes independently re-covered most of ja/ko/zh. Replaying stablyai#8549's catalogs wholesale would now overwrite that newer work, so this re-applies a key ONLY where all of the following hold at origin/main: it was translated at 97e4776, stablyai#10770 reverted it, its English source is unchanged since, and no upstream commit has touched it since the revert. es 182 ja 32 ko 17 zh 55 Everything else is left to upstream. Verified zero upstream translations reverted: every changed key still matches its stablyai#10770 value at main. Keys upstream deleted are not resurrected, and keys whose English source was edited since are skipped as legitimate source changes rather than reverts (this is what keeps zh CPU on stablyai#11205's deliberate "CPU" over stablyai#8549's "中央处理器"). Key count and order are unchanged in all five catalogs. en.json's own recipesHelp was reverted by the same stale base and no upstream commit has touched it since, so it is restored to match the live source at EphemeralVmsPane.tsx:252.
NonNullable stripped null as well as undefined, so dropping .nullable() from a `| null` field passed the guard while still rejecting the batch at runtime -- the exact drift class the guard exists to catch. Proven: making visibleWorkspaceHostIds non-nullable typechecked clean before, now errors by name. Also pins the 15s silent-shell budget so it cannot silently shrink back toward the short deadline. Co-authored-by: Orca <[email protected]>
7da5e38 to
f0f888c
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/renderer/src/components/native-chat/use-native-chat-live-session.test.ts (1)
676-679: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueCondense this implementation walkthrough.
Keep one concise comment stating the invariant, e.g.
// Preserve raw loading phase while a live working hook controls status (#11032,#9802).Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0725c577-0e6c-4abb-b25c-f1f4e1430e10
📥 Commits
Reviewing files that changed from the base of the PR and between 7da5e38ee590a14ea8528b1eee7def30f9eb86f7 and f0f888c.
📒 Files selected for processing (30)
src/main/runtime/rpc/methods/client-ui-schemas.tssrc/main/runtime/rpc/methods/client-ui.test.tssrc/main/runtime/rpc/methods/client-ui.tssrc/main/runtime/rpc/methods/ui-state-schema-parity-checks.tssrc/main/runtime/rpc/methods/ui-state-schema-parity.tssrc/main/runtime/rpc/methods/ui-update-value-tolerance.tssrc/renderer/src/components/browser-pane/BrowserPane.tsxsrc/renderer/src/components/browser-pane/browser-page-zoom.test.tssrc/renderer/src/components/browser-pane/browser-page-zoom.tssrc/renderer/src/components/browser-pane/webview-registry.tssrc/renderer/src/components/native-chat/native-chat-live-status.test.tssrc/renderer/src/components/native-chat/native-chat-live-status.tssrc/renderer/src/components/native-chat/native-chat-view-state.test.tssrc/renderer/src/components/native-chat/native-chat-view-state.tssrc/renderer/src/components/native-chat/use-native-chat-live-session.test.tssrc/renderer/src/components/new-workspace/ProjectCombobox.test.tsxsrc/renderer/src/components/new-workspace/ProjectCombobox.tsxsrc/renderer/src/components/new-workspace/ProjectComboboxRow.test.tsxsrc/renderer/src/components/new-workspace/ProjectComboboxRow.tsxsrc/renderer/src/components/new-workspace/project-combobox-matching.tssrc/renderer/src/i18n/locale-english-regression.test.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/launch-agent-background-session-remote.test.tssrc/renderer/src/lib/ssh-background-startup-delivery.test.tssrc/renderer/src/lib/ssh-background-startup-delivery.tssrc/shared/worktree-card-properties.ts
🚧 Files skipped from review as they are similar to previous changes (28)
- src/renderer/src/components/new-workspace/ProjectCombobox.tsx
- src/renderer/src/components/new-workspace/project-combobox-matching.ts
- src/renderer/src/components/native-chat/native-chat-live-status.ts
- src/main/runtime/rpc/methods/ui-state-schema-parity-checks.ts
- src/main/runtime/rpc/methods/client-ui.ts
- src/main/runtime/rpc/methods/ui-update-value-tolerance.ts
- src/renderer/src/components/new-workspace/ProjectCombobox.test.tsx
- src/renderer/src/lib/ssh-background-startup-delivery.test.ts
- src/renderer/src/components/native-chat/native-chat-view-state.ts
- src/renderer/src/components/browser-pane/BrowserPane.tsx
- src/renderer/src/i18n/locale-english-regression.test.ts
- src/renderer/src/components/new-workspace/ProjectComboboxRow.test.tsx
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/components/new-workspace/ProjectComboboxRow.tsx
- src/renderer/src/components/browser-pane/browser-page-zoom.test.ts
- src/shared/worktree-card-properties.ts
- src/main/runtime/rpc/methods/ui-state-schema-parity.ts
- src/renderer/src/components/native-chat/native-chat-live-status.test.ts
- src/renderer/src/components/browser-pane/browser-page-zoom.ts
- src/renderer/src/components/browser-pane/webview-registry.ts
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/lib/ssh-background-startup-delivery.ts
- src/main/runtime/rpc/methods/client-ui.test.ts
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/ja.json
- src/main/runtime/rpc/methods/client-ui-schemas.ts
- src/renderer/src/lib/launch-agent-background-session-remote.test.ts
- src/renderer/src/i18n/locales/ko.json
| it('reports the loading readPhase for a known session whose working hook unmasks the status', async () => { | ||
| vi.useFakeTimers() | ||
| const transport = getMockTransport('env-1', { autoSnapshot: false }) | ||
| transport.readSession.mockResolvedValue({ error: 'No transcript found', notFound: true }) | ||
| useAppStore.setState({ | ||
| agentStatusByPaneKey: { [PANE]: { state: 'working', stateStartedAt: 1 } } | ||
| } as never) | ||
|
|
||
| await render({ paneKey: PANE, agent: AGENT, sessionId: SESSION, runtimeEnvironmentId: 'env-1' }) | ||
|
|
||
| expect(latest?.status).toBe('working') | ||
| expect(latest?.readPhase).toBe('loading') | ||
| }) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Locate test and source files"
fd 'use-native-chat-live-session|native-chat' src/renderer/src -t f | sed -n '1,80p'
echo
echo "Inspect relevant test section"
test_file="$(fd 'use-native-chat-live-session.test.ts' src/renderer/src -t f | head -n 1)"
echo "test_file=$test_file"
if [ -n "$test_file" ]; then
wc -l "$test_file"
sed -n '630,715p' "$test_file" | cat -n
fi
echo
echo "Search for readPhase/loading/notFound/readSession in renderer src"
rg -n "readPhase|readSession|notFound|No transcript found|retry|setTimeout|advanceTimers|useFakeTimers" src/renderer/src -S -g '*.ts' -g '*.tsx' | sed -n '1,220p'Repository: stablyai/orca
Length of output: 35051
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Find hook/source candidates"
fd 'use-native-chat-live-session' src -t f
echo
for f in $(fd 'use-native-chat-live-session' src -t f); do
echo "===== $f ====="
wc -l "$f"
ast-grep outline "$f" --view compact 2>/dev/null | sed -n '1,220p' || true
echo "--- relevant search ---"
rg -n "readSession|readPhase|notFound|setTimeout|retryAll|useEffect|useMemo|useAppStore|agentStatusByPaneKey" "$f" -S | sed -n '1,220p'
done
echo
echo "Inspect full source candidates if any"
for f in $(fd 'use-native-chat-live-session' src -t f); do
echo "===== lines 1-320 of $f ====="
sed -n '1,320p' "$f" | cat -n
doneRepository: stablyai/orca
Length of output: 35017
Assert the mocked notFound retry was scheduled.
This test sets readSession to always return notFound, but only readPhase: 'loading' is observed — the initial seed and working hook status can produce the same assertions without executing the retry path. Advance one pending retry or check readSession call count/second invocation before asserting the state.
…ted locales (stablyai#11241) * fix(ui): preference sync, picker arming, zoom, chat status, and reverted locales 7.1 ui.set rejected whole preference payloads on enum drift. The new AssertNoMissingKeys guard is key-only, so it could not see that LegacyWorktreeCardProperty omitted 'cli' (in DEFAULT_WORKTREE_CARD_PROPERTIES) or that rightSidebarTab omitted 'workspaces'/'pr-checks' and every plugin tab. UiUpdate is .strict(), so one bad value failed the entire batch and silently dropped sidebarWidth/groupBy/sortBy/filterRepoIds riding the same debounced write. Both enums now derive from the shared unions, AssertNoMissingValues catches value drift by name, and UiUpdate drops an unknown value instead of rejecting the batch around it. Unknown KEYS still reject. 7.2 The SSH shell-ready fallback moved from first-output to spawn, so a remote shell needing >1.5s to prompt got the bracketed-paste startup command before readline armed it, with no recovery afterward. The short deadline now applies only once output proves the shell is talking; a silent-since-spawn shell gets a longer budget and still delivers eventually. 7.3 The project picker armed in rank order but rendered in section order, so with a folder group present the BOTTOM row was armed on open and Enter created the workspace in the wrong place. Row keys now derive from the same sections that render. The folders bucket also gains the recent-exclusion guard the projects bucket has; that duplicate was unreachable, so this is symmetry, not a live bug fix. 7.4 setBrowserPageZoomLevel now compares before writing, so a pane reasserting a level the host already holds no longer emits a redundant host-wide HostZoomMap write. The user-applied level also moved to a module-level map keyed by page id: the guest webview outlives its React pane, so the pane-local ref re-seeded from the shared Settings default on every remount and let a later default retroactively hijack an already-zoomed tab. See PR notes on the part of this finding that could not be fixed as prescribed. 7.5 A non-null sessionId short-circuited the live-work escape hatch, forcing 'loading' over hook 'working' and rendering an idle pane mid-turn: Send instead of Stop, no typing indicator, no streaming preview. Status stays 'working'; the empty-transcript loading SURFACE moves to selectNativeChatViewState, which keeps 7.6 stablyai#10770 merged from a base predating stablyai#8549, reverting 182-187 translated strings per locale to English (es 182, ja/ko/zh 187) plus en.json's recipesHelp. Restored by script, only where the English source is unchanged between the two shas, so later legitimate edits are preserved: 0 keys added or removed, every value sourced from edf5219, and the four other English-source changes since 7.7 Match highlighting indexed by UTF-16 code unit but rendered by code point, so an emoji-named folder showed marks one glyph late. Cosmetic. Co-authored-by: Orca <[email protected]> * fix(ssh): keep fast startup delivery on the short fallback deadline The 15s no-output budget added for the shell-ready fallback was applied to every SSH launch, including 'fast' delivery. Fast delivery waits for no marker and pastes nothing prompt-sensitive, so it gained a 10x startup delay for nothing. Co-authored-by: Orca <[email protected]> * fix(rpc): generalize the ui.set value-parity guard to every shared key Naming worktreeCardProperties and rightSidebarTab left the next field to drift exactly as unguarded: dropping 'pr-status' from groupBy typechecked clean. Check the value domain of every shared key instead, against z.input (what a client may send) rather than z.infer (post-transform). Also move the pure mergeNativeChatLiveSession suite beside the module it covers; the hook's test file owns an IO harness and was at the max-lines cap. Co-authored-by: Orca <[email protected]> * fix(i18n): re-apply only the locale strings still reverted at HEAD stablyai#10770 merged from a base predating stablyai#8549, so its stale locale copies overwrote ~185 already-translated strings per locale back to English. A present catalog value always beats the English translate() fallback, so those strings render English with nothing to signal the loss. Since that finding was written, stablyai#11205 and other upstream translation passes independently re-covered most of ja/ko/zh. Replaying stablyai#8549's catalogs wholesale would now overwrite that newer work, so this re-applies a key ONLY where all of the following hold at origin/main: it was translated at edf5219, stablyai#10770 reverted it, its English source is unchanged since, and no upstream commit has touched it since the revert. es 182 ja 32 ko 17 zh 55 Everything else is left to upstream. Verified zero upstream translations reverted: every changed key still matches its stablyai#10770 value at main. Keys upstream deleted are not resurrected, and keys whose English source was edited since are skipped as legitimate source changes rather than reverts (this is what keeps zh CPU on stablyai#11205's deliberate "CPU" over stablyai#8549's "中央处理器"). Key count and order are unchanged in all five catalogs. en.json's own recipesHelp was reverted by the same stale base and no upstream commit has touched it since, so it is restored to match the live source at EphemeralVmsPane.tsx:252. * fix(rpc): keep null in the ui.set value-parity guard NonNullable stripped null as well as undefined, so dropping .nullable() from a `| null` field passed the guard while still rejecting the batch at runtime -- the exact drift class the guard exists to catch. Proven: making visibleWorkspaceHostIds non-nullable typechecked clean before, now errors by name. Also pins the 15s silent-shell budget so it cannot silently shrink back toward the short deadline. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Orca <[email protected]>
What
Fixes seven defects across preference sync, the project picker, browser zoom, native-chat status, and the locale catalogs, plus one regression found during review of this branch.
ui.setenum drift drops whole preference batches (introduced by the gap fix(runtime): stop rejecting ui.set when Linear or Jira resume fields are present #10715's key-only parity guard could not see) —src/main/runtime/rpc/methods/client-ui-schemas.ts. The zod enums omitted'cli'from the worktree-card properties and'workspaces' | 'pr-checks' | plugin:*fromrightSidebarTab, andUiUpdateis.strict(), so one unexpressible value returnedinvalid_argumentfor the entire debounced batch. The enums are now derived from the shared unions,UiUpdatedrops an unexpressible value instead of rejecting the batch around it, and the parity assertion is checked over every shared key rather than a hand-picked pair (see "Proof of no regression" — the first version of this fix was itself half-done).src/renderer/src/lib/ssh-background-startup-delivery.ts.armFallbackwas re-anchored from first-output to spawn, so a shell slower than 1.5s got the bracketed-paste command before readline armed it. The 1.5s deadline now applies only once output proves the shell is talking.src/renderer/src/components/new-workspace/ProjectCombobox.tsx:53.deriveRowKeysfed the hook raw rank order while the list rendered in section order, so Enter could commit a row other than the one at the top. Row keys are now derived from the samesectionProjectOptionscall the list renders.src/renderer/src/components/browser-pane/browser-page-zoom.ts. See "Known gaps" for the half of this finding that is not fixed.src/renderer/src/components/native-chat/native-chat-live-status.ts:68. A non-nullsessionIdshort-circuited the liveworkingstate during the transcript-read window, costing the Stop button, typing indicator and streaming preview.src/renderer/src/i18n/locales/{es,ja,ko,zh}.json. A stale branch base overwrote feat(plugins): Orca plugin system — kernel, content packs, panels, workers, marketplace v0 (experimental) #8549's merged translations. Scope reduced since this PR was opened — see below.ProjectComboboxRow.tsx:38. Marks were indexed by UTF-16 code unit but rendered by code point.Locale scope reduced: upstream #11205 fixed most of ja/ko/zh first
This PR originally restored ~185 keys per locale. Since the branch was cut,
0388319a32("Improve translations for resource manager and related UI elements", #11205) and others independently translated most of the same keys. Replaying the original restore wholesale would have overwritten upstream's newer translations with the older #8549 ones, so the restore was re-derived from scratch against currentmain:recipesHelprealignment (unchanged)A key is restored only if all of: it was translated at
97e4776dfe(#8549); it still exists atmain; its English source is byte-identical between97e4776dfeandmain; #10770 actually reverted it; and no upstream commit has touched it since that revert. That last condition is the one that matters here — it is what prevents this PR from reverting #11205.One case proves the condition earns its keep:
auto.components.status.bar.ResourceUsageStatusSegment.298f4be7f2passes the naive "English at main" test but only looks English — #11205 deliberately changed the Chinese from中央处理器to the technical literal"CPU", which the repo enforces inzh-technical-literal-mistranslations.test.ts. It is correctly excluded, and"CPU"survives at HEAD.recipesHelpis worth stating precisely because the fix direction is counterintuitive: #10770 reverted en.json to the newer-looking string whileEphemeralVmsPane.tsx:252still ships"Recipes from orca.yaml and enabled plugins show up here, ready to launch a workspace on."— #10770 never touched the.tsx. The catalog is the stale side, so restoring #8549's value is what re-aligns catalog to source.ELI5
A handful of small things had gone wrong in different corners of the app. If you changed a display setting on your phone or in a browser tab while the desktop app was open, the whole batch of settings could silently fail to save, and you'd only notice after a reload when they snapped back. When starting an agent on a remote machine over SSH, the app sometimes typed the command before the remote machine was ready to listen, so the command got garbled or lost. In the project picker, the row highlighted when you opened it wasn't always the row at the top, so pressing Enter straight away could create your workspace in the wrong place. The chat pane could look idle for a few seconds while the agent was actually working, so the Stop button was missing. And a batch of Spanish, Japanese, Korean and Chinese translations had reverted to English.
All of those now behave the way you'd expect. Two caveats: most of the Japanese, Korean and Chinese translations were already repaired upstream while this PR sat, so this change now only fills the remaining gaps and is careful not to undo the newer work. And one related issue is only partly addressed — browser zoom still behaves oddly when two tabs share the same website, which is explained below and needs a follow-up.
Proof of fix
7.7 — emoji match highlighting (captured live)
Real capture from the running app in this worktree, with a project literally named
🚀 orcaand the queryorca. Only the row renderer differs between the two shots.Before — only
rcais underlined, one glyph late:After — the full
orcais underlined:The same states in full window context (the difference is one character wide at this scale; the rows above are the readable evidence):
DOM readout from the same live session, which is the exact assertion the regression test makes:
7.6 — reverted locales (captured live)
Settings -> Apariencia -> Idioma -> Español, then the workspace-options filter popover. Same window size, same route, differing only by the locale file. Spanish is the locale upstream did not touch, so these shots remain accurate for the reduced-scope restore.
Hide detached HEADrenders in English inside an otherwise-Spanish popover before,Ocultar HEAD desacopladoafter. Note the row above it (Hide CLI-created) is still English in both shots — that is a genuinely untranslated newer key outside the reverted set, not something this change regressed. That is exactly why the test asserts named keys rather than blanket locale coverage.Non-visual findings — real failing-then-passing output
Each was verified by reverting only the source hunk and leaving the test file in place.
7.1 (
client-ui.test.ts):Runtime confirmation that a bad value degrades rather than destroying the batch:
The bad value is dropped (and does not become an explicit clear —
hasKey=false), the rest of the batch survives, and an unknown key still hard-rejects.7.2 (
ssh-background-startup-delivery.test.ts) — on the parent the startup command is written 3s after spawn with zero bytes received, i.e. before the remote shell has prompted:7.3 (
ProjectCombobox.test.tsx):7.4 (
browser-page-zoom.test.ts) — 6 failed | 17 passed (23) on the parent, 23 passed with the fix.7.5 (
native-chat-live-status.test.ts+native-chat-view-state.test.ts):The third assertion is the direct proxy for the missing-Stop-button symptom: on the parent the chain yields
isWorking: false, with the fixisWorking: true.7.6 (
locale-english-regression.test.ts):Regressions found and fixed during review of this branch
The first pass at 7.2 selected the new 15s no-output budget with
sawOutput ? SHORT : LONG, ignoringoptions.waitForShellReady. That applied the long budget to every SSH launch includingstartupCommandDelivery: 'fast', which waits for no shell-ready marker and pastes nothing prompt-sensitive — a silent fast-path shell went from delivering at 1.5s to 15s for no benefit. No existing test coveredwaitForShellReady: false, so it passed the suite. Fixed by gating the long budget on the shell-ready path, with a test that fails on the prior commit.The first pass at 7.1 was itself half a fix. It added
AssertNoMissingValuesover two hand-picked types (WorktreeCardPropertyandRightSidebarTab) — i.e. it guarded exactly the two fields already known to be broken, and nothing else. Proven insufficient by deleting'pr-status'from thegroupByenum, the identical failure class 7.1 describes: it typechecked clean. The guard is now a mapped type over every shared key. Sensitivity matrix, each drift injected separately and typechecked:worktreeCardPropertiesloses'cli'valueDomainTooNarrowFor: "worktreeCardProperties"rightSidebarTablosesworkspaces/pr-checksgroupByloses'pr-status'statusBarItemsloses'ports'visibleWorkspaceHostIdsloses.nullable()A third gap was found in review, by CodeRabbit, and is fixed. The generalized guard used
NonNullable<T>on both sides, which stripsnullas well asundefined— so dropping.nullable()from a| nullfield (visibleWorkspaceHostIds,defaultRepoSelection,lastUpdateCheckAt, …) left a schema that still rejects the batch at runtime while typechecking clean. Reproduced before fixing:Only
undefinedis stripped now — optionality is the key guard's job. The enum-drift sensitivity above was re-confirmed after the change, and all three typechecks stay clean at baseline.Re-confirmed on the final rebased tree:
(reverted afterwards; baseline re-verified clean). The assertion uses
z.input, notz.infer, because.transform()narrowsworktreeCardPropertiespost-parse and would mis-measure the domain a client may actually send.Proof of no regression
Regression tests. Every finding has one, listed above with real output. Each was verified by reverting only the source hunk while leaving the test file at HEAD, so the tests are proven to fail for the intended reason rather than because a symbol went missing.
Full sweep over every touched area, on the final rebased tree:
Review feedback addressed
Two bot findings were substantive and are fixed, each verified by reproducing the gap first:
ui-state-schema-parity.ts—NonNullablealso stripsnull, so the guard was blind to a dropped.nullable(). Confirmed exploitable, fixed withExclude<T, undefined>, sensitivity re-proven. Details above.ssh-background-startup-delivery.test.ts— the silent-shell test asserted only eventual delivery, so the 15s budget could silently shrink back toward the short deadline this fix moved off. Now pinned at the boundary (no write at 14,999ms, write after the final 1ms). Proven non-vacuous: shrinking the constant to 8s fails the test withexpected "vi.fn()" to not be called at all, but actually been called 1 times.Two were considered and deliberately not actioned, with reasons:
ui-update-value-tolerance.ts—.catch()is broader than enum drift and also swallows type errors with no diagnostic. This is a fair criticism and is the same gap already flagged under "Known gaps" (no warning on the drop path). Not silently changed here because adding a renderer-visible warn path is a behavioural addition beyond the finding's scope and deserves its own review; it is called out rather than quietly deferred.native-chat-view-state.ts— asks whether a stale'working'hook (dropped terminal event, zero messages) could pin the loading surface forever. It resolves throughlifecycleTerminatesCurrentTurninmergeNativeChatLiveSession: acompleted/interruptedlifecycle collapsesstatustoundefined, so the guard is never reached and the pane falls through to'empty'. Worth stating plainly that there is no independent time-based staleness cap on the hook'sworkingstate — if the terminal event is dropped and no lifecycle record arrives, the pane holds the loading surface. That is pre-existing behaviour this PR does not introduce or worsen (the previous code forced'loading'on the same input), but it is a real edge and is recorded here rather than glossed.ko.json— flags조리법vs레시피for "recipes". Correct observation, but out of scope:recipes: "조리법"is upstream's current value, untouched by this PR, and the restoredrecipesHelpuses레시피exactly as feat(plugins): Orca plugin system — kernel, content packs, panels, workers, marketplace v0 (experimental) #8549 shipped it. Normalising the terminology means editing a key this PR is not restoring, which would violate the "restore only, never invent" rule the whole locale change is built on. Better as a follow-up.Locale integrity, re-derived independently at merge time (not taken on trust from the earlier pass):
The audit asserts, for every changed key: the HEAD value is byte-identical to #8549's;
mainstill holds #10770's reverted value (proving no upstream commit owns that key); and the English source is unchanged since #8549. It also asserts key count and index-by-index key order are identical tomain— 11543 in all five catalogs before and after, zero keys added, zero resurrected, zero removed. The only 4 keys flagged by the English-source check are the 4 locale copies ofrecipesHelp, which is the deliberate correction explained above.This audit was re-run from scratch after each of the three rebases this PR went through while sibling PRs landed (
mainmovedf790d9cbe8→2db02562b6→a721125d06). The counts were identical every time. The middle move added 4 newSkillFreshnessRowkeys to all five catalogs — a key-level collision check confirmed zero overlap with the 290 keys restored here, which is why the catalog totals rise from 11539 to 11543 while the restored counts stay fixed.Typecheck and quality gate (all on the final rebased tree, all exit 0):
No
max-linesdisable was added anywhere. Two files went over their cap and were split by extraction instead: the parity assertions moved out ofclient-ui-schemas.tsintoui-state-schema-parity-checks.ts, and the puremergeNativeChatLiveSessionsuite moved out ofuse-native-chat-live-session.test.tsintonative-chat-live-status.test.ts, named after the module it covers. Native-chat test count is unchanged across that extraction.Upstream interactions checked by reading both sides, not by trusting the auto-merge:
client-ui-schemas.ts) addedcombinedDiffFileTreeWidth. Verified still present and consistent acrosstypes.ts,persistence.ts,startup-ui-hydration.tsand the schema — and it is now covered structurally by the generalized parity guard rather than merely happening not to collide.native-chat-live-status.ts) exportedLIFECYCLE_CLOCK_SKEW_SLACK_MS, so there was no textual conflict — but there is a real semantic interaction. fix(native-chat): surface draft launch context in desktop and mobile chat composers #9802 deliberately moved the launch-draft gate offsession.statusonto the rawreadPhase, for precisely the reason 7.5 makes sharper: a liveworkinghook outranksloading. 7.5 adds a second path by which status leavesloadingmid-read. Pinned with a new hook-level test assertingstatus === 'working'andreadPhase === 'loading'on that exact path, confirmed sensitive (restoring the old rule makes it fail withexpected 'loading' to be 'working'). All 22 of fix(native-chat): surface draft launch context in desktop and mobile chat composers #9802's own launch-draft tests pass.Five pre-existing tests were deliberately updated, not deleted to go green:
client-ui.test.ts"rejects unknown worktree card properties / feature interaction ids / feature tip ids" — 7.1 explicitly requires dropping unknown values instead of rejecting the batch. Unknown keys still reject, covered by the surviving "rejects unknown and malformed UI update fields" test.browser-page-zoom.test.ts"restores the configured level when Chromium carries zoom across reloads" — asserted 2 writes; compare-first makes the second a no-op, so the mock now models a real webview whose level actually changes.native-chat-view-state.test.ts"empty wins over a working hook" — its fixture hadsessionId: 'sess'but the stated intent is the pre-session case, so it now passessessionId: null; a separate test covers the known-session case.launch-agent-background-session-remote.test.ts"falls back when an SSH shell produces no observable startup data" — asserted delivery at 1.55s with zero output, which is exactly the 7.2 defect.locale-english-regression.test.ts— its doc comment claimed ~185 keys per locale are restored, which is no longer true post-upstream. The comment was corrected; no assertion was weakened. All 6 sampled keys are non-English in all 4 locales at HEAD, and the sampled set still genuinely gates this change (workingSetDescriptionis now upstream-translated for ja/ko rather than restored here, but still guards es/zh; the other five were English in all four locales).Known gaps — please read before approving
7.4(a) is NOT fixed. This is the most important caveat here. The finding prescribed "restore a per-webview applied-once latch AND compare before calling
setZoomLevel". Only the compare is implemented. The latch is not implementable as prescribed: it directly contradicts #10800's own merged E2E attests/e2e/browser-tab.spec.ts:502, which assertsexpect(zoomLevels).toEqual([0, 0, 0, 0])after externally setting 0.5 and reloading three times — with a latch that same sequence yields[0, 0.5, 0.5, 0.5]. A third "adopt" strategy was probed and yields[0, 0.5, 0.5, 0.5]too. Chromium's HostZoomMap is host-keyed per partition, so "reassert my level after a load" and "do not disturb a sibling on this host" are the same write seen from opposite sides; no per-pane latch resolves it. 7.4 ships as (b) stale-remount re-seed FIXED, (a) mitigated only by compare-before-write, with the load-bearing cross-tab clobber still present. A real fix needs host-scoped zoom ownership, which is a design change outside this diff. This needs a follow-up. A cross-tab regression test was written, watched to fail against this change, and replaced with a narrower test asserting only the redundant-write suppression that is actually delivered.The shipped approach is compare-before-write plus a module-level explicit-zoom memory (keyed by browser tab id, cleared in
destroyPersistentWebviewso a reused id cannot inherit a dead guest's zoom) — not an applied-once latch. That is what keeps the merged E2E at[0, 0, 0, 0]: the test sets 0.5 via rawsetZoomLevel, bypassing the app's zoom handler, so nothing is recorded as user-explicit and the pane still reasserts 0 — the write is merely a no-op when the level already matches.That last paragraph is reasoning from the code plus the spec, not a run — and CI will not settle it. The
e2ejob is path-filtered totests/e2e/**,tests/playwright.*and.github/workflows/e2e.yml; this PR touches none of them, so e2e reportsskipping(correctly, by design). It is also deliberately excluded from theverifygate because, per the workflow's own comment, the suite is currently red onmain. Sobrowser-tab.spec.ts:502is not exercised by this PR's CI and the[0, 0, 0, 0]claim is unverified by execution. A reviewer who wants that confirmed should run the browser e2e spec locally against this branch.7.1 changes an externally visible RPC contract.
ui.setnow returnsok: truewhen it drops an unexpressible value, where it previously returnedinvalid_argument. That is what the finding asked for (degradation instead of total data loss), but it means a paired client no longer learns that one field was rejected, and there is no log or warning on the drop path. Arguably it should warn.7.2's 15s no-output budget is a judgement call, not a number the finding specified. It trades "startup command delivered late on a mute shell" against "delivered before the prompt". There is no field data on real cold-SSH prompt latency to justify 15s specifically.
7.5 shifts a contract. The loading decision moved into
selectNativeChatViewState, so any future consumer readingsession.statusdirectly for a "should I show a spinner" decision now sees'working'where it previously saw'loading'.NativeChatViewwas confirmed to be the only current consumer, and the composer renders outside the viewState switch, so the Stop affordance genuinely survives today.7.7 is cosmetic. It affects mark rendering only — ranking, filtering and commit are unaffected, and it needs an astral glyph in the display name to show at all.
The
!recentSet.has(...)symmetry guard added to the folders bucket inproject-combobox-matching.tsis symmetry only. That duplicate row is unreachable today; it is not claimed as a live bug fix.Visual coverage is partial — 2 of the 5 candidate findings have live before/after pairs (7.7 and 7.6, both captured in the running app in this worktree). The other three could not be honestly captured:
'project-0'), and the armed row is not row 0.Deliberately not changed: the ~30 dead deleted locale keys (zero references at either sha — the 31-34 orphaned cadence/plugin keys dropped by
0404f27b3fand others stay dropped),en.jsonbeyond the singlerecipesHelpcorrection, and the ranking/scoring path inproject-combobox-matching.ts(7.7 was fixed in the renderer because the offsets are also used for scoring).Scope of test runs: only the touched areas were run, not the whole repo, and the Electron e2e suite was not run locally — CI covers it.
Made with Orca 🐋