Skip to content

fix: increase Claude auth probe timeout to 10s#2272

Merged
juliusmarminge merged 1 commit into
pingdotgg:mainfrom
Heinz-G:fix/claude-auth-probe-timeout
Apr 22, 2026
Merged

fix: increase Claude auth probe timeout to 10s#2272
juliusmarminge merged 1 commit into
pingdotgg:mainfrom
Heinz-G:fix/claude-auth-probe-timeout

Conversation

@Heinz-G
Copy link
Copy Markdown
Contributor

@Heinz-G Heinz-G commented Apr 21, 2026

Summary

  • Adds AUTH_PROBE_TIMEOUT_MS = 10_000 to providerSnapshot.ts
  • Uses it for the claude auth status probe in ClaudeProvider.ts instead of DEFAULT_TIMEOUT_MS (4s)

Why

claude auth status involves disk/account lookups and can exceed 4s on Windows due to Node.js cold-start overhead. This causes a spurious "Could not verify Claude authentication status. Timed out while running command." warning in the provider panel — even when the CLI is correctly installed and authenticated.

The --version probe is fast and keeps its 4s timeout unchanged. Only the auth check gets the higher limit.

Before / After

Before: Provider shows yellow "Needs attention – Could not verify Claude authentication status. Timed out while running command." on Windows on first load.

After: Auth check has 10s to complete, resolving the false positive on Windows.

Test plan

  • Launch T3 Code on Windows with claude on PATH and authenticated
  • Confirm provider status shows green "Ready" instead of the timeout warning
  • Confirm --version probe speed is unaffected (still uses 4s timeout)

🤖 Generated with Claude Code


Note

Low Risk
Low risk: only adjusts the timeout used for the claude auth status probe to reduce false timeout warnings, without changing auth parsing or other probes.

Overview
Increases the timeout for the Claude provider’s claude auth status check by introducing AUTH_PROBE_TIMEOUT_MS (10s) and using it instead of DEFAULT_TIMEOUT_MS.

This makes the auth probe more tolerant of slow first-run startup (notably on Windows) while leaving other CLI probes (e.g. --version) on the existing 4s timeout.

Reviewed by Cursor Bugbot for commit 8179582. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Increase Claude auth probe timeout to 10s

Auth checks against Claude can be slow, causing false failures with the previous 4s timeout. Introduces a new AUTH_PROBE_TIMEOUT_MS constant (10,000ms) in providerSnapshot.ts and applies it in ClaudeProvider.ts instead of the general DEFAULT_TIMEOUT_MS.

Macroscope summarized 8179582.

`claude auth status` can exceed the 4s DEFAULT_TIMEOUT_MS on Windows
due to Node.js cold-start overhead, causing a spurious "Could not
verify Claude authentication status. Timed out while running command."
warning even when the CLI is correctly installed and authenticated.

A separate AUTH_PROBE_TIMEOUT_MS (10s) is introduced for the auth
check specifically, leaving the faster --version probe unchanged.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b69ce09a-d321-4444-803e-6d36cb870ca9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Apr 21, 2026
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp Bot commented Apr 21, 2026

Approvability

Verdict: Approved

This is a simple timeout increase for auth status checks from 4s to 10s to handle slow disk/network operations on first run. No authentication logic is changed, only the allowed duration for the operation to complete. Low-risk configuration tweak.

You can customize Macroscope's approvability policy. Learn more.

@juliusmarminge juliusmarminge enabled auto-merge (squash) April 22, 2026 00:59
@juliusmarminge juliusmarminge merged commit b8305af into pingdotgg:main Apr 22, 2026
12 checks passed
yazandabbas pushed a commit to yazandabbas/Presence that referenced this pull request Apr 23, 2026
Co-authored-by: Heinz Gericke <115458264+heinzgericke@users.noreply.github.com>
(cherry picked from commit b8305af)
@samuelpatro
Copy link
Copy Markdown

Not sure if this is fixed i think i have similar issue to this PR fix:

Needs attention - Could not verify Claude authentication status. Timed out while running command.

Morphexe pushed a commit to Morphexe/t3code that referenced this pull request May 4, 2026
Co-authored-by: Heinz Gericke <115458264+heinzgericke@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants