openclaw - 💡(How to fix) Fix Bug: commands.native and commands.nativeSkills reject boolean false despite schema allowing it [1 comments, 1 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#78465Fetched 2026-05-07 03:36:37
View on GitHub
Comments
1
Participants
1
Timeline
2
Reactions
2
Author
Participants
Timeline (top)
closed ×1commented ×1

The commands.native and commands.nativeSkills configuration fields reject boolean false values despite the JSON schema explicitly allowing boolean types (in addition to the string "auto").

Error Message

Error Messages

Root Cause

The commands.native and commands.nativeSkills configuration fields reject boolean false values despite the JSON schema explicitly allowing boolean types (in addition to the string "auto").

Fix Action

Workaround

Use native: true and nativeSkills: true (enabled), then manually delete unused slash commands to stay under Discord's 100 command limit.

Code Example

Invalid input (allowed: true, false, "auto")

---

config reload skipped (invalid config): 
- commands.native: Invalid input (allowed: true, false, "auto")
- commands.nativeSkills: Invalid input (allowed: true, false, "auto")
RAW_BUFFERClick to expand / collapse

Summary

The commands.native and commands.nativeSkills configuration fields reject boolean false values despite the JSON schema explicitly allowing boolean types (in addition to the string "auto").

Version

2026.4.15

Reproduction Steps

  1. Set commands.native: false in openclaw.json
  2. Set commands.nativeSkills: false in openclaw.json
  3. Restart the gateway with launchctl load ~/Library/LaunchAgents/ai.openclaw.gateway.plist

Expected Behavior

Both native: false and nativeSkills: false should be accepted as valid configuration values, since:

  • The JSON schema is defined as: anyOf([{ type: "boolean" }, { type: "string", const: "auto" }])
  • The Zod schema allows: z.union([z.boolean(), z.literal("auto")]).optional()
  • Both boolean true and boolean false should be valid

Actual Behavior

The validator rejects both fields with:

Invalid input (allowed: true, false, "auto")

However:

  • Boolean true IS accepted ✓
  • Boolean false IS rejected ✗
  • String "auto" IS accepted ✓

Error Messages

From gateway logs:

config reload skipped (invalid config): 
- commands.native: Invalid input (allowed: true, false, "auto")
- commands.nativeSkills: Invalid input (allowed: true, false, "auto")

Impact

  • Users cannot disable auto-registration of native slash commands
  • This prevents managing the 100 slash command Discord API limit
  • The only workaround is using boolean true and managing commands through manual deletion

Workaround

Use native: true and nativeSkills: true (enabled), then manually delete unused slash commands to stay under Discord's 100 command limit.

Related Issues

  • Issue #63947 - Similar schema validator bug with ComfyUI config keys
  • Issue #18635 - Signal groups configuration schema validation bug
  • Issue #14998 - Schema rejects valid JSON Schema keys

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 Bug: commands.native and commands.nativeSkills reject boolean false despite schema allowing it [1 comments, 1 participants]