codex icon indicating copy to clipboard operation
codex copied to clipboard

Message edit mixes last user message with "stream error … retrying…" text

Open warpdev opened this issue 1 year ago • 1 comments

What version of Codex is running?

0.24.0

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.5.0 arm64 arm

What steps can reproduce the bug?

  1. While a stream error is visible (e.g., stream error: … retrying …), press Esc once to stop the streaming response.
  2. Press Esc again (Esc, Esc) to open the Edit Message UI.
  3. In the editor for the last user message, notice the stream-error line is appended at the bottom of your message text.
  4. Press Enter to actually start editing: the stream-error text is inside the editable buffer and can be modified as if it were part of your message.

What is the expected behavior?

The edit buffer should contain only the text I sent; transport/retry logs should never appear in the message body.

What do you see instead?

The stream-error/retry line is merged into the last user message and becomes editable (and can be saved) as if I had typed it.

Additional information

Image

warpdev avatar Aug 27 '25 06:08 warpdev

@nornagon-openai The previous PR was reverted by #3614. Should we reopen this issue?

hidaris avatar Sep 15 '25 16:09 hidaris