Repository navigation
Conversation
dc78fc8 to
1922279
Compare
|
Thanks for this. Two problems I found reading it against The new test fails on this branch. o.bind("SUPER + C", "Universal copy", universal_clipboard_shortcut("CTRL", "C", "CTRL", "Insert"))but Matching "codex" anywhere in the class or title can send SIGINT. In a terminal, this branch sends a plain Ctrl+C whenever the window title contains "codex". Terminal titles usually show the cwd or the running command, so |
Codex 0.157+ copies with Ctrl+C in its TUI; Super+C was synthesizing the terminal Ctrl+Insert chord that never reaches Codex. Co-authored-by: AnPod <AnPod@users.noreply.github.com>
Add a static clipboard binding test so the Codex Ctrl+C preference is checked in environments without lua. Co-authored-by: AnPod <AnPod@users.noreply.github.com>
Match the exact org.omarchy.agent class instead of any window whose class or title contains "codex", so terminals titled e.g. "vim codex.md" keep the normal Ctrl+Shift+C copy chord. Align the test with the real terminal binding and fix the stale Ctrl+Insert comment.
1922279 to
4ff5368
Compare
|
| if active_window_wants_app_copy() then | ||
| send_shortcut_once(default_mods, default_key)() |
There was a problem hiding this comment.
Agent terminals lose normal paste
Both copy and paste use universal_clipboard_shortcut, so this copy exception also makes Super+V send Ctrl+V instead of Ctrl+Shift+V in every org.omarchy.agent window. These are terminal windows. The shipped Foot settings, for example, bind clipboard paste to Control+Shift+v, not Control+v. The terminal therefore no longer pastes clipboard text; agents without their own text-paste handler cannot paste with Super+V.
Apply the exception only to copy, and add a paste check to the new test.
|
Reviewed at The problem it fixes has gone. #13413 is closed, and the reporter's last comment there says Super+C works again in foot as of Codex 0.160.1. Codex now copies the way it did before, so this would add a Codex-specific exception for a bug Codex has already fixed. It would break copy and paste in every agent window:
The new test only presses Super+C, so it catches none of these. Classification: I read this as not-actionable, a workaround for a Codex bug Codex has since fixed. The second opinion read it as a bug fix. Because the two disagree, it carries no class label for now. Next: this waits on the maintainer to decide whether to close it. If Codex breaks copy again, the fix would need to cover copy only, match Codex rather than every agent, and leave Super+V alone. |
|
Closing since the linked issue #13413 was closed. |
Summary
Fixes #13413
Codex CLI 0.157.1 breaks Super+C universal copy in its terminal UI.
Change
Test plan