Skip to content

fix: keep terminal mux persistent across navigation#325

Draft
whoisasx wants to merge 9 commits into
mainfrom
fix/persistent-terminal-mux
Draft

fix: keep terminal mux persistent across navigation#325
whoisasx wants to merge 9 commits into
mainfrom
fix/persistent-terminal-mux

Conversation

@whoisasx

Copy link
Copy Markdown
Collaborator

Summary

  • add a shell-owned terminal mux transport that reconnects across daemon/API base changes while preserving listeners
  • refactor visible terminal attachment to switch handles with explicit close/open frames instead of owning the websocket
  • harden backend mux data forwarding with an attachment identity guard and cover same-socket switching/cleanup behavior

Fixes #324 terminal transport track.

Tests

  • cd frontend && npm test -- terminal-mux useTerminalSession
  • cd frontend && npm run typecheck
  • cd backend && go test ./internal/terminal ./internal/httpd ./internal/adapters/runtime/zellij

Notes

@whoisasx whoisasx requested a review from Copilot June 18, 2026 21:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@whoisasx whoisasx marked this pull request as draft June 18, 2026 21:52
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.

Initial findings and follow-on iteration to find actual RC: Electron terminal distortion with Codex/zellij

2 participants