openclaw - ✅(Solved) Fix [Bug]: openclaw onboard Cannot read properties of undefines (reading 'trim') [1 pull requests, 7 comments, 7 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#67684Fetched 2026-04-17 08:29:41
View on GitHub
Comments
7
Participants
7
Timeline
12
Reactions
1
Timeline (top)
commented ×7subscribed ×2cross-referenced ×1labeled ×1

After upgrading to the latest version, at the end of onboard that error appears and changes like model switch is not applied

Error Message

After upgrading to the latest version, at the end of onboard that error appears and changes like model switch is not applied Error

Root Cause

After upgrading to the latest version, at the end of onboard that error appears and changes like model switch is not applied

Fix Action

Fixed

PR fix notes

PR #67736: Fix: Added a typeof value === 'string' guard in setup-wizard-helpers.ts before calling .trim() on the prompter.text() result. Closes #67684

Description (problem / solution / changelog)

This PR fixes a TypeError crash during the OpenClaw onboard wizard.

Root cause: @clack/prompts text() can return undefined in edge cases. A prior commit removed String() wrappers around these return values, leaving direct .trim() calls vulnerable.

Fix: Added a typeof value === 'string' guard in setup-wizard-helpers.ts before calling .trim() on the prompter.text() result.

Fixes #67684

Changed files

  • src/channels/plugins/setup-wizard-helpers.ts (modified, +10/-7)
RAW_BUFFERClick to expand / collapse

Bug type

Crash (process/app exits or hangs)

Beta release blocker

No

Summary

After upgrading to the latest version, at the end of onboard that error appears and changes like model switch is not applied

Steps to reproduce

curl -fsSL https://openclaw.ai/install.sh | bash openclaw onboard change model

Expected behavior

Working openclaw

Actual behavior

Error

OpenClaw version

Latest

Operating system

Ubuntu

Install method

No response

Model

openai codex

Provider / routing chain

openai codex

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue may be resolved by re-running the openclaw onboard command after the initial error to apply the model switch changes.

Guidance

  • Verify that the openclaw installation is complete and successful by checking the output of the curl -fsSL https://openclaw.ai/install.sh | bash command.
  • Run the openclaw onboard command again after the initial error to see if it applies the model switch changes.
  • Check the model configuration to ensure that the openai codex model is properly set up and compatible with the latest version of openclaw.
  • Review the installation script (install.sh) for any potential issues or errors that may be causing the problem.

Notes

The lack of logs, screenshots, and additional information makes it difficult to provide a more specific solution. Further investigation and debugging may be necessary to fully resolve the issue.

Recommendation

Apply workaround: re-run the openclaw onboard command after the initial error, as this may allow the model switch changes to be applied.

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

Working openclaw

Still need to ship something?

×6

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

Back to top recommendations

TRENDING