fix: improve session snapshot and terminal lifecycle management#17
Merged
fix: improve session snapshot and terminal lifecycle management#17
Conversation
- (H) Send terminal cleanup sequences on detach to reset mouse modes, bracketed paste, alternate screen, and cursor visibility in the client terminal - (B) Increase scrollback capacity from 0 to 10,000 lines so history is available after reattach - (G) Respond to DA1/DA2 queries with canned responses when no clients are connected, preventing apps from hanging on capability detection - (A) Prepend ESC[?1049h in snapshots when alternate screen is active so reattaching clients properly enter alternate screen mode - (C) Track window title via vt100 Callbacks and restore it in snapshots via OSC 2 sequence on reattach Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
0 → 10,000行に変更し、再アタッチ後に履歴を参照可能にESC[?1049hを付加し再アタッチ後に正しく alt screen へ入るように修正OSC 2を再送して reattach 後にタイトルを復元Test plan
vim/htop等 alt screen を使うアプリで detach → reattach して画面が正しく復元されることを確認cargo buildが通ること(CI)🤖 Generated with Claude Code