mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## Why Terminal checks for clipboard behavior are spread across the clipboard worker, local settings, and right-click paste handling. ## What changed Use `terminal_capabilities` to determine whether the terminal forwards copy shortcuts or handles paste itself, whether X11 primary selection is available, and how to send OSC 52 through tmux or GNU Screen. Have TUI callers use the same SSH and WSL session checks. Keep the automatic copy-on-select decision in settings and base it on whether the terminal forwards the copy shortcut. Route tmux clipboard copies through the client buffer with OSC 52 as a fallback. GitOrigin-RevId: 623599783b70d66a06c52458fc82305a422cf507