Skip to content

ag-stream conv-id discovery fails in linked worktree despite unique prompt #165

Description

@rbinar

Reproduction

From an existing linked git worktree, run:

CLI_DISPATCH_CONFIG=/dev/null CLI_DISPATCH_SESSIONS_DIR=/private/tmp/cli-dispatch-sessions cli-dispatch-run --backend ag --cwd /private/tmp/cx-wt-u9dpdW --prompt-file BRIEF.md --model claude-sonnet-4-6 --verify "sh backend/scripts/verify_backend_in_worktree.sh"

The runner enters in-place mode, starts ag-stream, then exits before a worker turn with:

ag-stream: could not identify the agy conversation this run created
(no NEW conversation matched this run prompt — possible parallel same-cwd race)

The discovery-failure artifact records backend antigravity, model claude-sonnet-4-6, zero events, and errorKind: discovery. No parallel worker was running in this cwd and the worktree remained clean.

Observed with agy 1.1.17 and cli-dispatch 4.27.0 on macOS.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions