Repository navigation
Description
What version of Codex CLI is running?
0.154.0
What subscription do you have?
Plus
Which model were you using?
No response
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
tmux
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1789229481s since unix epoch",
"overallStatus": "ok",
"codexVersion": "0.154.0",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/home/pc/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/home/pc/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/home/pc/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/home/pc/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/home/pc/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "auth is configured",
"details": {
"auth file": "/home/pc/.codex/auth.json",
"auth storage mode": "File",
"stored API key": "false",
"stored ChatGPT tokens": "true",
"stored agent identity": "false",
"stored auth mode": "chatgpt"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "/home/pc/.codex",
"active thread overrides": "not inspected",
"config.toml": "/home/pc/.codex/config.toml",
"config.toml parse": "ok",
"configuration load ms": "26",
"configuration scope": "invocation config, including cloud-managed policy",
"cwd": "/home/pc",
"enabled feature flags": "shell_tool, view_image, sleep_tool, unified_exec, unified_exec_tty, unified_exec_zsh_fork, shell_snapshot, content_item_kinds, code_mode_host, terminal_resize_reflow, sqlite, hooks, enable_request_compression, unbounded_connection_retries, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, in_app_chat, in_app_dictation, in_app_local_automation, in_app_updates, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, item_ids, skill_mcp_dependency_install, skill_search, mentions_v2, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, personality, fast_mode, tui_app_server, remote_compaction_v2, compaction_image_budget, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "48",
"log dir": "/home/pc/.codex/log",
"mcp servers": "0",
"model": "gpt-5.6-sol",
"model provider": "openai",
"sqlite home": "/home/pc/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable found; execution not verified",
"details": {
"PATH git #1": "/usr/bin/git",
"PATH git #2": "/bin/git",
"PATH git entries": "2",
"git execution": "not inspected (PATH helpers are not executed)",
"repo detected": "false",
"selected git": "/usr/bin/git"
},
"remediation": null,
"durationMs": 50
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "/home/pc/.local/bin/codex",
"current executable": "/home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/bin/codex",
"install context": "standalone (unix, package /home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl, bin /home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/bin, resources /home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-resources, path /home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-path)",
"managed by Vite+": "false",
"managed by bun": "false",
"managed by npm": "false",
"managed by pnpm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 50
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"remediation": null,
"durationMs": 0
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"managed proxy": "not configured",
"proxy env vars": "none",
"respect system proxy": "disabled"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT inference URL": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 182
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket handshake succeeded",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv4",
"auth mode": "chatgpt",
"connect timeout": "15000 ms",
"endpoint": "wss://chatgpt.com/backend-api/<redacted>",
"handshake result": "HTTP 101 Switching Protocols",
"model provider": "openai",
"provider name": "OpenAI",
"proxy env vars": "none",
"reasoning header": "false",
"server model present": "false",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": null,
"durationMs": 816
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on linux-x86_64",
"details": {
"commit": "unknown",
"current executable": "/home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/bin/codex",
"install method": "standalone (unix, package /home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl, bin /home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/bin, resources /home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-resources, path /home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-path)",
"platform": "linux-x86_64",
"version": "0.154.0"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search command found (bundled); execution not verified",
"details": {
"search command": "/home/pc/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "/home/pc/.codex/tmp/arg0/codex-arg0JVzNxI/codex-linux-sandbox",
"denied-read glob rules": "0",
"denied-read rules": "0",
"execve wrapper helper": "/home/pc/.codex/tmp/arg0/codex-arg0JVzNxI/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"glob scan max depth": "unbounded",
"managed filesystem source": "none",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "endpoint protection is not inspected on this platform",
"details": {
"endpoint products": "not inspected on this platform"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/home/pc/.codex (dir)",
"active rollout files": "284 files, 532268924 total bytes, 1874186 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/home/pc/.codex/goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "/home/pc/.codex/logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "/home/pc/.codex/log (missing)",
"memories DB": "/home/pc/.codex/memories_1.sqlite (file)",
"memories DB integrity": "ok",
"queue DB": "/home/pc/.codex/queue_1.sqlite (file)",
"queue DB integrity": "ok",
"sqlite home": "/home/pc/.codex (dir)",
"standalone release cache": "9 entries in /home/pc/.codex/packages/standalone/releases",
"state DB": "/home/pc/.codex/state_5.sqlite (file)",
"state DB integrity": "ok",
"thread history DB": "/home/pc/.codex/thread_history_1.sqlite (file)",
"thread history DB integrity": "ok"
},
"remediation": null,
"durationMs": 1097
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "ok",
"summary": "rollout files and state DB thread inventory agree",
"details": {
"default model provider": "openai",
"rollout DB active files": "284",
"rollout DB active rows": "284",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "0",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "0",
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=284",
"rollout DB rows": "284",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0",
"rollout DB sources": "cli=123, subagent:other=104, subagent:thread_spawn=57",
"rollout DB stale rows": "0"
},
"remediation": null,
"durationMs": 158
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (888.2 GiB)",
"details": {
"CODEX_HOME available": "888.2 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "888.2 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"EDITOR": "not set",
"LANG": "en_US.UTF-8",
"VISUAL": "not set",
"os": "Ubuntu 26.4.0 (resolute) [64-bit]",
"os language": "en-US",
"os type": "Ubuntu",
"os version": "26.4.0"
},
"remediation": null,
"durationMs": 13
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"COLORTERM": "truecolor",
"SSH_CONNECTION": "present",
"WAYLAND_DISPLAY": "present",
"WSL_DISTRO_NAME": "present",
"WSL_INTEROP": "present",
"WT_SESSION": "present",
"color output": "enabled",
"effective locale": "en_US.UTF-8",
"multiplexer": "tmux 3.6",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "Windows Terminal",
"terminal size": "120x29",
"tmux options": "not inspected (PATH helpers are not executed)"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "pc",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.154.0",
"check for update on startup": "true",
"last checked at": "2026-09-12T14:45:27.659886467Z",
"latest version": "0.154.0",
"latest version status": "current version is not older",
"update action": "standalone installer",
"version cache": "/home/pc/.codex/version.json"
},
"remediation": null,
"durationMs": 426
}
}
}What issue are you seeing?
What issue are you seeing?
/copy copies to the host machine's native clipboard instead of the clipboard of the SSH client when Codex is running inside a persistent tmux session that was originally started locally.
My setup:
- Codex CLI 0.154.0
- Codex is running inside tmux on my desktop
- The tmux session and Codex were started locally on the desktop
- I later SSH into the desktop using Termius on my phone and attach to the existing tmux session
- I want
/copyto copy the Codex response to the phone/Termius clipboard
Inside the Codex/tmux environment:
SSH_CONNECTION=
SSH_TTY=
TMUX=/tmp/tmux-1000/default,643,0
Running /copy copies the response to the desktop clipboard rather than the clipboard of the Termius client currently attached to tmux.
This happens in fresh Codex sessions as well as existing sessions, so it does not appear related to conversation length or resume state.
Reproduction
- On a desktop Linux machine, start tmux locally.
- Start Codex inside that tmux session.
- From another device, SSH into the desktop using a terminal that supports OSC 52, such as Termius.
- Attach to the existing tmux session.
- In Codex, generate a response and run
/copy. - Attempt to paste on the SSH client device.
Actual behavior
The response is copied to the desktop/native clipboard.
The SSH client's clipboard is not updated.
Expected behavior
When interacting with Codex through an SSH client attached to the existing tmux session, /copy should be capable of forwarding the copied text through tmux/OSC 52 to the currently attached terminal.
Workaround / evidence
Starting Codex with an artificial SSH environment variable fixes the problem:
SSH_CONNECTION=1 codexor:
SSH_CONNECTION=1 codex resume --lastWith that change, /copy reaches the Termius clipboard correctly.
This appears to be caused by clipboard backend detection. Codex currently determines an SSH session by checking whether SSH_TTY or SSH_CONNECTION exists in its own process environment.
That does not work for this topology because Codex was started before the SSH client attached to the persistent tmux session, so its environment never receives SSH variables.
Codex does know that it is inside tmux (TMUX is set), but because the session is classified as local, it prefers the native clipboard rather than tmux/terminal-mediated clipboard forwarding.
A possible solution might be an explicit clipboard backend option (native, tmux/osc52, auto) or another way to handle persistent tmux sessions whose attached clients may change between local and remote.
What steps can reproduce the bug?
Uploaded thread: 01a09655-3baf-78e0-b730-ae71ca1e43cd
What is the expected behavior?
No response
Additional information
No response
Activity
glook9001 commentedon Sep 12, 2026
@radlinsky tmux, is nutritious for this kind of issues.
Start by not using tmux-
use something normal and more modern
get used to use "screen"
there is also "Zellij"
or "dvtm" which is the minimalist apporch
the best is "screen" pretty much a gnu util - in many cloud solutions like AWS LINUX and ORCALE LINUX its preinstalled
glook9001 commentedon Sep 12, 2026
@radlinsky Dude. you should literally rethink. Literally everything, the way you execute this just wastes your time.
if you want you can use a SOURCE CONTROL like git
The way you execute this doesn’t just waste your time; it burns through everyone else’s sanity by association.
Look at how you operate: you jump straight into the deep end with ""zero preparation"', smash your keyboard against the nearest wall, and then wonder why the entire thing blows up in your face. It is an "absolute" masterclass in doing things the hardest, most backward way humanly possible. You skip the documentation, ignore every established convention, bypass standard sanity checks, and then treat the inevitable crash like some cruel twist of "faitfully" instead of the direct consequence of your own chaotic process.
Sorry for puting so much anger here. just discovered my wife cheats on me - (not that i care much- but its someone i actually HATE)
radlinsky commentedon Sep 14, 2026
Thanks for the suggestions. The issue isn't that tmux itself is malfunctioning; it's that Codex chooses its clipboard backend based on SSH environment variables that can be stale in a persistent tmux session. The same setup works when I force Codex to use its remote clipboard path. I'm mainly trying to document that specific behavior here.
radlinsky commentedon Sep 14, 2026
Hi @fcoury-oai — could you please clarify the reason for closing this?
The issue is still reproducible for me on Codex 0.154.0. In particular, "SSH_CONNECTION=1 codex" makes "/copy" correctly reach the attached SSH client's clipboard, while normal startup in the same persistent tmux session sends it to the host clipboard instead.
If this is a duplicate or considered expected behavior, could you point me to the relevant issue, documentation, or intended solution? Thanks!
radlinsky commentedon Sep 14, 2026
Sorry to hear about your wife, that sounds rough :(
I may be misunderstanding your source control suggestion. I use SSH so I can work on projects on my desktop from mobile devices.
/copyis for transient output I want on the client device (e.g., multi-line CLI commands or formatted tables that I want to paste somewhere else.)I wouldn't want to commit that kind of temporary output to a Git repository, so source control doesn't really replace the clipboard use case I'm reporting here.
fcoury-oai commentedon Sep 14, 2026
Not sure if you're gonna like the clarification but I closed it because... Because I fixed it 🙂
Should be coming out with the next release.
radlinsky commentedon Sep 14, 2026
Amazing 🤩 thank you :)