-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingSomething isn't working
Description
Summary
When a large paste is collapsed into a placeholder (e.g., "[Pasted Content ... chars]"), pressing Ctrl+C stashes the draft, but recalling it with Up-arrow loses the hidden payload. The placeholder remains as plain white text and submits literally, which effectively discards the original paste.
Steps to Reproduce
- Run Codex (either with TUI or
--enable tui2) - Paste a large chunk of text so it collapses into a "[Pasted Content ... chars]" placeholder.
- Press Ctrl+C to stash the draft.
- Press Up-arrow to recall the draft from history.
- Submit the message or inspect the placeholder styling.
Expected
- The recalled draft preserves the hidden pasted content.
- The placeholder stays styled (blue) and expands to the original content on submit.
Actual
- The placeholder becomes plain text (white) with no hidden payload.
- Submitting sends the literal placeholder text, losing the original paste.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingSomething isn't working