Skip to content

[Bug]: Claude worktree status stays on needs attention after answering a question #8310

Closed

Description

@mmarabel

Operating system

macOS

Orca version

1.4.136-rc.0

Details

Short summary

After Claude presents an interactive AskUserQuestion prompt, the worktree correctly changes to the solid amber needs-attention status. After the user answers and Claude resumes working, the sidebar status remains stuck on needs attention instead of returning to the animated working indicator.

What happened?

The Claude terminal visibly resumes work and continues running tools such as Read, Bash, and Edit. Its terminal title also shows the live working spinner. However, the worktree's sidebar indicator remains a solid amber dot.

Runtime inspection shows the agent's explicit status is still cached as waiting with toolName: "AskUserQuestion", even though later tool activity and terminal output prove that the agent is working.

The stale status can persist across later working activity. Pressing Esc to interrupt the agent and then continuing with a new manual prompt resets the indicator.

How can we reproduce it?

  1. Open a worktree in Orca and start Claude.
  2. Give Claude a task that causes it to call AskUserQuestion.
  3. Confirm the worktree changes to the solid amber needs-attention dot while the question is waiting.
  4. Answer the question.
  5. Let Claude continue with another tool call, such as reading or editing a file.
  6. Observe that Claude is visibly working, but the worktree remains on the solid amber needs-attention dot instead of showing the animated working indicator.
  7. Press Esc and submit a new prompt; observe that this resets the status.

Expected behavior

The worktree should show needs attention only while Claude is waiting for the user's answer. Once the answer is accepted and subsequent tool work begins, the status should return to the animated working indicator. Genuine tool permission requests should remain sticky until the relevant permission is resolved.

Technical notes

AskUserQuestion is normalized from a Claude PreToolUse event into waiting. The hook server's sticky Claude permission guard currently applies to every Claude waiting → working transition, not only to an actual PermissionRequest.

As a result, the later working event is discarded unless it matches the identity of an approved permission-gated tool. A normal tool following an answered interactive question has a different tool name and execution ID, so the stale AskUserQuestion wait remains cached and continues to outrank the title-derived working state.

The likely correction is to retain sticky behavior only when the originating hook event is PermissionRequest, while allowing an interactive-question wait to clear on the next working hook. Regression coverage should include both:

  • AskUserQuestion waiting → Read working changes to working.
  • PermissionRequest waiting → unrelated Read working remains waiting.

Scope notes

The issue was reproduced with a local macOS worktree and Claude. The affected hook-server transition is shared by local and remote/SSH ingestion paths, so both paths should preserve the same behavior. No layout, styling, or other visual design change is required.

Activity

  1. added
    os:macos
    on Jul 11, 2026
  2. self-assigned this
    on Jul 11, 2026
  3. nwparker commented on Jul 11, 2026

    @nwparker
    Contributor

    will be in next release, usually within 24 hours

  4. added theissue type on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

os:macos

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions