mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Centralize TUI clipboard decisions in terminal capabilities (#63797)
## 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
This commit is contained in:
@@ -123,7 +123,7 @@ pub(crate) async fn make_test_app() -> Box<App> {
|
||||
platform_default: true,
|
||||
ssh: false,
|
||||
wsl: false,
|
||||
vscode: crate::tui::VscodeDetection::Other,
|
||||
owner: crate::terminal_capabilities::PasteOwner::Application,
|
||||
},
|
||||
reconnect: Default::default(),
|
||||
daemon_cli_executable: None,
|
||||
|
||||
Reference in New Issue
Block a user