-
fix(mcp): always write parsed JSONL response to output_file
发布于
2026-02-06 08:26:30 +00:00 The -o (--output-last-message) flag only captures the last agent message,
which may be a brief acknowledgment instead of the full analysis. The
JSONL-parsed stdout contains ALL agent messages and is always more
comprehensive.Changes:
- Remove -o flag from Codex CLI invocation (executeCodex, executeCodexWithFallback, executeCodexBackground)
- Replace mtime-based "did CLI write?" check with unconditional write of parsed response
- Apply same fix to gemini-core.ts output_file handling
- Bump version to 4.0.10
Root cause: When Codex runs with --full-auto, the model may produce
multiple messages interleaved with tool calls. The -o flag only captures
the final message (often a brief summary), while the wrapper's mtime
check would trust that brief output over the comprehensive JSONL-parsed
stdout that contains all messages.Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
下载附件