Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe renderer now converts mirrored note target tab IDs to host session tab IDs before matching active runtime terminals. The explicit-target test now uses separate host and mirrored tab IDs while retaining the leaf ID match. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
|
Second confirmation for this fix, from a different setup. A macOS desktop client on v1.4.193 with a headless The normalization reads correct to me. Other remote paths already run the renderer tab id through the same codec before they talk to the runtime, so the lookup here was the odd one out. Is anything blocking a review? The bug makes review notes unusable against a remote runtime, and the only workaround is to paste the note text into the agent terminal by hand. |
|
I also experiment this bug which is very annoying. Maybe @AmethystLiang or @Jinwoo-H can have a look at it? 😊 |
|
The mirrored-tab normalization in this PR is already on current main. The runtime note-target lookup converts the renderer tab ID with |
ELI5
In a paired Orca session, the renderer gives a mirrored terminal tab a local
web-terminal-*ID, while the runtime still lists that same terminal by its raw host ID. Review-note sending compared those two spellings directly, so it incorrectly reported that the selected terminal was unavailable. This change translates the renderer ID back to the runtime ID at the lookup boundary.What Changed
toHostSessionTabId()codec before matchingterminal.listresults.Why
Paired-runtime Markdown review notes currently fail with "The selected terminal is no longer available" even when the agent terminal is connected and writable. The renderer stores mirrored tabs as
web-terminal-*, butterminal.listpublishes the raw host tab ID.Normalizing only at the renderer-to-runtime inventory boundary fixes the identity mismatch without rewriting renderer store keys or changing the wire protocol.
Linked Issue
Fixes #16225
Visual Proof
N/A — no visual layout, styling, or copy changed. This is an identity lookup fix at the renderer/runtime boundary; the paired identity behavior is covered by the explicit-send regression test.
Testing
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/active-agent-note-send-explicit-target.test.ts src/renderer/src/lib/active-agent-note-send-target-detection.test.ts src/renderer/src/lib/active-agent-note-send-focused-session.test.ts— 34/34 passedpnpm lint— passedpnpm typecheck— passedpnpm build— passedsrc/relay/subprocess.test.ts; that file passed immediately standalone (31/31). Remote CI will provide the clean-suite signal.Platforms and environments reviewed:
AI Disclosure
Implemented and reviewed with OpenAI Codex (GPT-5.6).
Review
toHostSessionTabId()leaves non-mirrored IDs unchanged.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck, andpnpm buildpass; the local full-test exception is documented above and remote CI will verify the suite