Skip to content

fix: avoid stale Claude busy detection#249

Merged
kbwo merged 1 commit intomainfrom
fix/busy-detection-2026-03-18
Mar 18, 2026
Merged

fix: avoid stale Claude busy detection#249
kbwo merged 1 commit intomainfrom
fix/busy-detection-2026-03-18

Conversation

@kbwo
Copy link
Copy Markdown
Owner

@kbwo kbwo commented Mar 18, 2026

Summary

  • limit Claude busy detection to the latest contiguous content block above the prompt box
  • ignore stale spinner and interrupt fragments left behind by Claude Code redraws
  • add regression tests covering stale busy markers above an idle prompt

@kbwo kbwo marked this pull request as ready for review March 18, 2026 13:14
@kbwo kbwo merged commit ee2f3f7 into main Mar 18, 2026
1 check passed
kbwo added a commit that referenced this pull request Apr 19, 2026
The 5-line cap in getRecentContentAbovePromptBox dropped the spinner
header and token stats line when Claude Code's TodoWrite rendered a
long checklist inside the same recent block. The empty-line boundary
introduced in #249 already separates stale redraw fragments, so the
additional cap is redundant and caused false idle detection.
kbwo added a commit that referenced this pull request Apr 19, 2026
The 5-line cap in getRecentContentAbovePromptBox dropped the spinner
header and token stats line when Claude Code's TodoWrite rendered a
long checklist inside the same recent block. The empty-line boundary
introduced in #249 already separates stale redraw fragments, so the
additional cap is redundant and caused false idle detection.
kbwo added a commit that referenced this pull request Apr 19, 2026
…288)

The 5-line cap in getRecentContentAbovePromptBox dropped the spinner
header and token stats line when Claude Code's TodoWrite rendered a
long checklist inside the same recent block. The empty-line boundary
introduced in #249 already separates stale redraw fragments, so the
additional cap is redundant and caused false idle detection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant