Skip to content

[Bug]: Resume queue bypasses failed worktree setup and schedules work in the project checkout #36615

Closed

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Start a thread requesting a new worktree.
  2. Queue a follow-up while the checkout is preparing.
  3. Let worktree preparation fail before a worktree path is published.
  4. Choose Resume queue or Send now.

Deterministic server reproduction: create the thread and deferred worktree run through OrchestratorV2, queue the follow-up, dispatch prepared-run.fail (the command ThreadLaunchService uses), await the held-run event, then dispatch either queue.resume or queued-run.start.

Expected behavior

The follow-up stays held until worktree setup is retried or a workspace is explicitly selected.

Actual behavior

Both commands clear the hold and start the queued follow-up with no worktree path. Checkpoint scope uses the project checkout and the provider-turn.start effect is persisted. This proves unintended scheduling, not actual provider edits.

Impact

Minor bug or occasional failure

Version or commit

main @ 000d82d

Environment

Linux, server orchestration runtime with in-memory SQLite. Shared server commands are reachable from web/desktop Send now and mobile Resume queue, including remote connections.

Logs or stack traces

The supplied bughunt reproduction fails for both commands: expected queued, received starting. The existing unresolved-worktree queue control passes. Independently confirmed by Claude Opus 5.5 on bebaf3e and reproduced again on the commit above.

Screenshots, recordings, or supporting files

Server-side proof; no browser capture or real git-failure reproduction.

Workaround

Retry worktree preparation or select a workspace before resuming. Do not resume the held queue while preparation remains unresolved.

Related closed issue #23600 concerned a newly sent message after Stop; this report concerns explicit Resume queue / Send now after the queue has already been held.

Activity

  1. added
    vouch:trusted
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions