Fix session lifecycle classification for idle tmux shells#2829
Merged
sigridjineth merged 1 commit intomainfrom Apr 29, 2026
Merged
Fix session lifecycle classification for idle tmux shells#2829sigridjineth merged 1 commit intomainfrom
sigridjineth merged 1 commit intomainfrom
Conversation
Operator status previously treated any tmux pane in a workspace as equivalent to active work. The new classifier uses tmux pane command/path metadata as a soft signal, treats plain shells as idle, and adds dirty-worktree abandoned markers to status and session-list output for clawhip consumers. Constraint: Keep issue #320 prototype minimal and additive without new dependencies Rejected: Screen-scraping pane output | fragile and broader than needed for lifecycle classification Confidence: high Scope-risk: narrow Tested: cargo test -p rusty-claude-cli Tested: cargo check -p rusty-claude-cli Not-tested: cargo clippy -p rusty-claude-cli --all-targets -- -D warnings is blocked by pre-existing commands crate clippy::unnecessary_wraps warnings
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
claw statusJSON/text and/session listtext/resume JSON detailsVerification
cargo test -p rusty-claude-clicargo check -p rusty-claude-clicargo run -p rusty-claude-cli -- status --output-format json | python3 -m json.toolNotes
cargo clippy -p rusty-claude-cli --all-targets -- -D warningswas attempted but is blocked by pre-existingclippy::unnecessary_wrapswarnings inrust/crates/commands/src/lib.rs(render_mcp_report_for,render_mcp_report_json_for), outside this diff.Fixes #320