You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Windows setup wizard crashes when selecting LM Studio provider: Cannot read properties of undefined (reading 'prompt') #682
P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path.
Ways to help us reproduce this
Add expected vs actual behavior.
Next step
Review did not complete, so no work-lane recommendation was made.
Review details
Best possible solution:
Retry the Codex review after fixing the execution failure.
Do we have a high-confidence way to reproduce the issue?
Unclear. The review failed before ClawSweeper could establish a reproduction path.
Is this the best way to solve the issue?
Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction.
AGENTS.md: unclear because the file could not be read completely.
Remaining risk / open question:
No close action taken because the review did not complete.
Codex review notes: model internal, reasoning high; reviewed against 3fdfbfad837f.
Label changes
Label changes:
add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
add clawsweeper:needs-info: Current issue advisory state selects this label.
remove P2: Current review triage priority is none.
remove clawsweeper:no-new-fix-pr: Current issue advisory state no longer selects this label.
remove clawsweeper:needs-maintainer-review: Current issue advisory state no longer selects this label.
remove issue-rating: 🐚 platinum hermit: Current issue advisory state no longer selects this label.
remove clawsweeper:needs-live-repro: Current issue advisory state no longer selects this label.
remove impact:auth-provider: Current review selected no impact labels.
Evidence reviewed
What I checked:
failure reason: codex execution failed.
codex failure detail: Codex review failed for this issue with exit 1.
codex stdout: Per-item Codex failure; continuing with the rest of the shard.
Likely related people:
unknown: Codex failed before it could trace repository history. (role: review did not complete; confidence: low)
How this review workflow works
ClawSweeper keeps one durable marker-backed review comment per issue or PR.
Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
Maintainers can also comment @clawsweeper review to request a fresh review only.
Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
The LM Studio logs also show the OpenAI-compatible endpoints are available, including:
GET /v1/models
POST /v1/responses
POST /v1/chat/completions
POST /v1/completions
POST /v1/embeddings
Laptop / system specs
Laptop model: Acer Nitro ANV15-51
OS: Windows 11 Enterprise 64-bit
CPU: 13th Gen Intel Core i7-13620H
RAM: 32 GB
GPU: NVIDIA GeForce RTX 4050 Laptop GPU
Storage: 954 GB
OpenClaw app: Windows native app from openclaw-windows-node
Additional note
In the wizard, I noticed the provider appears as LMStudio / possibly LMStudo depending on the UI text. I’m not sure if that provider key/name is related, but the crash happens immediately after selecting that option.
Please let me know if there are specific gateway logs, WSL logs, or config files I should collect and attach.
I was able to reproduce this locally, but the root cause is in the gateway-side LM Studio provider setup, not the Windows UI. The LM Studio setup code extracted wizard prompter methods and called them unbound, which breaks the gateway wizard’s class-method prompter.
I also locally patched the installed gateway with the same fix and verified the Windows wizard now advances to the LM Studio base URL step instead of the TypeError. However Windows follow-up remains pending until the gateway fix lands and maintainers choose the fixed gateway release/LKG version that openclaw-windows-node should consume.
Thanks @christineyan4 for reproducing the issue and submitting the fix.
From the PR notes, it looks like the patched gateway now correctly advances to the “LM Studio base URL” step instead of crashing with TypeError: Cannot read properties of undefined (reading 'prompt'), which matches the issue I reported.
I understand that Windows app consumption of an official fixed gateway release/LKG has not been tested yet, so I will wait for the PR to be merged and for the fixed gateway version to be included in the Windows setup flow before confirming the issue as fully resolved from my side.
Thanks for the detailed report and screen recording — this is a clear reproduction.
Based on the investigation by @christineyan4above, the root cause is in the gateway-side LM Studio wizard, not in the Windows tray app:
The LM Studio setup code called gateway wizard prompter methods as unbound functions, breaking the class-method resolution when this context wasn't captured.
@christineyan4 locally verified the fix resolves the crash and the wizard correctly advances to the LM Studio base URL step.
Since the crash originates in the gateway's Node.js setup wizard rather than in this Windows openclaw-windows-node codebase, there isn't a patch we can apply here. The fix needs to come from the upstream gateway PR being merged and then picked up in the gateway version pinned by this repo.
For users hitting this today: You can work around it by setting up LM Studio in the gateway config directly (not through the Windows wizard) until the upstream fix lands.
The Windows setup engine now pins gateway 2026.6.11 in GatewayLkgVersion.cs.
Gateway tag v2026.6.11 contains the fix commit (GitHub compare reports the fix as its merge base with the release tag ahead and not behind).
@christineyan4's live patched-gateway Windows verification above reached the LM Studio base URL prompt instead of the TypeError.
This is fixed on current main; older Windows builds that install a pre-fix gateway can still reproduce it. Thanks @askasjeremy for the recording and @christineyan4 for the upstream fix and verification.
P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
Activity
clawsweeper commentedon Jun 4, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 11, 2026, 2:18 AM ET / 06:18 UTC.
Summary
Codex review failed: codex execution failed.
Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path.
Ways to help us reproduce this
Next step
Review did not complete, so no work-lane recommendation was made.
Review details
Best possible solution:
Retry the Codex review after fixing the execution failure.
Do we have a high-confidence way to reproduce the issue?
Unclear. The review failed before ClawSweeper could establish a reproduction path.
Is this the best way to solve the issue?
Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction.
AGENTS.md: unclear because the file could not be read completely.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 3fdfbfad837f.
Label changes
Label changes:
issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.clawsweeper:needs-info: Current issue advisory state selects this label.P2: Current review triage priority is none.clawsweeper:no-new-fix-pr: Current issue advisory state no longer selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state no longer selects this label.issue-rating: 🐚 platinum hermit: Current issue advisory state no longer selects this label.clawsweeper:needs-live-repro: Current issue advisory state no longer selects this label.impact:auth-provider: Current review selected no impact labels.Evidence reviewed
What I checked:
Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.askasjeremy commentedon Jun 4, 2026
Thanks for the review and for keeping the issue open.
I’m attaching a short screen recording showing the reproduction of the error.
In the recording, the flow is:
OtherLMStudio/LM StudioThe error happens before I get a chance to enter or confirm any LM Studio URL or model configuration.
Expected behavior
After selecting LM Studio, I expected the wizard to continue to the LM Studio provider setup step, where I could configure something like:
or:
Actual behavior
The wizard stops immediately and shows:
LM Studio status
LM Studio is running correctly on my machine.
From the LM Studio window:
0.4.15Running1234The LM Studio logs also show the OpenAI-compatible endpoints are available, including:
Laptop / system specs
openclaw-windows-nodeAdditional note
In the wizard, I noticed the provider appears as
LMStudio/ possiblyLMStudodepending on the UI text. I’m not sure if that provider key/name is related, but the crash happens immediately after selecting that option.Please let me know if there are specific gateway logs, WSL logs, or config files I should collect and attach.
LMStudio.Selection.Error.-.OpenClaw.Windows.Node.mp4
christineyan4 commentedon Jun 4, 2026
I was able to reproduce this locally, but the root cause is in the gateway-side LM Studio provider setup, not the Windows UI. The LM Studio setup code extracted wizard prompter methods and called them unbound, which breaks the gateway wizard’s class-method prompter.
Upstream gateway fix PR is open here: openclaw/openclaw#90429
I also locally patched the installed gateway with the same fix and verified the Windows wizard now advances to the LM Studio base URL step instead of the TypeError. However Windows follow-up remains pending until the gateway fix lands and maintainers choose the fixed gateway release/LKG version that
openclaw-windows-nodeshould consume.askasjeremy commentedon Jun 5, 2026
Thanks @christineyan4 for reproducing the issue and submitting the fix.
From the PR notes, it looks like the patched gateway now correctly advances to the “LM Studio base URL” step instead of crashing with
TypeError: Cannot read properties of undefined (reading 'prompt'), which matches the issue I reported.I understand that Windows app consumption of an official fixed gateway release/LKG has not been tested yet, so I will wait for the PR to be merged and for the fixed gateway version to be included in the Windows setup flow before confirming the issue as fully resolved from my side.
Thanks again for the quick work on this.
github-actions commentedon Jun 13, 2026
🤖 This is an automated response from Repo Assist.
Thanks for the detailed report and screen recording — this is a clear reproduction.
Based on the investigation by
@christineyan4above, the root cause is in the gateway-side LM Studio wizard, not in the Windows tray app:thiscontext wasn't captured.@christineyan4locally verified the fix resolves the crash and the wizard correctly advances to the LM Studio base URL step.Since the crash originates in the gateway's Node.js setup wizard rather than in this Windows
openclaw-windows-nodecodebase, there isn't a patch we can apply here. The fix needs to come from the upstream gateway PR being merged and then picked up in the gateway version pinned by this repo.For users hitting this today: You can work around it by setting up LM Studio in the gateway config directly (not through the Windows wizard) until the upstream fix lands.
Add this agentic workflows to your repo
To install this agentic workflow, run
steipete commentedon Jul 6, 2026
Closing as fixed in the gateway consumed by current
main.Proof:
22276e6de0b7a035f40bd6d170bfe3b98be7b189on June 7.2026.6.11inGatewayLkgVersion.cs.v2026.6.11contains the fix commit (GitHub compare reports the fix as its merge base with the release tag ahead and not behind).This is fixed on current
main; older Windows builds that install a pre-fix gateway can still reproduce it. Thanks @askasjeremy for the recording and @christineyan4 for the upstream fix and verification.