Kaynağa Gözat

Fix stream-json output requiring --verbose flag

Claude CLI now requires --verbose when using --output-format stream-json
with -p (print mode). Without it, the test fails with:
"Error: When using --print, --output-format=stream-json requires --verbose"
chengfei.jin 7 ay önce
ebeveyn
işleme
f8cf545bc5
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      tests/subagent-driven-dev/run-test.sh

+ 1 - 0
tests/subagent-driven-dev/run-test.sh

@@ -77,6 +77,7 @@ claude -p "$PROMPT" \
   --plugin-dir "$PLUGIN_DIR" \
   --dangerously-skip-permissions \
   --output-format stream-json \
+  --verbose \
   > "$LOG_FILE" 2>&1 || true
 
 # Extract final stats