Repository navigation
fix: stop treating claude background shells as working - #3468
ogulcancelik merged 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughClaude detection metadata is updated to version Suggested reviewers: Merge Risk: ⚪ Minimal · up to Background shells no longer mark an otherwise idle Claude pane as working, while live turns and permission prompts retain their existing states. No actionable merge-blocking risk remains beyond normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 1 files. (2 skipped: 2 unsupported.) Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commented
Aug 31, 2026
|
@coderabbitai review |
|
✅ Action performedReview finished.
|
Greptile SummaryThis PR updates Claude state detection so a background shell is treated as context rather than independent evidence of foreground work.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| distribution/agent-detection/claude.toml | Updates the distributed Claude manifest version and removes background-shell-only working evidence. |
| src/detect/manifests/claude.toml | Keeps the bundled Claude manifest aligned with the distributed definition. |
| src/detect/manifest/tests.rs | Adds regression coverage for idle, active, and blocked Claude states when a background shell remains. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
S[Claude terminal signals] --> L{Live turn indicator?}
L -->|Yes| W[Working]
L -->|No| B{Permission blocker?}
B -->|Yes| K[Blocked]
B -->|No| P{Visible empty prompt?}
P -->|Yes| I[Idle]
P -->|No| F[Known-agent idle fallback]
H[Background shell indicator] -. Context only .-> L
Reviews (2): Last reviewed commit: "fix: stop treating claude background she..." | Re-trigger Greptile
3ef782e to
7120903
Compare
commented
Sep 2, 2026
|
@coderabbitai review |
|
✅ Action performedReview finished.
|
commented
Sep 2, 2026
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Issue
Claude Code can return to an empty prompt while a long-lived background shell remains. Herdr keeps the pane
workinginstead of showing that Claude is idle.Problem
The background shell indicator counted as working evidence on its own. It outranked the empty prompt even after the foreground turn ended.
How did we fix it?
Herdr now treats a background shell as context rather than proof that Claude is working. An empty prompt can report
idle, while live-turn indicators still reportworkingand permission prompts still reportblocked.Verification
The captured idle-prompt case failed as
Workingbefore the change and passes asIdleafterward. All 13 focused Claude detection tests, lint, Windows lint, and maintenance checks pass. Fulljust checkreached 3,514 passing tests but remains blocked by an unrelated root-permission test and a live-handoff timeout on this VPS.refs #3414