openclaw - 💡(How to fix) Fix Wizard: un-selecting the primary model leaves provider models: [] while keeping primary pointing at it [2 comments, 2 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#75744Fetched 2026-05-02 05:30:52
View on GitHub
Comments
2
Participants
2
Timeline
4
Reactions
2
Timeline (top)
commented ×2closed ×1cross-referenced ×1

In openclaw configure (local mode), the model-selection step lets you un-check a model that is currently set as agents.defaults.model.primary and then confirm. The wizard writes the resulting (empty) selection to agents/main/agent/models.json as "models": [] for that provider, but does not clear or update agents.defaults.model.primary — which still points at the un-selected model under that now-empty provider.

The result: models.json has "openai-codex": { "models": [] } while openclaw.json still has "primary": "openai-codex/gpt-5.5".

Root Cause

In openclaw configure (local mode), the model-selection step lets you un-check a model that is currently set as agents.defaults.model.primary and then confirm. The wizard writes the resulting (empty) selection to agents/main/agent/models.json as "models": [] for that provider, but does not clear or update agents.defaults.model.primary — which still points at the un-selected model under that now-empty provider.

The result: models.json has "openai-codex": { "models": [] } while openclaw.json still has "primary": "openai-codex/gpt-5.5".

Fix Action

Workaround

Re-add the model definitions to the affected provider in agents/main/agent/models.json (can be copied from a sibling provider entry). Restart the gateway.

RAW_BUFFERClick to expand / collapse

Summary

In openclaw configure (local mode), the model-selection step lets you un-check a model that is currently set as agents.defaults.model.primary and then confirm. The wizard writes the resulting (empty) selection to agents/main/agent/models.json as "models": [] for that provider, but does not clear or update agents.defaults.model.primary — which still points at the un-selected model under that now-empty provider.

The result: models.json has "openai-codex": { "models": [] } while openclaw.json still has "primary": "openai-codex/gpt-5.5".

Reproduction

  1. Fresh OAuth-authenticated install with provider openai-codex and model gpt-5.5 selected as primary.
  2. Run openclaw configure.
  3. At the model-selection step, un-select the currently-primary gpt-5.5.
  4. Confirm and exit the wizard.
  5. Inspect:
    • agents/main/agent/models.jsonopenai-codex.models is []
    • openclaw.jsonagents.defaults.model.primary is still openai-codex/gpt-5.5

Effect

Every subsequent agent run spends ~15s in the model-resolution startup phase (presumably falling through to API discovery against https://chatgpt.com/backend-api/codex since the local catalog is empty). Combined with auth (~7s) and dispatch (~6s), total startup is ~29s before streaming begins. During this window the Node event loop stalls (P99 delay 11–25s, utilization 1.0), producing:

  • [fetch-timeout] fetch timeout reached; aborting operation
  • [telegram] sendChatAction failed: Network request for 'sendChatAction' failed!
  • [diagnostic] liveness warning: reasons=event_loop_delay,event_loop_utilization,cpu

Suggested fix

The wizard should either:

  • Refuse to confirm if the un-selected set leaves primary/fallbacks references dangling, or
  • Auto-update primary/fallbacks to a still-selected model (or clear them), or
  • Refuse to write models: [] at all when the provider has model references elsewhere in config.

Workaround

Re-add the model definitions to the affected provider in agents/main/agent/models.json (can be copied from a sibling provider entry). Restart the gateway.

Environment

  • OpenClaw version: 2026.4.29
  • Platform: Raspberry Pi 5, ARM64, Debian 12

extent analysis

TL;DR

The issue can be fixed by updating the openclaw configure wizard to handle un-selected models that are currently set as agents.defaults.model.primary.

Guidance

  • Verify that the models.json file is being updated correctly when a model is un-selected in the openclaw configure wizard.
  • Check the openclaw.json file to ensure that agents.defaults.model.primary is updated or cleared when a model is un-selected.
  • Consider implementing one of the suggested fixes, such as refusing to confirm if the un-selected set leaves primary/fallbacks references dangling, or auto-updating primary/fallbacks to a still-selected model.
  • As a temporary workaround, re-add the model definitions to the affected provider in agents/main/agent/models.json and restart the gateway.

Example

No code snippet is provided as the issue is more related to the configuration and workflow of the openclaw configure wizard.

Notes

The issue seems to be specific to the openclaw configure wizard and the handling of un-selected models that are currently set as agents.defaults.model.primary. The suggested fixes and workaround are specific to this scenario.

Recommendation

Apply the workaround by re-adding the model definitions to the affected provider in agents/main/agent/models.json and restarting the gateway, as this is a temporary solution that can mitigate the issue until a permanent fix is implemented.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Wizard: un-selecting the primary model leaves provider models: [] while keeping primary pointing at it [2 comments, 2 participants]