Where does the bug appear (feature/product)?
Cloud Agent (GitHub, Slack, Web, Linear)
Describe the Bug
An automation that uses a multi-repo cloud environment gets a workspace with only the primary repo. The environment’s start scripts and terminals run, but the secondary repo is never cloned, and the run’s GitHub token can’t access it. The same environment launched through the API (POST /v1/agents) gets both repos.
Steps to Reproduce
- Create a cloud environment with two repos: org/repo-a (primary) and org/repo-b.
- Create an automation with a Slack “New message in channel” trigger. Set its environment to that environment.
- Post a root message in the channel to trigger a run.
- In the run, execute:
pwd; ls ..; git -C ../repo-b remote -v; gh auth status; gh repo view org/repo-b
Actual output:
- pwd is /workspace, and repo-a is cloned directly there. ls .. lists /, so there is no sibling checkout.
- git -C ../repo-b … → fatal: cannot change to ‘../repo-b’: No such file or directory
- gh auth status shows a ghs_ installation token.
- gh repo view org/repo-b → GraphQL: Could not resolve to a Repository with the name ‘org/repo-b’
- All of the environment’s configured terminals started (tmux ls). So Cursor applied the environment’s setup but not its repo list.
The agent then told the user it couldn’t make the change because the repo wasn’t available.
Expected Behavior
The automation’s workspace matches the environment: both repos are cloned, and the run’s GitHub token can read and push to both. This is what happens when we launch the same environment with POST /v1/agents and env: { type: “cloud”, name: “” }.
Operating System
Linux
Version Information
N/A. The automation launched the agent. We viewed it in the web dashboard, not the IDE or CLI.
For AI issues: which model did you use?
Model name: Auto
For AI issues: add Request ID with privacy disabled
Request ID: f0cf2a02-2249-4cb3-bda7-c11da3dda08b
Background Agent ID: bc-99a8f05f-4bef-59f1-96f4-43bb8976db94
Additional Information
- Automation ID: a4445c67-7562-11f1-a8a0-cafc5ef88358
- Questions: Do automations support multi-repo environments? If they do, is there a per-automation repo setting that overrides the environment’s repo list?
Does this stop you from using Cursor
No - Cursor works, but with this issue
