Skip to content

perf(ca): poll agent readiness at 400ms while a normal boot is plausible - #1095

Merged
codyde merged 1 commit into
masterfrom
cody/ca-adaptive-ready
Aug 13, 2026
Merged

perf(ca): poll agent readiness at 400ms while a normal boot is plausible#1095
codyde merged 1 commit into
masterfrom
cody/ca-adaptive-ready

Conversation

@codyde

@codyde codyde commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

What

wait_until_running polled every 2s, so every ca create / code / ssh / wake ate up to 2s of pure wait after the agent was already running (~1s on average).

Now: 400ms polls for the first 20s (fresh boots reach running in single-digit seconds), then back off to the old 2s for the tail. Timeout unchanged at 180s.

Cost

Worst case ~50 extra lightweight status queries per launch, only while the agent is actually starting.

Part of the cloud agent startup latency work — measured create→running at 5-9s, so the fast window covers the normal case with room to spare.

🤖 Generated with Claude Code

wait_until_running polled every 2s, adding up to 2s of pure wait on every
create/code/ssh/wake. Fresh boots reach running in single-digit seconds,
so poll at 400ms for the first 20s, then back off to 2s for the tail.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codyde codyde added the release/skip Author no release label Aug 13, 2026
@codyde
codyde merged commit ebcafe3 into master Aug 13, 2026
7 of 8 checks passed
@codyde
codyde deleted the cody/ca-adaptive-ready branch August 13, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/skip Author no release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant