Skip to content

Add --json flag to codex exec for structured output#12

Merged
juhgiyo merged 2 commits intomainfrom
claude/json-output
Mar 17, 2026
Merged

Add --json flag to codex exec for structured output#12
juhgiyo merged 2 commits intomainfrom
claude/json-output

Conversation

@juhgiyo
Copy link
Copy Markdown
Contributor

@juhgiyo juhgiyo commented Mar 17, 2026

Summary

  • Adds --json flag to codex exec command in the build output
  • Suppresses verbose prompt echo, outputs structured JSONL events instead

Test plan

  • Run a session via strawpot-codex and verify prompt is no longer echoed in output
  • Verify JSONL events are emitted on stdout

🤖 Generated with Claude Code

juhgiyo and others added 2 commits March 17, 2026 11:11
Suppresses the verbose prompt echo and outputs JSONL events
instead, making output machine-parseable for StrawPot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update TestCmdBuild_WithTaskAndModel to expect task at cmd[3]
instead of cmd[2] since --json is now inserted after exec.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@juhgiyo juhgiyo merged commit c0d6801 into main Mar 17, 2026
1 check passed
@juhgiyo juhgiyo deleted the claude/json-output branch March 17, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant