Repository navigation
Gate paired-runtime terminal mounts on host snapshots - #15624
revofusion wants to merge 2 commits into
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 (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughTerminal startup now reacts to accepted web-session snapshot revisions and validates snapshots against runtime connection identity. It identifies terminal tabs owned by the active paired runtime environment. While the host snapshot is unavailable, it resets activation planning and restricts mounts to host-recognized tabs. The new restriction helper updates allowed and deferred tab state. Tests cover snapshot authority and empty host snapshots. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d58e5781-fd05-4094-b841-7a3b4b59c58b
📒 Files selected for processing (5)
src/renderer/src/components/Terminal.tsxsrc/renderer/src/components/terminal/background-terminal-worktree-mount.test.tssrc/renderer/src/components/terminal/background-terminal-worktree-mount.tssrc/renderer/src/runtime/web-session-tabs-sync-terminal-bootstrap.test.tssrc/renderer/src/runtime/web-session-tabs-sync.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
ELI5
Orca now waits for the current remote host's terminal list before mounting saved tabs, so dead entries cannot open duplicate shells.
What Changed
session.tabssnapshot.Why
Persisted rows mounted before the host snapshot and each mount created a remote shell.
Linked Issue
Fixes #15622
Visual Proof
N/A — this is a terminal lifecycle guard with no static visual output.
Testing
Focused Vitest: 2 files, 32 tests. Renderer typecheck and changed-file lint pass.
AI Disclosure
OpenAI Codex.
Review
Addressed CodeRabbit's reactivity finding: an empty accepted snapshot keeps stale PTY-less rows deferred on later renders.
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
No PTY teardown changes. Live host shells remain mountable. Local and SSH terminals are unchanged.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)