Skip to content

fix: skip in-sandbox provisioning when cloud launcher already seeded ACLs#711

Merged
khaliqgant merged 2 commits into
mainfrom
fix/skip-cloud-provisioning
Apr 10, 2026
Merged

fix: skip in-sandbox provisioning when cloud launcher already seeded ACLs#711
khaliqgant merged 2 commits into
mainfrom
fix/skip-cloud-provisioning

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

@khaliqgant khaliqgant commented Apr 10, 2026

Summary

  • Add early-return guard in WorkflowRunner.provisionAgents() when RELAY_CLOUD_PROVISIONING_DONE=1 is set
  • The cloud bootstrap already compiles and seeds relayfile ACLs before the sandbox starts. The SDK provisioner (added in v4.0.9) calls POST /v1/workspaces on the relayfile API — which has no such route — causing a fatal 404 that kills standalone TS workflows

Companion PR

  • Cloud side: sets the env var in the bootstrap script before all execution paths (YAML, TS config extraction, standalone bun run)

Test plan

  • Run a cloud workflow with agent permissions via agent-relay cloud run — should no longer 404
  • Run a local workflow with agent permissions — provisioner still works (env var not set locally)

🤖 Generated with Claude Code


Open with Devin

…ACLs

The cloud bootstrap sets RELAY_CLOUD_PROVISIONING_DONE=1 to signal that
relayfile ACLs were already compiled and seeded by the launcher. Without
this guard, the SDK provisioner calls POST /v1/workspaces on the relayfile
API — which has no such route — causing a fatal 404 that kills the workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@khaliqgant khaliqgant merged commit e3853a9 into main Apr 10, 2026
33 checks passed
@khaliqgant khaliqgant deleted the fix/skip-cloud-provisioning branch April 10, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant