You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Garbled screen on reattach after exiting alternate screen buffer apps (Claude Code, vim) #122
When a user exits Claude Code (or any alternate screen buffer app like vim) and then reattaches to the session, the terminal shows a screen full of repeated bash prompts and residual rendering artifacts.
Root Cause
The output buffer (deque of last 1000 chunks) accumulates raw PTY output including alternate screen enter/exit sequences. On reattach, _doAttach() replays the entire buffer, causing the alternate screen sequences and stale prompts to render.
Expected Behavior
After reattach, the terminal should show a clean screen with the current shell prompt.
Fix
Send a screen clear and resize after reattach to force a clean terminal state.
Activity
fix: exit alternate screen buffer on session reattach (#122)
fix: clear screen after alternate screen buffer exit (#122)
fix: clear screen after buffer replay on reattach (#122)
fix: use term.reset() + resize instead of buffer replay on reattach (#…
fix: force SIGWINCH on reattach by toggling terminal size (#122)
feat: session management, clipboard, rendering fixes, dep cleanup (v0…