Skip to content

Codex can't run commands longer than 1 second #6965

Open

Description

@srogatch

Codex used to run tests for me and check their results. But not anymore: now it says there's the CLI harness that aborts long-running commands, longer than 1 second. Please, confirm if there's indeed such a timeout in Codex CLI.

Activity

  1. added
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    sandboxIssues related to permissions or sandboxing
    on Nov 20, 2025
  2. rahidz commented on Nov 23, 2025

    @rahidz

    I'm seeing the same behavior, but for me it's 10 seconds. Just started today. Very odd.

    Image

  3. added
    tool-callsIssues related to tool calling
    and removed
    sandboxIssues related to permissions or sandboxing
    on Nov 23, 2025
  4. tibo-openai commented on Dec 31, 2025

    @tibo-openai
    Collaborator

    Which model do you use and could you try whether this also is a problem with the new background terminal feature which you can enable in /experimental?

  5. srogatch commented on Dec 31, 2025

    @srogatch
    Author

    It's not reproducible for me in Codex v0.77.0 . The tool waits for like half-an-hour long commands without issues.

  6. rahidz commented on Dec 31, 2025

    @rahidz

    Likewise here! The background terminal process works great!

  7. sharno commented on Dec 31, 2025

    @sharno

    I wanted codex to wait for 15 minutes using a sleep command to gain back control and continue working. I tried with and without the background terminal and it cannot wait more than 10 seconds.

    I'm using 5.2 codex model on medium effort. Using codex 0.77 as well

  8. melsharnou-chwy commented on Jan 1, 2026

    @melsharnou-chwy

    Found the issue, seems that tool calls by default timeout after 10 seconds. The model has to call the tool with a timeout_ms parameter to be able to let the command finish

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions