Skip to content

fix: increase onboard verify timeout to 120s for local LLMs#29043

Closed
Bartok9 wants to merge 1 commit intoopenclaw:mainfrom
Bartok9:fix/verify-timeout-local-llms
Closed

fix: increase onboard verify timeout to 120s for local LLMs#29043
Bartok9 wants to merge 1 commit intoopenclaw:mainfrom
Bartok9:fix/verify-timeout-local-llms

Conversation

@Bartok9
Copy link
Contributor

@Bartok9 Bartok9 commented Feb 27, 2026

Summary

Increases the verification timeout from 10s to 120s to accommodate slower local LLM setups.

Problem

Local models running on modest hardware (e.g. Qwen3 14B on a laptop GPU with llama.cpp) can take longer than 10 seconds to generate a verification response, causing the onboarding to fail.

Solution

Increase VERIFY_TIMEOUT_MS from 10,000ms to 120,000ms (2 minutes). This doesn't hurt faster models but allows slower local setups to complete verification.

Fixes #28972


🤖 AI-assisted (Bartok via Clawdbot)

Local models running on modest hardware (e.g. Qwen3 14B on a laptop GPU)
can take longer than 10s to generate a verification response.

Increase timeout to 2 minutes to accommodate slower local setups without
impacting the experience for faster models.

Fixes openclaw#28972
@openclaw-barnacle openclaw-barnacle bot added commands Command implementations size: XS labels Feb 27, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f217f8a2c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

const DEFAULT_CONTEXT_WINDOW = 4096;
const DEFAULT_MAX_TOKENS = 4096;
const VERIFY_TIMEOUT_MS = 10000;
const VERIFY_TIMEOUT_MS = 120_000;

Choose a reason for hiding this comment

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

P2 Badge Separate probe timeout from verification timeout

VERIFY_TIMEOUT_MS is shared by both explicit verification and endpoint auto-detection probes, so raising it to 120s makes the unknown compatibility path wait up to ~4 minutes (OpenAI probe timeout + Anthropic probe timeout) before the user can retry when an endpoint hangs instead of failing fast. This is a significant UX regression from the previous ~20s worst case and can make onboarding appear frozen for invalid or firewalled URLs.

Useful? React with 👍 / 👎.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 27, 2026

Greptile Summary

Increased verification timeout from 10s to 120s to support slower local LLM setups during onboarding.

  • The timeout change allows local models running on modest hardware (e.g., Qwen3 14B on laptop GPU) to complete verification without failing
  • The longer timeout won't negatively impact faster models - they'll simply return earlier
  • Found one test that needs updating to match the new timeout value

Confidence Score: 3/5

  • PR is mostly safe but needs test fix before merging
  • The timeout increase itself is a sensible change that improves support for local LLMs without negative impact on faster models. However, there's a test in src/commands/onboard-custom.test.ts that needs to be updated to match the new 120s timeout - currently it only advances timers by 10s, which won't properly test the timeout behavior anymore.
  • The test file src/commands/onboard-custom.test.ts needs attention - the timeout test at line 223 must be updated to use the new timeout value

Last reviewed commit: 1f217f8

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 27, 2026

Additional Comments (1)

src/commands/onboard-custom.test.ts
Test won't trigger timeout anymore since VERIFY_TIMEOUT_MS is now 120000ms

    await vi.advanceTimersByTimeAsync(120_000);
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/commands/onboard-custom.test.ts
Line: 223

Comment:
Test won't trigger timeout anymore since `VERIFY_TIMEOUT_MS` is now 120000ms

```suggestion
    await vi.advanceTimersByTimeAsync(120_000);
```

How can I resolve this? If you propose a fix, please make it concise.

@philipp-spiess
Copy link
Member

Thank you for the contribution and for pushing this forward.

We consolidated this fix path in #27380 so we can land one complete solution for onboarding custom-provider verification reliability with full test coverage.

Closing this as superseded, with appreciation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: VERIFY_TIMEOUT_MS in onboard-custom.ts is too short for local LLMs.

2 participants