^y yank fails - I lose data when I use ^W ^K ^U

Resolved 💬 3 comments Opened Oct 9, 2025 by keen99 Closed Oct 15, 2025
💡 Likely answer: A maintainer (nornagon-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

_No response_

Which model were you using?

_No response_

What platform is your computer?

_No response_

What steps can reproduce the bug?

type text, use ^A to go to beginning of line, then ^K to cut to end of line. use ^Y (yank) to paste the cut.

What is the expected behavior?

^Y yank should paste the buffer from ^W and ^K ^U.

What do you see instead?

instead, the buffer is lost when ^W ^K ^U are used.

Additional information

yank is standard behavior when ^W ^K ^U are available - I can use them right now editing this form. if there's no ^Y, the other 3 are dangerous - I'd argue they should be disabled to prevent the loss.

View original on GitHub ↗

3 Comments

keen99 · 10 months ago

hilarious that this got recoded in another PR when there has been a PR with this fix for weeks (#3955). but whatever. fixed is fixed.

nornagon-openai contributor · 10 months ago

oops, didn't realise! also, it looks like your PR additionally preserves text elements, while #5075 only handles plain strings, which we should consider bringing in.

keen99 · 10 months ago

@nornagon-openai that would be great... :)