mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
Add configurable right-click paste to the fullscreen TUI (#48118)
## What changed - Add `tui.right_click_paste` with `auto`, `on`, and `off` modes. The default `auto` enables the fallback on Windows and Linux, including WSL when terminal detection is conclusive. `on` also enables macOS. Both modes skip SSH sessions and recognized VS Code terminals. - Paste clipboard text through the normal composer input path when no selection, search, or blocking view takes precedence. Discard pending results after intervening input, focus loss, or changes to the target thread, draft, or cursor. - Read text asynchronously through the shared clipboard worker, with a five-second deadline and the message size limit. Read the Windows clipboard through PowerShell on WSL and reject overlapping clipboard operations. ## Testing Add coverage for platform and terminal policy, normal paste delivery, stale reads, overlapping clipboard operations, read timeouts, oversized text, and large command output. GitOrigin-RevId: 0a7b6d445c09928da6c5335841ba2a9a66cc7e4b
This commit is contained in:
@@ -288,6 +288,7 @@ async fn new_config(
|
||||
model_availability_nux: ModelAvailabilityNuxConfig::default(),
|
||||
tui_fullscreen_transcript: false,
|
||||
tui_copy_on_select: Default::default(),
|
||||
tui_right_click_paste: Default::default(),
|
||||
tui_alternate_screen: AltScreenMode::Auto,
|
||||
tui_status_line: None,
|
||||
tui_status_line_use_colors: true,
|
||||
|
||||
Reference in New Issue
Block a user