Skip to content

codex exec non interactive mode prints duplicate output #12566

@pankajbisht10

Description

@pankajbisht10

What version of Codex CLI is running?

codex-cli 0.98.0

What subscription do you have?

Oracle Code Assist

Which model were you using?

gpt-5-codex

What platform is your computer?

Oracle Linux OL 8

What terminal emulator and version are you using (if applicable)?

Codex CLI

What issue are you seeing?

bash-4.4$ codex exec "Print 5 cities in numbered list"
OpenAI Codex v0.98.0 (research preview)

workdir: /home/XXXX
model: gpt-5-codex
provider: xxxxxxxx
approval: never
sandbox: workspace-write [workdir, /tmp, $TMPDIR]
reasoning effort: none
reasoning summaries: auto
session id: xxxxxxxxxxxx

user
Print 5 cities in numbered list
codex

  1. New York City
  2. Los Angeles
  3. Chicago
  4. Houston
  5. Phoenix
    tokens used
    1,085
  6. New York City
  7. Los Angeles
  8. Chicago
  9. Houston
  10. Phoenix

What steps can reproduce the bug?

codex exec

What is the expected behavior?

It should print the message once

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexecIssues related to the `codex exec` subcommand

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions