openclaw - 💡(How to fix) Fix [Bug]: Windows 11 agent --local hangs on 2026.4.29 while capability model run succeeds [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#76222Fetched 2026-05-03 04:40:31
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
2
Timeline (top)
commented ×2closed ×1cross-referenced ×1mentioned ×1

On native Windows, openclaw agent --local hangs past a 10-minute shell budget on OpenClaw 2026.4.29 (a448042) even when the same profile, auth, provider, and models work through capability model run --local in a few seconds. This looks below the model/auth layer, in the native Windows embedded agent runtime or command lane.

Error Message

[agent/embedded] [trace:embedded-run] ... model-resolution:28451ms, auth:37388ms, context-engine:2ms, attempt-dispatch:41880ms CommandLaneTaskTimeoutError: Command lane "main" task timed out after 210000ms

Root Cause

On native Windows, openclaw agent --local hangs past a 10-minute shell budget on OpenClaw 2026.4.29 (a448042) even when the same profile, auth, provider, and models work through capability model run --local in a few seconds. This looks below the model/auth layer, in the native Windows embedded agent runtime or command lane.

Fix Action

Fix / Workaround

[agent/embedded] [trace:embedded-run] ... model-resolution:28451ms, auth:37388ms, context-engine:2ms, attempt-dispatch:41880ms
CommandLaneTaskTimeoutError: Command lane "main" task timed out after 210000ms

Code Example

openclaw --profile imladri-lab capability model run --local --model openai/gpt-5.4-nano --prompt "Return exactly: OPENCLAW_GPT54_NANO_OK" --json
openclaw --profile imladri-lab capability model run --local --model openai/gpt-4.1-mini --prompt "Return exactly: OPENCLAW_GPT41_MINI_OK" --json
openclaw --profile imladri-lab capability model run --local --model openai/gpt-4o-mini --prompt "Return exactly: OPENCLAW_GPT4O_MINI_OK" --json

---

openclaw --profile imladri-lab models set openai/gpt-4o-mini
openclaw --profile imladri-lab capability model run --local --prompt "Return exactly: OPENCLAW_DEFAULT_MODEL_OK" --json

---

openclaw --profile imladri-lab agent --local --session-id imladri-gpt54-nano-smoke --model openai/gpt-5.4-nano --thinking off --message "Return exactly: OPENCLAW_AGENT_OK" --json --timeout 600
openclaw --profile imladri-lab agent --local --session-id imladri-gpt41-mini-smoke --model openai/gpt-4.1-mini --thinking off --message "Return exactly: OPENCLAW_AGENT_OK" --json --timeout 180
openclaw --profile imladri-lab agent --local --session-id imladri-gpt4o-mini-smoke --model openai/gpt-4o-mini --thinking off --message "Return exactly: OPENCLAW_AGENT_OK" --json --timeout 180

---

[agent/embedded] [trace:embedded-run] ... model-resolution:28451ms, auth:37388ms, context-engine:2ms, attempt-dispatch:41880ms
CommandLaneTaskTimeoutError: Command lane "main" task timed out after 210000ms
RAW_BUFFERClick to expand / collapse

Summary

On native Windows, openclaw agent --local hangs past a 10-minute shell budget on OpenClaw 2026.4.29 (a448042) even when the same profile, auth, provider, and models work through capability model run --local in a few seconds. This looks below the model/auth layer, in the native Windows embedded agent runtime or command lane.

Environment

  • OS: Windows 11 x64
  • OpenClaw: 2026.4.29 (a448042)
  • Node: 24.15.0 from official Windows x64 zip, invoked directly
  • Profile: isolated lab profile imladri-lab
  • OPENCLAW_DISABLE_BONJOUR=1
  • Auth: valid persistent OpenAI auth profile openai:manual
  • Default model after auth persistence: openai/gpt-4o-mini
  • No channel configured; this is not WhatsApp-specific

What works

All of these succeeded with the same profile/auth path:

openclaw --profile imladri-lab capability model run --local --model openai/gpt-5.4-nano --prompt "Return exactly: OPENCLAW_GPT54_NANO_OK" --json
openclaw --profile imladri-lab capability model run --local --model openai/gpt-4.1-mini --prompt "Return exactly: OPENCLAW_GPT41_MINI_OK" --json
openclaw --profile imladri-lab capability model run --local --model openai/gpt-4o-mini --prompt "Return exactly: OPENCLAW_GPT4O_MINI_OK" --json

After persisting auth and setting the default model, this also succeeded without a process-scoped API key:

openclaw --profile imladri-lab models set openai/gpt-4o-mini
openclaw --profile imladri-lab capability model run --local --prompt "Return exactly: OPENCLAW_DEFAULT_MODEL_OK" --json

The response reported provider openai, model gpt-4o-mini, capability model.run, transport local, and the expected text.

What hangs

These full agent runs authenticated but did not complete:

openclaw --profile imladri-lab agent --local --session-id imladri-gpt54-nano-smoke --model openai/gpt-5.4-nano --thinking off --message "Return exactly: OPENCLAW_AGENT_OK" --json --timeout 600
openclaw --profile imladri-lab agent --local --session-id imladri-gpt41-mini-smoke --model openai/gpt-4.1-mini --thinking off --message "Return exactly: OPENCLAW_AGENT_OK" --json --timeout 180
openclaw --profile imladri-lab agent --local --session-id imladri-gpt4o-mini-smoke --model openai/gpt-4o-mini --thinking off --message "Return exactly: OPENCLAW_AGENT_OK" --json --timeout 180

Observed behavior:

  • The GPT-5.4 nano run with --timeout 600 hung past the 10-minute outer shell budget.
  • GPT-4.1 mini and GPT-4o mini also hung past their shell timeouts with fresh session IDs.
  • One earlier GPT-5.4 nano run with an internal --timeout 180 emitted a command-lane timeout after 210000ms.

Relevant trace from that earlier run:

[agent/embedded] [trace:embedded-run] ... model-resolution:28451ms, auth:37388ms, context-engine:2ms, attempt-dispatch:41880ms
CommandLaneTaskTimeoutError: Command lane "main" task timed out after 210000ms

Expected behavior

For a one-line prompt and a working model/auth profile, agent --local should return a final response or a clear error instead of hanging past the configured timeout and the outer shell budget.

Actual behavior

capability model run --local succeeds for three tested OpenAI models, but agent --local hangs for the same profile and auth. Changing models did not resolve the hang, so the issue appears to be in the native Windows agent/PI command lane rather than the provider/model adapter.

Why this seems useful

This reproduces a Windows hang without any channel plugin in the loop. It separates model inference from the full embedded agent runtime:

  • Model/auth path: works
  • Full native Windows agent --local: hangs

That should make it easier to debug the command lane or embedded runtime separately from provider credentials and channel-specific issues.

extent analysis

TL;DR

The issue can be resolved by investigating and fixing the command lane or embedded runtime in the native Windows agent.

Guidance

  • Investigate the CommandLaneTaskTimeoutError and the timing of the model resolution, auth, context engine, and attempt dispatch to identify the bottleneck.
  • Compare the successful capability model run --local and the hanging agent --local to determine the differences in their execution paths.
  • Check the configuration and implementation of the embedded agent runtime and command lane to ensure they are correctly set up for the native Windows environment.
  • Consider adding additional logging or tracing to the agent to gather more information about the hang.

Example

No specific code snippet can be provided without more information about the implementation of the agent and command lane.

Notes

The issue seems to be specific to the native Windows agent and command lane, and not related to the model or auth credentials. Further investigation is needed to determine the root cause of the hang.

Recommendation

Apply a workaround by modifying the command lane or embedded runtime configuration to increase the timeout or improve the performance of the agent. This can be done by adjusting the --timeout parameter or optimizing the execution path of the agent.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

For a one-line prompt and a working model/auth profile, agent --local should return a final response or a clear error instead of hanging past the configured timeout and the outer shell budget.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING