mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why A native clipboard write inside a dev container can succeed on the container's desktop while leaving the host clipboard unchanged. ## What changed Detect VS Code dev containers with `REMOTE_CONTAINERS=true` and route clipboard copies through tmux or OSC 52. On Linux with a nonempty `WAYLAND_DISPLAY`, use the native clipboard for copies over the 100,000-byte terminal limit and retain clipboard ownership. Host delivery remains unconfirmed on both paths. The copy status asks users to try pasting and points them to `/export` if the text is missing. Keep that status out of exported transcripts. ## Testing Add coverage for dev container detection, terminal send success and failure, and clipboard ownership at the terminal size limit and one byte over it. GitOrigin-RevId: 057f7956fce8a16c8a3022b697e443b524740376