What's Fixed
Codex CLI produces actual analysis instead of brief acknowledgments
- Replaced confusing WORK SUMMARY preamble with
[HEADLESS SESSION]context that instructs the model to produce comprehensive output - Added
-o(--output-last-message) flag for reliable output file capture - Threaded
outputFileparameter through the full execution chain
Gemini CLI no longer times out
- Root cause: Missing
-pflag meant Gemini ran in interactive mode, hanging while waiting for user input - Added
-p ''flag to enable headless/non-interactive mode in both foreground and background execution
Files Changed
src/mcp/codex-core.ts- Headless context,-oflag, outputFile parameter threadingsrc/mcp/gemini-core.ts- Headless context,-pflag for non-interactive mode