Text selection disappears on mouse release in VS Code integrated terminal after upgrading from 0.116.0 to 0.117.0

Resolved 💬 4 comments Opened Mar 29, 2026 by xukp20 Closed Mar 29, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

codex-cli 0.117.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4

What platform is your computer?

Linux 5.4.0-144-generic x86_64 x86_64

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

VS Code integrated terminal 1.112.0 TERM_PROGRAM=vscode TERM=xterm-256color No tmux / screen / zellij

What issue are you seeing?

After upgrading Codex CLI from 0.116.0 to 0.117.0, I can no longer reliably select text in the Codex transcript when running inside the VS Code
integrated terminal.

This affects both my own previous prompts and the assistant replies already rendered in the TUI.

Observed behavior in 0.117.0:

  • I can drag with the left mouse button and briefly see a selection.
  • As soon as I release the mouse button, the selection disappears.
  • The only way I can copy is to keep holding the left mouse button and right-click before releasing.
  • If I release first, the selection is cleared immediately.

This did not happen for me on 0.116.0 in the same VS Code terminal setup.

There is no explicit runtime error message. It looks like a terminal interaction / redraw regression.

What steps can reproduce the bug?

  1. Open the VS Code integrated terminal on Linux.
  2. Run codex using Codex CLI 0.117.0.
  3. Start or resume a normal conversation so that the transcript contains visible prompts and replies.
  4. Try to select any previously rendered text in the Codex transcript with the mouse.
  5. Release the left mouse button.

Observed result:
The selection disappears immediately on mouse release.

Extra detail:
If I keep holding the left mouse button and right-click to copy before releasing, copying works. If I release first, the selection is cleared.

Regression:
The same workflow worked for me on 0.116.0.

What is the expected behavior?

Text selected in the Codex transcript should remain selected after mouse release so it can be copied normally from the VS Code integrated terminal.

Additional information

I compared 0.116.0 and 0.117.0 locally and verified that this is a regression.

I also tried these workarounds, but neither fixed the issue in my environment:

  • disabling terminal title output with [tui] terminal_title = []
  • disabling app-server TUI with [features] tui_app_server = false

So in my setup, the problem is still reproducible even after trying both.

Environment details:

  • VS Code integrated terminal
  • TERM_PROGRAM=vscode
  • TERM_PROGRAM_VERSION=1.112.0
  • TERM=xterm-256color

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #16065

Powered by Codex Action

xukp20 · 5 months ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. * More and more UI issues with each update. #16065 _Powered by Codex Action_

I reviewed the suggested duplicate #16065, but I do not think it is the same issue.

My issue is specifically about the Codex CLI running in the VS Code integrated terminal on Linux, where transcript text selection disappears immediately on mouse release after upgrading from 0.116.0 to 0.117.0.

#16065 appears to be about the Codex App on macOS and describes broader UI issues (cursor / drag area / sidebar right-click behavior), so the environment and product surface look different.

etraut-openai contributor · 5 months ago

I'm not able to repro the problem. Is it possible that something else changed on your system? Can you verify that when you downgrade back to 0.116.0, the problem goes away?

xukp20 · 5 months ago

I re-tested this by downgrading to 0.116.0 in the same VS Code integrated terminal environment, and I can reproduce the same selection behavior there as well.

So my original report that this was introduced specifically in 0.117.0 was incorrect.

At this point this does not appear to be a 0.116.0 -> 0.117.0 regression in Codex CLI. It is more likely something specific to my local environment / VS Code terminal setup.

Closing this issue to avoid sending maintainers in the wrong direction. If I can later isolate a Codex-specific repro, I can open a new issue with a cleaner report.