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

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 ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗