Skip to content

[Linux][Security] openshell inference set writes empty openclaw.json — openclaw doctor --fix fails with JSON5 parse error #3118

@zNeill

Description

@zNeill

Description

Description

After running openshell inference set to change the runtime model, openclaw.json becomes empty (0 bytes). Subsequent openclaw doctor --fix fails with JSON5 parse error. Agent inference is broken until manual recovery.
Environment
Device:        GitLab CI runner (nemoclaw-ubuntu22-runner)
OS:            Ubuntu 22.04
Architecture:  x86_64
Node.js:       v22.22.2
npm:           10.9.7
Docker:        Docker CE
OpenShell CLI: 0.0.36
NemoClaw:      v0.0.35
OpenClaw:      2026.4.24
Steps to Reproduce
1. Onboard a sandbox with Cloud API provider
2. nemoclaw my-assistant connect
3. Inside sandbox: openshell inference set --model 
4. Inside sandbox: openclaw doctor --fix
Expected Result
openclaw.json is updated with the new model configuration. openclaw doctor --fix exits 0.
Actual Result
openclaw.json is empty (0 bytes) after openshell inference set.
openclaw doctor --fix fails:
  JSON5 parse failed: SyntaxError: JSON5: invalid end of input at 1:1
  expected 1 to be +0 // Object.is equality
Logs
CI pipeline #50387798, job 311922348 (test_by_category: [security])
Test case: T5941982 — inference works after runtime model change

Bug Details

Field Value
Priority Unprioritized
Action Dev - Open - To fix
Disposition Open issue
Module Machine Learning - NemoClaw
Keyword NemoClaw, NemoClaw_Automation, NEMOCLAW_GH_SYNC_APPROVAL, NemoClaw_Inference, NemoClaw_Security

[NVB#6150493]

Metadata

Metadata

Assignees

Labels

NV QABugs found by the NVIDIA QA Teamarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoveryplatform: ubuntuAffects Ubuntu Linux environments

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions