Skip to content

Persist orca serve terminal sessions - #4656

Merged
Jinwoo-H merged 3 commits into
mainfrom
Jinwoo-H/feature-orca-serve-persist-host-terminal-session
Jun 4, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
Jinwoo-H/feature-orca-serve-persist-host-terminal-session

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • persist runtime-owned orca serve terminal tab/leaf/PTY bindings in the host workspace session
  • hydrate headless session-tabs snapshots from host persistence before paired clients bootstrap new terminals
  • mirror SSH lease/persistence sequencing for runtime-owned SSH PTYs while keeping stale leases from surviving failed binding writes
  • add renderer guards so paired web clients mirror host-owned terminals without duplicating them on empty/stale snapshots

Verification

  • pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/orca-runtime.test.ts src/main/ipc/pty.test.ts src/main/providers/local-pty-provider.test.ts src/main/persistence.test.ts src/renderer/src/runtime/web-session-tabs-sync.test.ts src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.test.ts --reporter=verbose (714 tests passed)
  • pnpm run typecheck
  • pnpm run lint (passed with existing warnings in Settings.tsx, StatusBar.tsx, ChecksPanel.tsx)
  • git diff --check
  • Electron E2E via playwright-cli CDP against an isolated dev profile: verified app identity, visible terminal tabs, Resource Manager session count, real PTY write, and main-buffer marker readback
  • Headless orca serve E2E against an isolated profile: created a terminal through raw session.tabs.createTerminal, verified marker output through CLI, verified persisted tabsByWorktree / terminalLayoutsByTabId, restarted serve, and verified session.tabs.list hydrated the same tab id, leaf id, layout, and serve-* PTY id as a pending host tab
  • pnpm run build:relay

Not verified live

  • Docker-backed SSH relay E2E could not run in this environment because docker version hung and had to be terminated by exact probe PID. SSH parity is covered by unit tests/review, but not by a live Docker target here.

Fixes #4637

Made with Orca 🐋

@Jinwoo-H
Jinwoo-H merged commit 8654a41 into main Jun 4, 2026
1 check passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/feature-orca-serve-persist-host-terminal-session branch June 4, 2026 20:38
@AmethystLiang AmethystLiang added the orca-remote-server Remote Orca Server / orca serve / paired remote runtime label Jul 22, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orca-remote-server Remote Orca Server / orca serve / paired remote runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: orca serve — persist host terminal sessions across client reconnect

2 participants