codex icon indicating copy to clipboard operation
codex copied to clipboard

When executing multi line commands, indentation seems to be very abnormal

Open vitatea2023 opened this issue 1 year ago • 6 comments

What version of Codex is running?

codex-cli 0.19.0

Which model were you using?

gpt-5

What platform is your computer?

Linux 6.14.9-arch1-1 x86_64 unknown

What steps can reproduce the bug?

codex --dangerously-bypass-approvals-and-sandbox --model gpt-5

What is the expected behavior?

When executing multi line commands, indentation seems to be very abnormal

What do you see instead?

Image

Additional information

No response

vitatea2023 avatar Aug 08 '25 09:08 vitatea2023

@bolinfest

vitatea2023 avatar Aug 08 '25 12:08 vitatea2023

Same, I spent an hour trying to figure out if I'm running the wrong executable. Should I be running typescript instead of rust? Rust instead of typescript? This can't be the way Codex CLI really is, can it? Tried downloading executable only from the release tag... horrible interface. Just let us OAuth with opencode or cursor cli or anything else if this is the way it's going to be.

ben-vargas avatar Aug 08 '25 13:08 ben-vargas

@ben-vargas You should be running the Rust version. As of https://github.com/openai/codex/releases/tag/rust-v0.20.0, the TypeScript version is no more (though it was only available on Windows for the last month or two).

As for the wrapping issues, I'll defer to @easong-openai. There current logic is supposed to break at 80 cols, though there is work in flight to switch to Markdown and change the wrapping behavior: https://github.com/openai/codex/pull/2029.

bolinfest avatar Aug 09 '25 01:08 bolinfest

@bolinfest - Thanks for confirming, that's the conclusion I came to as well... I'm on the right one, it was just underwhelming/surprising coming from other things, but I know you all know that. I know its WIP and early on in the Rust conversion. On the bright side, it performs quite well despite the lack of looks.

ben-vargas avatar Aug 09 '25 02:08 ben-vargas

Same, I spent an hour trying to figure out if I'm running the wrong executable. Should I be running typescript instead of rust? Rust instead of typescript? This can't be the way Codex CLI really is, can it? Tried downloading executable only from the release tag... horrible interface. Just let us OAuth with opencode or cursor cli or anything else if this is the way it's going to be.

Is this on the roadmap at all? I'm not sure if it's even allowed by OpenAI. I would love to upgrade to Pro since I'm not able to verify my account and properly use the credits via the API, but I also want to "openness" of being able to use other CLIs, especially sst/opencode, and not be stuck with Codex.

emanuelturis avatar Aug 14 '25 11:08 emanuelturis

This should not be an issue on that latest versions. We are now fully migrated to codex-rs. Marking as resolved.

tibo-openai avatar Oct 16 '25 04:10 tibo-openai