v0.0.40: persist open sessions and restore them on restart - #81
Merged
Conversation
abasiri
pushed a commit
that referenced
this pull request
Aug 1, 2026
A TUI that turns on mouse tracking (CSI ?1002h / ?1003h) makes xterm.js forward every drag to the application, so no text can be selected. Terminal.app and iTerm2 let you hold Option to override that; xterm.js gates the same escape hatch behind macOptionClickForcesSelection, which defaults to false. The symptom is misleading: Cmd+C finds no selection, so xterm's copy handler is a no-op and fails silently, leaving the previous clipboard contents in place. The next paste then inserts stale text and reads as a broken paste. Windows and Linux are unaffected — there the override is Shift, which needs no option.
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.
Version bump to v0.0.40.
Ships #80 — session restore on restart (persist the working set of open Claude sessions; re-open them sequentially via
claude --resumeon next launch; configurable off/ask/auto via the new "Restore Sessions on Startup" setting).