Skip to content

fix(core): raise the Claude Agent startup wait to 60 seconds - #65064

Merged
Tarquinen merged 1 commit into
devfrom
claude-start-wait
Nov 20, 2026
Merged

Tarquinen merged 1 commit into
devfrom
claude-start-wait

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Issue for this PR

Closes #64849

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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 check and the Claude Agent tests.
  • With a launcher that takes 40 seconds to start Claude Code: the chat fails at 30 seconds on dev and replies with this change.

Screenshots / recordings

N/A, not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@Tarquinen Tarquinen changed the title fix(core): give Claude Code 60 seconds to start a chat fix(core): raise the Claude Agent startup wait to 60 seconds Nov 20, 2026
@Tarquinen
Tarquinen enabled auto-merge (squash) November 20, 2026 05:03
@Tarquinen
Tarquinen merged commit 6baeebf into dev Nov 20, 2026
13 checks passed
@Tarquinen
Tarquinen deleted the claude-start-wait branch November 20, 2026 05:05
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
1 task
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.

Allow at least 60 seconds for Claude Code to become ready

1 participant