/copy fails after successful output in SSH session (regression in 0.116.0)
Open 💬 5 comments Opened Mar 22, 2026 by Pein2017
What version of Codex CLI is running?
0.116.0
What subscription do you have?
ChatGPT Pro
Which model were you using?
All models
What platform is your computer?
Linux x86_64 Ubuntu
What terminal emulator and version are you using (if applicable)?
SSH remote session (from local machine) → Ubuntu server Terminal: bash
What issue are you seeing?
Issue: /copy fails even after successful model output
Environment:
- Codex CLI version: 0.116.0
- OS: Ubuntu (remote)
- Access method: SSH into remote machine
- Terminal: (fill in if known, e.g. bash / zsh / tmux)
Reproduction steps:
- Start a fresh Codex CLI session
- Enter a simple prompt:
hi - Wait until the model output fully completes and CLI is idle
- Run
/copy
Expected behavior:
/copyshould copy the latest completed model output
Actual behavior:
- Error message:
/copy is unavailable before the first Codex output or right after a rollback
Notes:
- The model output is clearly visible and completed before running
/copy - No rollback or undo actions were performed
- This worked correctly in earlier Codex CLI versions (regression)
- Issue is reproducible consistently
Additional context:
- Running entirely in a remote SSH session (no local GUI clipboard)
- Unsure if related to TUI state sync or SSH environment handling
What steps can reproduce the bug?
Uploaded thread: 019d15a0-162b-78b1-8610-7ea7469cfd26
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗