Pasting multi-line text into Codex chat auto-submits on newlines and splits into queued messages
Resolved 💬 1 comment Opened Jan 29, 2026 by andrew-vdb Closed Jan 29, 2026
What feature would you like to see?
When I paste multi-line text into the Codex chat input, the client treats newline characters as submit events and sends the pasted text as multiple messages instead of inserting the entire block into the input.
Steps to reproduce
- Open the Codex web chat UI and focus the message input box.
- Copy a multi-line block of text to the clipboard. Example:
Line 1
Line 2
Line 3
- Paste into the input (Right click into terminal)
- Observe what happens in the conversation thread.
Observed behavior
- The client submits the message immediately when it encounters the first newline in the pasted text.
- The remainder of the pasted lines are sent as separate queued messages (multiple messages appear), rather than being inserted as one multi-line draft in the input box.
Expected behavior
- The entire pasted multi-line text should be inserted into the input box as a single message draft, preserving newlines.
- The message should only be sent when the user explicitly presses enter
Environment
- OS: WSL
codex-cli 0.92
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗