Skip to content

Add terminal caching for faster workspace switching#23

Merged
gricha merged 1 commit intomainfrom
feature/terminal-persistence
Jan 7, 2026
Merged

Add terminal caching for faster workspace switching#23
gricha merged 1 commit intomainfrom
feature/terminal-persistence

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 7, 2026

Summary

  • Cache up to 5 terminal instances using LRU eviction strategy
  • Reuse cached terminal when switching back to a workspace, preserving scrollback history
  • WebSocket connections are maintained per cached terminal
  • Memory estimate: ~2-15MB per terminal depending on scrollback usage

Test plan

  • Switch between workspace terminals and verify content is preserved
  • Switch to 6+ different workspaces to verify LRU eviction works
  • Verify rapid tab switching doesn't cause issues
  • Confirm WebSocket reconnects properly after tab switch

🤖 Generated with Claude Code

- Cache up to 5 terminal instances with LRU eviction
- Reuse existing terminal when switching back to a workspace
- Preserve terminal scrollback and WebSocket connection
- Fix unused import lint warning in e2e test

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit 8750e82 into main Jan 7, 2026
5 checks passed
@gricha gricha deleted the feature/terminal-persistence branch January 7, 2026 04:35
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