Skip to content

Status animation makes mouse selection and copying unreliable in GNOME Terminal/VTE #38017

Closed

Description

@jancellor

What version of Codex CLI is running?

codex-cli 0.147.0

What subscription do you have?

Plus

Which model were you using?

Not model-specific.

What platform is your computer?

Ubuntu 24.04.4 LTS, Linux 7.0.0-28-generic x86_64, GNOME Wayland session.

What terminal emulator and version are you using?

GNOME Terminal 3.52.0 using VTE 0.76.0.

What issue are you seeing?

While Codex's animated status indicator is active, mouse selection of static
transcript text usually fails in GNOME Terminal/VTE. The highlight disappears
or never becomes visible while dragging; after releasing the mouse,
Ctrl+Shift+C copies nothing. The selected rows are not changing or scrolling.

Disabling animations makes selection reliable:

[tui]
animations = false

An equivalent rapid-update test does not reproduce in Ghostty.

What steps can reproduce the bug?

  1. In GNOME Terminal, start Codex with animations enabled (the default).
  2. Ask Codex to run sleep 300 and wait for it to complete.
  3. While the status indicator is animating, drag across static text earlier in
    the transcript.
  4. Release the mouse, press Ctrl+Shift+C, and try to paste.
  5. Repeat after setting tui.animations = false and restarting Codex.

What is the expected behavior?

Static transcript text should remain selectable and copyable while the status
animation is running.

Please reduce the status animation refresh rate from 32 ms (~31 Hz) to 100 ms
(10 Hz), or otherwise avoid emitting animation redraws more often than 10 Hz.

Additional information

The status widget schedules animation frames every 32 ms:

PR #2316 changed this interval
directly from 100 ms to 32 ms in August 2025.

A 100 ms interval also has precedent in popular terminal progress libraries:
Rich defaults to 10 refreshes per second,
tqdm defaults to a 0.1-second minimum interval,
and indicatif's official spinner example uses 100 ms.

In a minimal erase-and-rewrite test, selection almost always failed at 32 ms,
remained somewhat unreliable at 60 ms, and was reliable at 100 ms.

The existing VTE report for this behavior is:

A smaller reproducer and the interval measurements above are in:

Related report about the status animation's terminal traffic:

Avoiding redraws when the rendered shimmer has not changed would reduce the
terminal traffic further.

Activity

  1. added
    bug
    CLI
    TUI
    on Aug 11, 2026
  2. github-actions commented on Aug 11, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. etraut-openai commented on Oct 12, 2026

    @etraut-openai
    Contributor

    (response from codex)

    Closing as likely addressed in default fullscreen mode in CLI 0.162.1. Transcript selection is now managed by Codex and retained across live updates (#46732, #46733). Please reopen if animation still clears an active selection in fullscreen; clipboard backend errors should be reported separately.

  4. jancellor commented on Oct 12, 2026

    @jancellor
    Author

    It would only be appropriate to close this issue if scrollback mode is no longer officially supported.

    Is scrollback mode no longer officially supported?

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

    CLITUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions