Updating a goal with /goal edit misreads input when there is a newline in the pasted content

Resolved 💬 1 comment Opened Jun 3, 2026 by mohanravi07 Closed Jun 3, 2026

What version of Codex CLI is running?

codex-cli 0.136.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.5

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What terminal emulator and version are you using (if applicable)?

Windows Terminal with PowerShell

Codex doctor report

What issue are you seeing?

When I try to copy and paste content into /goal edit, it prematurely takes the content up to a newline and then starts processing it. The remaining content after the newline is present in the input area like [Pasted Content 2047 chars].

What steps can reproduce the bug?

  • Set a goal using /goal
  • Stop and edit a goal using /goal edit
  • Clear the existing content and then copy and paste content that has new lines in it
  • Watch it process only the text that is before the new line and leave all the text after it

What is the expected behavior?

It should process all the text and also wait for me to press the enter key to start processing the goal.

Additional information

The regular /goal is able to parse the text content with new line properly, the issue is only with /goal edit

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗