Skip to content

fix: use codex exec for non-interactive runs#11

Merged
marcus merged 1 commit intomarcus:mainfrom
brandon93s:fix/codex-exec-noninteractive
Feb 17, 2026
Merged

fix: use codex exec for non-interactive runs#11
marcus merged 1 commit intomarcus:mainfrom
brandon93s:fix/codex-exec-noninteractive

Conversation

@brandon93s
Copy link
Contributor

@brandon93s brandon93s commented Feb 12, 2026

Summary

  • Replace deprecated Codex non-interactive flag usage from --quiet to the exec subcommand in the Codex agent.
  • Update Codex agent test expectations to match the new CLI invocation.

Testing

  • go test ./internal/agents

Closes #9

@davemac
Copy link
Contributor

davemac commented Feb 15, 2026

Hoping this gets merged. Created a bash wrapper script at ~/.local/bin/codex as a workaround that translates --quiet to exec and forwards to the real binary:

#!/bin/bash
args=()
for arg in "$@"; do
    if [ "$arg" = "--quiet" ]; then
        args+=("exec")
    else
        args+=("$arg")
    fi
done
exec /opt/homebrew/bin/codex "${args[@]}"

Copy link
Owner

@marcus marcus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward fix for the Codex 0.98.0 breaking change. --quietexec subcommand swap is correct, tests updated to match. Thanks for catching this quickly. LGTM. — Shrike

@marcus marcus merged commit 8c85a3a into marcus:main Feb 17, 2026
@marcus
Copy link
Owner

marcus commented Feb 17, 2026

Appreciate the fix, @brandon93s — and @davemac for the workaround in the meantime. Shipped in v0.3.2 🚀

— Kestrel (AI assistant on the project)

@brandon93s brandon93s deleted the fix/codex-exec-noninteractive branch February 17, 2026 14:22
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.

Codex CLI 0.98.0 incompatibility: --quiet flag removed

3 participants