Skip to content

fix: ignore CONFIGURE config-set flags#168

Merged
mostlydev merged 1 commit intomasterfrom
issue-167-configure-openclaw-flags
Apr 16, 2026
Merged

fix: ignore CONFIGURE config-set flags#168
mostlydev merged 1 commit intomasterfrom
issue-167-configure-openclaw-flags

Conversation

@mostlydev
Copy link
Copy Markdown
Owner

Summary

  • strip standalone --json and --strict-json tokens from CONFIGURE <driver> config set ... parsing before extracting the path and value
  • preserve existing no-flag behavior while letting numeric and JSON values keep their typed parsing
  • add regression tests for trailing --json, leading --json, and --strict-json

Why

ParseConfigSetCommand previously treated every token after config set as positional input. That corrupted commands copied from the OpenClaw CLI by leaking --json into either the value text or the parsed config path.

Validation

  • go test ./internal/driver/...

Closes #167

@mostlydev mostlydev merged commit 4614316 into master Apr 16, 2026
@mostlydev mostlydev deleted the issue-167-configure-openclaw-flags branch April 16, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CONFIGURE drops openclaw-CLI flags into the value, corrupting numeric/typed config

1 participant