Skip to content

Fix terminal session isolation between workspaces#22

Merged
gricha merged 2 commits intomainfrom
fix/terminal-session-cleanup
Jan 7, 2026
Merged

Fix terminal session isolation between workspaces#22
gricha merged 2 commits intomainfrom
fix/terminal-session-cleanup

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 7, 2026

Summary

  • Fixed terminal content persisting when switching between workspace terminals
  • Root cause: ghostty-web uses a module-level singleton WASM instance shared by all terminals
  • Fix: Create separate Ghostty instance per Terminal instead of using shared singleton

Test plan

  • E2E tests added for terminal isolation (sidebar navigation + rapid tab switching)
  • Manual verification via screenshots showing clean terminals when switching workspaces
  • Build passes

🤖 Generated with Claude Code

gricha and others added 2 commits January 7, 2026 04:08
The terminal content was persisting when switching between workspace
terminals because ghostty-web uses a module-level singleton WASM
instance that all Terminal instances shared.

Fix: Create a separate Ghostty WASM instance for each Terminal by
calling Ghostty.load() directly instead of using the shared init().

Also includes:
- E2E tests for terminal isolation
- Vite proxy config for local development
- allowedHosts config for remote access

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit 9bdca05 into main Jan 7, 2026
5 checks passed
@gricha gricha deleted the fix/terminal-session-cleanup branch January 7, 2026 06:55
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.

1 participant