Repository navigation
fix(dockerfile): drop invalid channels.defaults.configWrites - #2361
Conversation
<!-- markdownlint-disable MD041 --> ## Summary The baked openclaw.json contained `channels.defaults.configWrites: false`, but OpenClaw's `ChannelsSchema.defaults` is `.strict()` and only accepts `groupPolicy` and `heartbeat`. The key was at the wrong schema path. Every sandbox first-boot produced two ERROR-level log lines from the OpenClaw schema validator (seen at `dist/subsystem-*.js:281` in [email protected]). The runtime then stripped the key and saved the pre-strip file as `openclaw.json.bak`. {"0":"Invalid config at /sandbox/.openclaw/openclaw.json:\\n- channels.defaults: Unrecognized key: \"configWrites\"","_meta":{"runtime":"node","runtimeVersion":"22.22.1","...... {"0":"Invalid config at /sandbox/.openclaw/openclaw.json:\\n- channels.defaults: Unrecognized key: \"configWrites\"","_meta":{"runtime":"node","runtimeVersion":"22.22.1"..... ## Related Issue Fixes #2316 ## Changes One line change in Dockerfile: - 'channels': dict({'defaults': {'configWrites': False}}, **_ch_cfg), \ + 'channels': {'defaults': {}, **_ch_cfg}, \ OpenClaw has no global fallback for configWrites, so the flag never took effect. ## Type of Change - [√ ] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Verification <!-- Check each item you ran and confirmed. Leave unchecked items you skipped. --> - [√ ] `npx prek run --all-files` passes - [√ ] `npm test` passes - [ ] Tests added or updated for new or changed behavior - [√ ] No secrets, API keys, or credentials committed - [ ] Docs updated for user-facing behavior changes - [ ] `make docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) ## AI Disclosure <!-- If an AI agent authored or co-authored this PR, check the box and name the tool. Remove this section for fully human-authored PRs. --> - [ ] AI-assisted — tool: Cursor --- <!-- DCO sign-off required by CI. Run: git config user.name && git config user.email --> Signed-off-by: rluo8 <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated default configuration structure for the `openclaw.json` generation process. Channel-specific configuration settings remain preserved and functional. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Dockerfile's Python config generation for Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Re-applies #2337 (by @rluo8) which was reverted after a botched admin merge.
The baked
openclaw.jsoncontainedchannels.defaults.configWrites: false, but OpenClaw'sChannelsSchema.defaultsis.strict()and only acceptsgroupPolicyandheartbeat. Every sandbox first-boot produced two ERROR-level log lines from the schema validator, then stripped the key.Fixes #2316
Changes
One line in Dockerfile:
Credit
Original fix by @rluo8 in #2337.
Summary by CodeRabbit