mirror of
https://github.com/instructkr/claude-code.git
synced 2026-06-05 12:06:43 +00:00
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:
@@ -6569,7 +6569,7 @@ fn enforce_broad_cwd_policy(
|
||||
);
|
||||
match output_format {
|
||||
CliOutputFormat::Json => {
|
||||
eprintln!(
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::json!({
|
||||
"kind": "broad_cwd",
|
||||
|
||||
Reference in New Issue
Block a user