fix: route broad_cwd JSON error to stdout and close ROADMAP 446-447

The enforce_broad_cwd_policy function was sending JSON error envelopes
to stderr instead of stdout. Fixed to use println! for JSON mode,
matching the main error handler and all resume error paths.

Also closed ROADMAP #446 (config warning deduplication already handled
by emit_config_warning_once) and #447 (JSON errors already routed to
stdout in main handler).

Generated with https://github.com/Yeachan-Heo/gajae-code
Co-authored-by: Gajae Code <dev@gajae-code.com>
This commit is contained in:
bellman
2026-06-05 00:54:17 +09:00
parent 5d85739358
commit de66bfc082
2 changed files with 3 additions and 3 deletions

View File

@@ -6569,7 +6569,7 @@ fn enforce_broad_cwd_policy(
);
match output_format {
CliOutputFormat::Json => {
eprintln!(
println!(
"{}",
serde_json::json!({
"kind": "broad_cwd",