fix(resume): Claude's Resume session picker waits for a person, and sends refuse there #2040
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 624 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.385
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #2040"
general
weight: 0.35
openrig-review
What changes
When
claude --resumehas no exact session to open, Claude Code 2.1.309 draws its Resume session picker. That happens for a bare--resume, and for a name that matches no session title or more than one.OpenRig read that screen as resumed and ready:
checkReady()returnedready: true, and the native resume probe returnedresumed/active_runtime.claudeis the foreground process".Now:
attention_required/claude_resume_selection_prompt, socheckReadyisn't ready.rig sendto that screen refuses withtarget_needs_inputand types nothing.attention_requiredat once, instead of waiting out its readiness timeout and reportingfailed. This now also applies to the numbered and two-choice choosers, whose code was missing from the attention list.How the picker is recognized
Resume sessionheading, with an optional detail after it such as(2 of 9), followed directly by the search box:╭─…─╮, a│ ⌕row, any rows a long query wraps to, then╰─…─╯.Proof
claude --resumein a 100×80 pane (test/fixtures/claude-resume-picker-2.1.309.json, two frames). Variants are built from its rows:- a 100×24 replay;
- a no-match search;
- a wrapped query;
- a heading count;
- no conversations;
- an old picker above a resumed session, with a plain and a labelled frame;
- a quoting reply;
- a heading with no box.
checkReadyand startup. The history and quote controls pass on both.tscpasses.Not covered
No conversation found with session IDand exits, which already reads asfailed/no_conversation_found.Round 1
- What retires it now: only Claude's framed input box, or a reply row (
●or⏺at column 0), after the box. A resumed session draws its input box, so an old picker above a session, and a reply quoting the picker, still read as resumed.- The numbered and two-choice choosers keep their check. It reads only rows after their last option.
- RED: with the old head's source, 6 new cases fail: two card titles in the probe, a header-titled card through the real transport with null and
claude-coderuntimes, and a picker printed in Codex and Pi panes.- GREEN, on Linux at
923885a2: the 32 affected daemon test files pass, 2,498 tests with 0 failed.tscpasses.🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Claude’s current “Resume session” picker is now recognized as requiring your attention. Sessions waiting for you to choose a conversation remain in that state until you make a selection.
Sending a prompt while the picker is visible is blocked, including in compact terminal layouts. A picker shown earlier in the conversation does not prevent sending once an active composer is available. *
<!-- end of auto-generated comment: release notes by coderabbit.ai -->