Multiline paste in Codex CLI submits the first line immediately and leaves remaining lines in the input box
What version of Codex CLI is running?
codex-cli 0.142.5
What subscription do you have?
Business
Which model were you using?
gpt-5.5
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
Windows Terminal (PowerShell)
Codex doctor report
What issue are you seeing?
When pasting a multiline message into Codex CLI, only the first line is submitted immediately, while the remaining lines stay in the input box.
This makes it difficult to paste normal multiline prompts, especially prompts that contain bullet lists, file paths, or multi-paragraph bug reports.
<img width="834" height="344" alt="Image" src="https://github.com/user-attachments/assets/6d8bda86-0599-4247-96e2-d6a0f52f5696" />
What steps can reproduce the bug?
- Open Codex CLI in a project directory.
- Copy the following multiline text from VS Code:
有几个问题:
- 新的 workflow tree 相比之前的缺少某些步骤, 请对比 "C:\Users\Pello\Downloads\before redesign.png" 和 ".agents/cached-results/observer-issue06-model-output.png".
- 新的 workflow tree 几乎变成扁平的了, 原来 step 最多有两层缩进, 现在没有缩进, 硬要说的话最多一层. 每个步骤左侧表示缩进的图标也有问题, 没有对齐.
- 和之前的设计稿 (.scratch/example-observer-desktop-redesign/assets/reference-1-production-tool.png) 对比, 现在缺少时间轴轨道, 每个步骤的耗时并不是完全统一单位 (00:00.000), 步骤没有真实图标还是文字缩写.
- Paste it into the Codex CLI input box.
- Observe the behavior.
What is the expected behavior?
Pasting multiline text should preserve the entire pasted content as one draft message.
Codex CLI should not submit automatically just because the pasted text contains newline characters. The user should be able to review or edit the pasted multiline prompt and submit it explicitly.
Expected draft content after paste:
有几个问题:
- 新的 workflow tree 相比之前的缺少某些步骤, 请对比 "C:\Users\Pello\Downloads\before redesign.png" 和 ".agents/cached-results/observer-issue06-model-output.png".
- 新的 workflow tree 几乎变成扁平的了, 原来 step 最多有两层缩进, 现在没有缩进, 硬要说的话最多一层. 每个步骤左侧表示缩进的图标也有问题, 没有对齐.
- 和之前的设计稿 (.scratch/example-observer-desktop-redesign/assets/reference-1-production-tool.png) 对比, 现在缺少时间轴轨道, 每个步骤的耗时并不是完全统一单位 (00:00.000), 步骤没有真实图标还是文字缩写.
Additional information
This issue may only occur when the first line contains Chinese, Japanese, or Korean characters. Removing the first line, or changing the text in the first line to English (without changing the subsequent lines), will prevent the issue from happening.
VS Code text file status bar: <img width="369" height="43" alt="Image" src="https://github.com/user-attachments/assets/db6e7c3d-7d80-4a30-b05f-ae1f44d54b8a" />