Skip to content

Byte truncation doesn't preserve command output tails, confusing codex (e.g. with cargo output) #6415

Closed

Description

@tekacs

What version of Codex is running?

main (a47181e)

What subscription do you have?

pro

Which model were you using?

No response

What platform is your computer?

No response

What issue are you seeing?

When running commands that have few lines but long lines, byte truncation kicks in instead of line truncation.

A good example of this can be cargo run, emitting a combination of build and log output.

Line truncation preserves both head and tail, but byte truncation currently cuts off the end of output.

This totally confuses codex, which will (for example) run a cargo build that fails, but interpret it as having succeeded (because it sees no errors in the output.

What steps can reproduce the bug?

Run any command that has few but long lines, causing byte truncation to kick in.

What is the expected behavior?

Byte truncation should – like line truncation – preserve both head and tail portions of the command output (as in this commit).

Additional information

No response

Activity

  1. added
    bug
    on Nov 9, 2025
  2. changed the title [-]Byte truncation doesn't preserve command output tails, confusing codex with compiler (e.g. cargo) output[/-] [+]Byte truncation doesn't preserve command output tails, confusing codex (e.g. with cargo output)[/+] on Nov 9, 2025
  3. added
    CLI
    tool-calls
    on Nov 9, 2025
  4. github-actions commented on Nov 9, 2025

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  5. insilications commented on Nov 9, 2025

    @insilications

    This is why #5913 needs to be addressed

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

    CLIbugtool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions