Per-tab Claude session resume#24
Draft
mvbmir wants to merge 2 commits into
Draft
Conversation
ac839ae to
6f2956a
Compare
Give each terminal tab its own Claude session that auto-resumes on next launch, including `/resume` switches made from inside Claude's UI. Mechanics: - Each tab gets a pre-generated session UUID plus env vars `LIMUX_TAB_ID` and `LIMUX_CLAUDE_SESSION_ID`. - A shim `claude` wrapper is installed to `~/.local/share/limux/bin/` and prepended to PATH. Plain `claude` invocations get `--session-id $LIMUX_CLAUDE_SESSION_ID` appended; `--resume`, `--continue`, `--session-id`, etc. pass through untouched. - A 1 Hz GTK poller locates the tab's `claude` process via `/proc/<pid>/environ` and reads Claude's own `~/.claude/sessions/<pid>.json` status file to track the currently active session UUID (updates on `/resume`). - Snapshot persists the live UUID (falling back to the pre-generated one); restore launches `claude --resume <uuid>` if the session JSONL still exists, otherwise boots a plain shell. Two tabs in the same cwd now resume independently because each claude process has a unique PID, inherits a unique tab ID, and writes its own status file.
6f2956a to
9f8ce53
Compare
Rust 1.95 stable (released between main's last green CI run and this
PR's) promotes collapsible_match to a warning, which the workspace's
check.sh treats as an error via -D warnings.
The flagged patterns in limux-core are `match combo_norm { pattern
=> { if palette_visible { … true } else { false } } … }` — they
collapse cleanly into match guards: `pattern if palette_visible =>
{ … true }`. Behavior is unchanged; any non-match combo hits the
catch-all `_ => false` arm.
Unrelated to the redesign; included here to keep CI green.
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
Mechanics
Test plan
Notes