Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
After upgrading to (version 2026.5.28), the OpenClaw gateway fails to start with the following error
Steps to reproduce
text
Gateway failed to start: Invalid config at /home/node/.openclaw/openclaw.json.
agents.list.0: Invalid input
agents.list.1: Invalid input
agents.list.2: Invalid input
agents.list.3: Invalid input
Downgrading to version 2026.5.27 resolves the issue completely
Version 2026.5.28 introduced a breaking change in how agents.list entries are validated. The new version appears to reject configuration formats that worked perfectly in 2026.5.27.
Possible causes:
Stricter validation on model field format
New required fields not documented
Incompatibility with existing subagents configuration structure
Request
Please provide the correct configuration format for OpenClaw 2026.5.28
Or fix the backward compatibility issue so that configurations working in 2026.5.27 are not rejected
Or update the documentation to reflect the breaking changes
Steps to Reproduce
Prerequisites
Docker installed on Linux (NAS or server)
1Panel installed (or direct Docker access)
Telegram Bot tokens (4 bots)
docker pull 1panel/openclaw:latest
docker run -d
--name OpenClaw
-p 18789:18789
-v openclaw-data:/home/node/.openclaw
1panel/openclaw:latest
{
"agents": {
"list": [
{
"id": "master",
"systemPromptOverride": "You are the trading team leader...",
"subagents": {
"allowAgents": ["hunter", "quant", "risk"]
}
},
{
"id": "hunter",
"systemPromptOverride": "You collect market news..."
},
{
"id": "quant",
"systemPromptOverride": "You perform technical analysis..."
},
{
"id": "risk",
"systemPromptOverride": "You assess risk levels..."
}
]
}
}
Expected behavior
I have already tried the following steps before reporting this issue:
- Backed up my existing openclaw.json
- Adjusted the agents.list configuration according to the latest OpenClaw documentation (added name field, tried different model formats)
- Ran openclaw doctor --fix multiple times — it completed successfully but did NOT resolve the startup failure
Unfortunately, none of these steps worked. The gateway still fails to start with the same error
Actual behavior
agents.list.0: Invalid input
agents.list.1: Invalid input
agents.list.2: Invalid input
agents.list.3: Invalid input
OpenClaw version
2026.05.28
Operating system
Linux
Install method
Docker (1panel/openclaw:latest)
Model
nvidia/stepfun-ai/step-3.5-flash nvidia/minimaxai/minimax-m2.7
Provider / routing chain
openclaw -> nvidia (via API)
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 2, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.Close: current main fixes the packaged-build regression that collapsed this issue’s validation output to bare
Invalid input, and the supported migration path now makes the legacy configuration problem actionable rather than requiring a downgrade.So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the explicit packaged-build locale registration and use Doctor’s current migration guidance to remove unsupported legacy agent prompt overrides rather than restoring runtime compatibility for retired configuration.
Do we have a high-confidence way to reproduce the issue?
Yes for the opaque packaged-build diagnostic: the related report reproduced the same bundled Zod fallback and the merged fix restores the missing error detail. The exact reporter configuration is not needed to establish that the reported
Invalid inputfailure mode is fixed.Is this the best way to solve the issue?
Yes. Explicitly preserving Zod’s locale registration in the config schema fixes the packaged/source diagnostic divergence, while Doctor documentation identifies the reported legacy prompt-override field as removed instead of retaining a runtime compatibility shim.
Security review:
Security review: This is an issue triage review without a proposed patch security surface.
AGENTS.md: found and applied where relevant.
What I checked:
OpenClawSchema, preventing bundled builds from reducing schema errors to the genericInvalid inputfallback. (src/config/zod-schema.ts:396, 903d8bc9d573)agents.list.*messages. (src/config/zod-schema.ts:402, c749d714e9c7)v2026.7.1points to 2d2ddc4 on 2026-07-13; current main retains the explicit locale registration. (src/config/zod-schema.ts:396, 2d2ddc43d0dc)agents.defaults/list[].systemPromptOverrideas removed, matching the legacy field present in the report and directing users toward repair rather than runtime compatibility. Public docs:docs/gateway/doctor.md. (docs/gateway/doctor.md, 903d8bc9d573)Likely related people:
src/config/zod-schema.ts,src/config/zod-schema.locale.test.ts)src/config/zod-schema.ts)Codex review notes: model internal, reasoning high; reviewed against 903d8bc9d573; fix evidence: release v2026.7.1, commit c749d714e9c7.
1 remaining item
openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
ObliviateRickLin commentedon Jul 11, 2026
The unactionable message shape here (
agents.list.*: Invalid inputwith no hint which key or type is wrong) is root-caused in #104014: zod@4 shipssideEffects: false, so the bundler tree-shakes zod's implicit English-locale registration out of packaged builds, and every validation issue collapses to the bareInvalid inputfallback. Source checkouts print the real messages, which is why this is hard to reproduce outside a packaged/container install. Fix: #104026 (live before/after transcripts inside) — with it, the same failures print e.g.Unrecognized key: "..."orInvalid input: expected number, received string, which should make the underlying config problem on 2026.5.28 self-explanatory.fix(config): register zod locale explicitly so packaged builds keep r…
fix(config): register zod locale explicitly so packaged builds keep r…
fix(config): register zod locale explicitly so packaged builds keep r…
openclaw-barnacle commentedon Jul 25, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
steipete commentedon Jul 29, 2026
Closing per ClawSweeper review verdict
implemented_on_main(decision packet 2026-07-27T21:17:40.750Z). This item was part of the audited close backlog (openclaw/clawsweeper#920) stranded by an apply-lane defect, drained manually after re-verification. If this is wrong, reopen and ClawSweeper will re-review.