mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
## Why A client can attach to a Rex session after Codex starts. A successful native clipboard write can update the host clipboard without reaching the attached client. ## What changed Use shared terminal detection to select OSC 52 forwarding in Rex, even when native copying succeeds. Keep environment-based routing for tmux, Herdr, and SSH. Use the same terminal detector to recognize VS Code for keyboard handling, with the existing Windows probe as a fallback. ## Testing Cover OSC 52 selection for Rex without SSH or tmux and verify that forwarding runs after a successful native copy. GitOrigin-RevId: 47db5868d87aaf2aeee9cdd59307aa1be532c11e