Skip to content

Add SDK health wait gate#206

Merged
NathanFlurry merged 9 commits intomainfrom
sdk-health-wait-proposal
Mar 6, 2026
Merged

Add SDK health wait gate#206
NathanFlurry merged 9 commits intomainfrom
sdk-health-wait-proposal

Conversation

@NathanFlurry
Copy link
Member

Summary

Add an optional waitForHealth gate to SandboxAgent.connect() so one startup health promise blocks both HTTP helpers and ACP session setup until /v1/health succeeds.
Update the direct remote examples to use SandboxAgent.connect({ waitForHealth: { timeoutMs: 120_000 } }) instead of manually polling before connect.
Add integration coverage for non-ACP request gating and for surfacing a timeout when a real request awaits readiness.

Verification

Automated TypeScript checks were not runnable in this workspace because tsc and vitest are unavailable without installed node_modules.

@railway-app railway-app bot temporarily deployed to sandbox-agent / sandbox-agent-pr-206 March 6, 2026 02:44 Destroyed
@railway-app
Copy link

railway-app bot commented Mar 6, 2026

🚅 Deployed to the sandbox-agent-pr-206 environment in sandbox-agent

Service Status Web Updated (UTC)
website 😴 Sleeping (View Logs) Web Mar 6, 2026 at 7:38 am

@railway-app railway-app bot temporarily deployed to sandbox-agent / sandbox-agent-pr-206 March 6, 2026 03:01 Destroyed
@railway-app railway-app bot temporarily deployed to sandbox-agent / sandbox-agent-pr-206 March 6, 2026 04:06 Destroyed
@railway-app railway-app bot temporarily deployed to sandbox-agent / sandbox-agent-pr-206 March 6, 2026 04:16 Destroyed
@railway-app railway-app bot temporarily deployed to sandbox-agent / sandbox-agent-pr-206 March 6, 2026 04:17 Destroyed
@railway-app railway-app bot temporarily deployed to sandbox-agent / sandbox-agent-pr-206 March 6, 2026 07:05 Destroyed
@railway-app railway-app bot temporarily deployed to sandbox-agent / sandbox-agent-pr-206 March 6, 2026 07:33 Destroyed
@NathanFlurry NathanFlurry merged commit e7343e1 into main Mar 6, 2026
4 checks passed
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