mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Preserve editor yanks across new sessions and thread switches (#44742)
## Why Starting a new session with `/new` or switching threads replaces the chat composer, losing the last editor kill or Vim yank. ## What changed Transfer the kill buffer to the replacement composer, preserving both its text and whether it is characterwise or linewise. Yanked text remains available to paste within the same TUI session. ## Testing Add regression tests for new sessions and root thread switches that delete a line with Vim `dd`, then paste it with `p` in the replacement composer and verify the text and rendered output. GitOrigin-RevId: edb4790d4de7b7425de6ef6af4e2786f6a4771c1
This commit is contained in:
1 parent
40b0409aa1
commit
eabb7c91d1
8 files changed
+166
-3
No files matched your search
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
source: tui/src/app/tests/new_session_tests.rs
|
||||
assertion_line: 55
|
||||
expression: composer_lines
|
||||
---
|
||||
› new line
|
||||
saved line
|
||||
Reference in new issue
Block a user