Skip to content

[Bug]: Claude request results leave stale permission waits across reconnects #28186

Closed as not planned

Description

@thebestmensch

Claude's tool request can finish without a later hook clearing Orca's cached permission wait. A remote disconnect adds another failure: the execution host can observe the result, then receive a newer tool hook that replaces the only cached settlement evidence. Reconnecting the desktop replays the newer working row, but the desktop retains the earlier permission wait.

The following sequence is reproduced with the real main and relay hook servers and a synthetic persisted transcript:

  1. Deliver PermissionRequest for tool A to the desktop.
  2. Disconnect forwarding while leaving the execution host running.
  3. Append a terminal result for A on its transcript branch.
  4. Deliver PreToolUse for tool B on the execution host.
  5. Reconnect and replay the relay's cached status.

Expected: the exact completed request A no longer appears pending, and the current tool/child state is retained. A result must not imply permission approval, user cancellation, or completion of the whole agent turn. Unrelated requests and live child work must remain intact.

Related cases include PostToolUseFailure clearing display fields before the matching logic runs, multiple child requests settling while disconnected, and a transient status-admission error stopping subsequent reconciliation.

This report distinguishes deterministic source-level reproduction from installed-runtime acceptance. The proposed transcript ancestry reader still needs validation against real persisted Claude CLI transcripts and Windows-to-Mac sessions. No permission or trust dialog should be answered automatically to make that validation pass.

Related: #15078 proposes a different local-only denial inference; #25854 concerns missing visible wait reporting. Request settlement should not be converted into done or interrupted without independent evidence.

Activity

  1. AmethystLiang commented on Oct 14, 2026

    @AmethystLiang
    Contributor

    Thanks for reporting. Looking into it

  2. nwparker commented on Oct 24, 2026

    @nwparker
    Contributor

    Thanks for the very thorough report, @thebestmensch. Two fixes landed: #29387 clears a Claude permission wait when the approved tool fails, and #29482 releases a wait that ended while the SSH link was down. Please try the latest build; if stale waits still show after a reconnect, reply or reopen with the hook log.

  3. nwparker commented on Nov 8, 2026

    @nwparker
    Contributor

    Hi @thebestmensch, we haven't heard back since our last question, so we're closing this for now. If it still happens on the latest version, please open a new issue with your Orca version, OS, steps to reproduce, and logs, and link back to this one. Thanks for reporting!

  4. locked and limited conversation to collaborators on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions