Skip to content

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

@mohanravi07

Description

@mohanravi07

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions