Skip to content

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

Closed

Description

@xukp20

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

Activity

  1. added
    bug
    on Mar 29, 2026
  2. added
    CLI
    TUI
    on Mar 29, 2026
  3. github-actions commented on Mar 29, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. xukp20 commented on Mar 29, 2026

    @xukp20
    Author

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

    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.

  5. added
    regression
    and removed
    CLI
    on Mar 29, 2026
  6. etraut-openai commented on Mar 29, 2026

    @etraut-openai
    Contributor

    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?

  7. removed
    regression
    on Mar 29, 2026
  8. xukp20 commented on Mar 29, 2026

    @xukp20
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions