Repository navigation
fix(core): raise the Claude Agent startup wait to 60 seconds - #65064
Conversation
There was a problem hiding this comment.
Looks good. I checked it with a temporary test on the fake Claude Code that holds the startup reply for 45 seconds. On dev the chat fails with claude did not start within 30 seconds; with this change it replies. The Claude Agent tests pass and core type-checks.
Public API is unchanged.
One gap that may be worth closing here: the background login check in claude/probe.ts (ClaudeProbe.run) still waits only 30 seconds for initializationResult(). With a launcher that takes 30–60 seconds, like the SSH setup in #64849 or your 40-second test, the check still times out. The connection then shows a "needs auth" problem saying claude did not start within 30 seconds until a chat starts and reports ready. Raising that deadline to the same 60 seconds would keep the two in step.
Issue for this PR
Closes #64849
Type of change
What does this PR do?
Gives Claude Code 60 seconds to start a chat, up from 30. A start that is ready sooner is not slowed down.
How did you verify your code works?
bun run checkand the Claude Agent tests.devand replies with this change.Screenshots / recordings
N/A, not a UI change.
Checklist