Skip to content

Add GUI and TUI session handoff via resume id - #15

Merged
cursor[bot] merged 3 commits into
mainfrom
cursor/desktop-gui-tui-handoff-17c0
Aug 29, 2026
Merged

Add GUI and TUI session handoff via resume id#15
cursor[bot] merged 3 commits into
mainfrom
cursor/desktop-gui-tui-handoff-17c0

Conversation

@gaoyu06

@gaoyu06 gaoyu06 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

A GUI agent session can continue in the native TUI by resume session id, then return to the GUI. Same mosaic chat:<id> tile — not a new create-tab type.

Scope

  • Rust validate_tui_args allows claude --resume <id> and codex resume <id> (id still is_valid_session_id). JuCode still has no extra argv; the TUI gets /resume <id> on stdin after spawn.
  • Session surface: 'gui' | 'tui'. GUI engine is closed before TUI resume; pty is closed before GUI respawn.
  • Composer footer: 「在 TUI 中继续」 for jucode/claude/codex when a valid session id exists. ACP never hands off.
  • Standalone persisted tui:* tabs are unchanged. Mosaic + does not regain TUI create options.

Ship-ready

  • pnpm test: 30 files / 477 tests.
  • pnpm check: clean.
  • cargo test: 121 passed; clippy clean.

Needs review

  • Exclusive ownership of the conversation (no dual process).
  • Restore-into-TUI vs return-to-GUI resume paths.
  • JuCode stdin /resume timing.

Review preconditions

  • Claude: GUI → claude --resume <uuid> → back to GUI with engine resume.
  • Codex: resume <threadId> similarly.
  • Confirm ACP has no TUI control.
  • Confirm empty new chats cannot hand off.
Open in Web Open in Cursor 

cursoragent and others added 3 commits August 29, 2026 11:51
Co-authored-by: Gao Yu <gaoyu06@users.noreply.github.com>
Co-authored-by: Gao Yu <gaoyu06@users.noreply.github.com>
Co-authored-by: Gao Yu <gaoyu06@users.noreply.github.com>
@cursor
cursor Bot merged commit 100957b into main Aug 29, 2026
2 checks passed
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.

2 participants