Skip to content

Performance bug: UI refresh lag in long-running tmux sessions (agent still healthy) #19

Description

@ARCJ137442

Summary

When running Codex CLI inside tmux for a long session, the UI refresh becomes noticeably laggy/stuttery, while the agent execution itself continues to run normally.

Environment

  • Runtime context: Termux + tmux
  • Client: Codex CLI (TUI)
  • Time pattern: usually after a long-running session (multiple turns / long streaming usage)

Reproduction (observed)

  1. Launch Codex CLI inside a tmux session.
  2. Keep a long interactive session running (many turns / long streaming output).
  3. Continue interacting and scrolling.
  4. Observe increasing UI repaint lag (delayed refresh / stutter), while agent task execution remains normal.

Actual Behavior

  • TUI refresh becomes slow and less responsive over time in tmux.
  • Agent still processes requests and tools normally (logic path is alive).

Expected Behavior

  • TUI refresh performance should remain stable over long sessions in tmux.

Impact

  • Degraded usability in long-running workflows on Termux/tmux.
  • Operator may think the CLI is stuck, even though backend execution is still healthy.

Notes

  • This appears to be primarily a rendering/perf issue rather than an agent execution issue.
  • Please triage for potential repaint/back-buffer growth or terminal update path inefficiency in long sessions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions