openclaw - 💡(How to fix) Fix Model tree gets gutted from 28 models to 4 after config operations [1 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#78296Fetched 2026-05-07 03:38:40
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
2
Timeline (top)
cross-referenced ×2closed ×1commented ×1

The agents.defaults.models configuration tree is being reduced from a full model registry (28+ models) to a minimal set (4 Anthropic models only) during certain config operations.

Root Cause

  • Likely related to #78295 (config persistence on restart)
  • May be caused by doctor --non-interactive or config migration logic

Code Example

"agents.defaults.models": {
  "anthropic/claude-opus-4-6": { "alias": "opus" },
  "anthropic/claude-sonnet-4-6": { "alias": "sonnet" },
  "anthropic/claude-haiku-4-5": { "alias": "haiku" },
  "openai/gpt-5.2": { "alias": "gpt" },
  "openai/gpt-5-mini": { "alias": "gpt-mini" },
  "openai/gpt-5.1-codex": { "alias": "codex-legacy" },
  "google/gemini-3-pro-preview": { "alias": "gemini" },
  "xai/grok-4-fast": { "alias": "grok" },
  "minimax/MiniMax-M2.7": { "alias": "minimax" },
  // ... 28+ total models
}

---

"agents.defaults.models": {
  "anthropic/claude-opus-4-6": {},
  "anthropic/claude-sonnet-4-6": {},
  "anthropic/claude-haiku-4-5": {},
  "claude-cli/claude-opus-4-6": {}
}
RAW_BUFFERClick to expand / collapse

Summary

The agents.defaults.models configuration tree is being reduced from a full model registry (28+ models) to a minimal set (4 Anthropic models only) during certain config operations.

Details

Before (Working Config)

"agents.defaults.models": {
  "anthropic/claude-opus-4-6": { "alias": "opus" },
  "anthropic/claude-sonnet-4-6": { "alias": "sonnet" },
  "anthropic/claude-haiku-4-5": { "alias": "haiku" },
  "openai/gpt-5.2": { "alias": "gpt" },
  "openai/gpt-5-mini": { "alias": "gpt-mini" },
  "openai/gpt-5.1-codex": { "alias": "codex-legacy" },
  "google/gemini-3-pro-preview": { "alias": "gemini" },
  "xai/grok-4-fast": { "alias": "grok" },
  "minimax/MiniMax-M2.7": { "alias": "minimax" },
  // ... 28+ total models
}

After (Broken State)

"agents.defaults.models": {
  "anthropic/claude-opus-4-6": {},
  "anthropic/claude-sonnet-4-6": {},
  "anthropic/claude-haiku-4-5": {},
  "claude-cli/claude-opus-4-6": {}
}

Impact

  • Cron jobs fail with "model not in allowlist" errors
  • Agent model assignments become invalid
  • Fallback chains break
  • Switchboard role assignments fail

Related

  • Likely related to #78295 (config persistence on restart)
  • May be caused by doctor --non-interactive or config migration logic

Environment

  • OpenClaw Version: 2026.4.x
  • Platform: macOS

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 Model tree gets gutted from 28 models to 4 after config operations [1 comments, 2 participants]