codex - 💡(How to fix) Fix /copy does not work inside tmux [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19926Fetched 2026-04-29 06:25:18
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4unlabeled ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.125.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.5

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What terminal emulator and version are you using (if applicable)?

Powershell 7.6.1

What issue are you seeing?

The /copy command does not work inside tmux. If I exit codex, I can copy normally from the tmux session. If I exit tmux and run codex, /copy works normally. Powershell running SSH into Ubuntu 24.04 with tmux 3.4.

What steps can reproduce the bug?

Any prompt will work, I tested using "What's 2+2?" and waiting for the answer.

What is the expected behavior?

Copy the text as per normal.

Additional information

No response

extent analysis

TL;DR

The /copy command issue in Codex CLI within tmux may be related to compatibility or environment variables, and checking the environment configuration could help resolve the problem.

Guidance

  • Verify that the CODEX_CLI environment variables are set correctly within the tmux session, as this might affect the functionality of the /copy command.
  • Try running the Codex CLI command directly in the Powershell terminal (outside of tmux) to see if the issue persists, which can help determine if the problem is specific to the tmux environment.
  • Check the tmux configuration file (usually ~/.tmux.conf) for any settings that might interfere with the Codex CLI or its ability to access the system clipboard.
  • Consider testing the /copy command with a different model or prompt to see if the issue is specific to the gpt-5.5 model or a particular input.

Notes

The issue seems to be specific to the interaction between Codex CLI, tmux, and the Powershell terminal, and resolving it may require adjusting environment variables or configurations within these tools.

Recommendation

Apply workaround: Given the complexity of the environment and the tools involved, applying a workaround such as running Codex CLI outside of tmux or adjusting the environment variables within tmux might be the most straightforward approach to resolve the /copy command issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix /copy does not work inside tmux [1 participants]