codex
codex copied to clipboard
Message edit mixes last user message with "stream error … retrying…" text
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?
- While a stream error is visible (e.g., stream error: … retrying …), press Esc once to stop the streaming response.
- Press Esc again (Esc, Esc) to open the Edit Message UI.
- In the editor for the last user message, notice the stream-error line is appended at the bottom of your message text.
- 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
@nornagon-openai The previous PR was reverted by #3614. Should we reopen this issue?