Skip to content

runner sandbox + model forwarding failures in linked worktree #166

Description

@rbinar

Observed with cli-dispatch 4.27.0 from a linked worktree under a managed macOS workspace-write sandbox.

Reproductions:

  1. cli-dispatch-run --backend cx ... fails before the worker turn with /Users/rbinar/.local/bin/cx-stream: line 382: /dev/fd/63: Operation not permitted.
  2. cli-dispatch-run --backend ag --model claude-sonnet-4-6 ... did not forward the requested model; ag-stream reported configured gemini-3.6-flash-high instead. Setting AG_MODEL=claude-sonnet-4-6 was also overwritten until CLI_DISPATCH_CONFIG=/dev/null was set. This conflicts with the stream-utils comment that env wins.
  3. With config disabled and the live agy models slug claude-sonnet-4-6, ag-stream warns that the model is unlisted because model_listed compares the normalized full tab-separated slug+display-name line to the slug. The exact slug is accepted by agy.
  4. The resulting ag run later fails with could not identify the agy conversation this run created (no NEW conversation matched this run prompt) even with no parallel same-cwd worker.
  5. Default session root under ~/.cache/cli-dispatch/sessions is not writable in managed workspace-write sandboxes; setting CLI_DISPATCH_SESSIONS_DIR=/tmp/... works.

No target-repo source files were written by these failed runner attempts. A direct Sonnet worker fallback completed the task and deterministic verification was rerun by the orchestrator.

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