You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/extensions/anthropic
felear2022 623f4d3056 fix: use stream-json output for Claude CLI backend to prevent watchdog timeouts
The Claude CLI backend uses `--output-format json`, which produces no
stdout until the entire request completes. When session context is large
(100K+ tokens) or API response is slow, the no-output watchdog timer
(max 180s for resume sessions) kills the process before it finishes,
resulting in "CLI produced no output for 180s and was terminated" errors.

Switch to `--output-format stream-json --verbose` so Claude CLI emits
NDJSON events throughout processing (init, assistant, rate_limit, result).
Each event resets the watchdog timer, which is the intended behavior —
the watchdog detects truly stuck processes, not slow-but-progressing ones.

Changes:
- cli-backends.ts: `json` → `stream-json --verbose`, `output: "jsonl"`
- helpers.ts: teach parseCliJsonl to extract text from Claude's
  `{"type":"result","result":"..."}` NDJSON line

Note: `--verbose` is required for stream-json in `-p` (print) mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 months ago
..
cli-backend.ts fix: use stream-json output for Claude CLI backend to prevent watchdog timeouts 8 months ago
cli-migration.test.ts feat: add anthropic claude cli migration 8 months ago
cli-migration.ts feat: add anthropic claude cli migration 8 months ago
index.ts feat: add anthropic claude cli migration 8 months ago
media-understanding-provider.ts feat(media): route image tool through media providers 8 months ago
openclaw.plugin.json feat: add anthropic claude cli migration 8 months ago
package.json build: bump version to 2026.3.22 8 months ago