Skip to content

Commit 1ee27a7

Browse files
ToyamaEijietoyamaclaude
authored
fix(#147): add --verbose to claude -p stream-json invocations (#152)
* fix(#147): add --verbose to claude -p stream-json invocations 上流 claude CLI が --print + --output-format stream-json に対して --verbose を必須化したため、batch-analysis の launcher.sh が起動直後に "requires --verbose" エラーで終了していた。resume / fresh run の両方の claude 起動箇所に --verbose を追加して追従する。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(#147): accept --verbose in stub_claude argparse launcher.sh への --verbose 追加 (4990cd5) に追従して、テスト用 stub claude が `--verbose` を受け流せるようにする。意味的処理は不要、 argparse が unknown arg として終了するのを防ぐだけ。これにより tests/integration/test_batch_launcher.py の 4 件のリグレッションが解消する。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: etoyama <eijitoyama@gmail.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6e55d2d commit 1ee27a7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

skills/batch-analysis/launcher.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ if [ -n "$RESUME_SESSION_ID" ]; then
339339
echo "Resuming session: $RESUME_SESSION_ID" >&2
340340
claude -p "$(cat "${CLAUDE_SKILL_DIR}/references/batch-prompt.md")" \
341341
--model sonnet \
342-
--output-format stream-json \
342+
--output-format stream-json --verbose \
343343
--include-hook-events \
344344
--fallback-model sonnet \
345345
--max-turns "${BATCH_MAX_TURNS}" \
@@ -351,7 +351,7 @@ if [ -n "$RESUME_SESSION_ID" ]; then
351351
else
352352
claude -p "$(cat "${CLAUDE_SKILL_DIR}/references/batch-prompt.md")" \
353353
--model sonnet \
354-
--output-format stream-json \
354+
--output-format stream-json --verbose \
355355
--include-hook-events \
356356
--fallback-model sonnet \
357357
--max-turns "${BATCH_MAX_TURNS}" \

tests/e2e/stub_claude.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def _build_parser() -> argparse.ArgumentParser:
4949
p.add_argument("-p", "--prompt", dest="prompt", nargs="?", default=None)
5050
p.add_argument("--approved-by", dest="approved_by", default=None)
5151
p.add_argument("--output-format", dest="output_format", default="text")
52+
p.add_argument("--verbose", action="store_true")
5253
p.add_argument("--include-hook-events", action="store_true")
5354
p.add_argument("--fallback-model", default=None)
5455
p.add_argument("--max-turns", type=int, default=200)

0 commit comments

Comments
 (0)