Repository navigation
Conversation
Quit capture never recorded a Cursor provider session, so restore recreated an empty shell. Extract the hook conversation id, add cursor to the resumable-agent path, and gate remote hosts on a new capability so older servers degrade instead of failing.
Thermo cycle 1 asked for the missing camelCase assertion and for one table per cloned Kimi/Cursor path.
Keep the public diff from drifting when a new resumable agent lands, and lock the override append path.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
cursorjoinsRESUMABLE_TUI_AGENTS— the single source of truth; every resume/quit-capture/hibernation consumer (isResumableTuiAgent,getAgentResumeArgv, the sleeping-record and live-anchor slices) picks it up automatically.- Provider-session extraction —
extractAgentProviderSessiongains acursorcase readingconversation_id/conversationId/session_id/sessionIdinto{ key: 'session_id', id }, andgetAgentResumeArgvemitscursor-agent --resume <id>(a spelling already documented and used by the AI Vault fallback). - Remote wire gating — a new optional
agent-session.cursor-resume.v1capability is advertised and probed before the host-authorityensureAgentSessionpath, so an older host degrades to the legacy launch instead of rejecting the widened agent enum. This matches the Kimi precedent exactly, and the exhaustivesatisfies Record<ResumableTuiAgent, …>map makes the next agent a deliberate decision. - Test coverage — new/updated cases for session extraction and argv, quit-time sleeping record, hook-payload normalization, TUI startup quoting (linux/win32/cmd override), host-authority capability map, remote fallback on an old host, AI Vault + mobile resume, and the hibernation live-anchor list now derived from
RESUMABLE_TUI_AGENTS.
The change is small, focused, and follows the established Kimi pattern. Assertions are exact rather than loose, the capability gate preserves mixed client/host version safety, and the one known gap (no conversation_id before the first prompt) is documented as out of scope.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughCursor is now registered as a resumable TUI agent. Session extraction accepts Cursor payload fields and generates Priority: ➖ Normal — Schedule the Cursor session restoration fix because Orca currently restores Cursor panes as empty shells when session IDs are not persisted or relaunched. Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Cursor session restoration adds persisted session IDs and resume commands, with no outstanding merge-blocking risk identified. 🚥 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 |
CodeRabbit scores docstring coverage on functions this diff touches and fails below 80%.
CodeRabbit re-scored 7 exports at 71%. These two were the gap to 80%.
CodeRabbit raises the function set on each push. Document the remaining locals so coverage cannot stay under 80%.
Cover readSessionId and withTranscriptPath so every function in the touched file has a docstring.
|
@brennanb2025 an easy one 😁 |
|
Thank you @rashad for the Cursor conversation identity and restart/resume work. The independently reviewed successor #24670 has now merged as9a1bef48e4d78cdcab7758d604400f7601fd9dbb and retains explicit credit to your PR. Its exact-head hosted checks passed, including the existing restart dispatch tests and cross-version host checks. Closing this predecessor after the replacement merge; authenticated Cursor continuation and broader native Chat/history acceptance remain separately scoped. |

ELI5
After an Orca restart, a Cursor pane used to come back as an empty shell. It now relaunches
cursor-agent --resume <id>, the same way a Claude pane already relaunchesclaude --resume <id>.What Changed
cursortoRESUMABLE_TUI_AGENTS.conversation_id/session_id, snake or camel) and store it as{ key: 'session_id', id }.cursor-agent --resume <id>.agent-session.cursor-resume.v1, so an older host does not see an unknownensureAgentSessionenum member and fail withinvalid_argument.Why
Quit capture never wrote a Cursor provider session, so restore had nothing to inject into the PTY.
launchAgent: "cursor"is identity metadata, not a command replay. Restore now follows the same--resumepath Claude already uses. Remote hosts probe a new capability so an older server degrades instead of failing.Linked Issue
Fixes #18668
Visual Proof
N/A — no chrome or layout change. Restore injects a PTY command after restart. Verified locally: Cursor pane → one prompt → quit Orca → restore relaunches
cursor-agent --resume <id>.Testing
Unit coverage: session extract + argv, quit-time sleeping record, hook payload normalize, TUI startup quoting (linux + win32 + command override), host-authority capability map, remote launch fallback on an old host, AI Vault + mobile resume command, hibernation live-anchor list derived from
RESUMABLE_TUI_AGENTS.Platforms actually tested: macOS local restart. Linux/Windows quoting is unit-tested; SSH is covered by the capability gate (old host keeps the legacy launch path).
Review
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
Known gap (out of scope): quit before the first prompt still has no
conversation_id, so restore still creates an empty shell. Same class as a pane that never posted a hook id.Remote wire: new optional capability only. Mixed client/host is safe; an old host is probed and then uses legacy launch.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)