Skip to content

[All Platform] nemoclaw config set missing key validation allows writing invalid config path #2019

Closed

Description

@hulynn

Description

[Description]
nemoclaw config set does not validate whether the --key path corresponds to a recognized OpenClaw config key. Any arbitrary dotpath is accepted and
written to openclaw.json, which can produce an invalid config that OpenClaw rejects at startup with Unrecognized key errors, preventing the agent from
launching.

[Environment]
Device: Ubuntu 22.04 (Linux 5.15.0-171-generic)
Node.js: v22.22.2
npm: 10.9.7
Docker: Docker Engine 29.4.0
OpenShell CLI: openshell 0.0.26
NemoClaw: v0.0.18
OpenClaw: 2026.4.2 (d74a122)

[Steps to Reproduce]

  1. Set an invalid key path:
    nemoclaw my-assistant config set --key inference.endpoint --value 'https://api.openai.com/v1'
    Output:
    Reading openclaw config...
    Agent: openclaw
    Key: inference.endpoint
    Old value: "https://api.openai.com/v1"
    New value: "https://api.openai.com/v1"
    Writing config to sandbox (/sandbox/.openclaw/openclaw.json)...
    openclaw config updated.

Note: Some config changes require a sandbox restart to take effect.
Re-run with --restart or recreate with: nemoclaw onboard --recreate-sandbox

  1. Verify the config now contains the invalid key:
    nemoclaw my-assistant config get
    Output shows a root-level inference key that OpenClaw does not recognize:
    {
    ...
    "inference": {
    "endpoint": "https://api.openai.com/v1"
    }
    }

  2. Launch OpenClaw:
    sandbox@my-assistant:~$ openclaw tui
    Config invalid
    File: ~/.openclaw/openclaw.json
    Problem:

  • : Unrecognized key: "inference"

Run: openclaw doctor --fix

[Expected Result]
config set should reject unrecognized key paths before writing, e.g.: Key validation failed: "inference.endpoint" is not a recognized OpenClaw config path.

[Actual Result]
The invalid key is silently written to openclaw.json, corrupting the config and preventing OpenClaw from starting.


[NVB# 6090000]

Activity

  1. added
    NV QA
    on Apr 17, 2026
  2. added 2 commits that reference this issue on Apr 17, 2026
    334c167
    359c8bf
  3. added a commit that references this issue on Apr 18, 2026
    3417520
  4. added a commit that references this issue on Apr 19, 2026
    d15f1a9
  5. added
    platform: ubuntu
    and removed on Apr 20, 2026
  6. wscurran commented on Apr 20, 2026

    @wscurran
    Contributor
  7. added a commit that references this issue on Apr 21, 2026
    0a29bf0
  8. changed the title [-][NemoClaw][All Platform] nemoclaw config set missing key validation allows writing invalid config path[/-] [+][All Platform] nemoclaw config set missing key validation allows writing invalid config path[/+] on Apr 21, 2026
  9. added a commit that references this issue on Apr 22, 2026
    2c9c6b5
  10. added and removed
    platform: ubuntu
    on Apr 22, 2026
  11. added 2 commits that reference this issue on Apr 29, 2026
    8753c50
    9077e7c
  12. added
    area: cli
    and removed on Jun 3, 2026
  13. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NV QAarea: cli

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions