claw-code/rust/crates/rusty-claude-cli/tests
YeonGyu-Kim ac8a24b30b
fix(config): emit section and section_value in JSON output for config subcommands (#2990)
`claw config model --output-format json` and all other section subcommands
(`env`, `hooks`, `plugins`) returned identical output with no section field
— the section arg was parsed but discarded (_section parameter).

Fix: render_config_json now:
- Passes section through to handler
- Looks up the section value via runtime_config.get(), converting the
  internal JsonValue to serde_json::Value via render()+parse
- Emits `section` (string) and `section_value` (JSON value or null)
  in the response envelope
- Returns ok:false + error for unsupported section tokens

Test: config_section_json_emits_section_and_value asserts:
- No section field when no section arg
- section + section_value fields present for all known sections
- ok:false + error for unknown section

Pinpoint: ROADMAP #126
2026-05-05 04:50:33 +09:00
..
cli_flags_and_config_defaults.rs Prevent cross-worktree session bleed during managed session resume/load 2026-04-11 16:08:28 +00:00
compact_output.rs Restore Rust formatting compliance 2026-04-28 09:19:16 +00:00
mock_parity_harness.rs fix(cli): 6 cascading test regressions hidden behind client_integration gate 2026-04-08 14:54:10 +09:00
output_format_contract.rs fix(config): emit section and section_value in JSON output for config subcommands (#2990) 2026-05-05 04:50:33 +09:00
resume_slash_commands.rs fix(tests): isolate CLAW_CONFIG_HOME in resumed_status JSON test (#2992) 2026-05-05 04:49:46 +09:00