Skip to content

Terminal rendering enters infinite refresh loop when conversation history is long #1874

@neonid0

Description

@neonid0

Describe the bug

When a session accumulates a large number of messages, the CLI's TUI enters an infinite re-render loop, causing the terminal to flicker/refresh continuously and become unusable. The only recovery is to kill the process.

Affected version

GitHub Copilot CLI 0.0.423.

Steps to reproduce the behavior

  1. Start copilot in any directory
  2. Send many messages back and forth until the conversation history is long
  3. Observe the terminal begins rapidly refreshing/flickering and never stops

Expected behavior

The CLI renders normally regardless of conversation length.

Additional context

Environment:

  • Reproducible on: kitty + zsh (Linux), Alacritty + zsh (macOS)
  • Trigger: Long conversation with many back-and-forth messages
  • Can check configuration on https://github.com/neonid0/.dotfiles

Actual behavior: Terminal enters an infinite refresh/redraw loop and becomes unresponsive.

Workaround: /compact to reduce message history before the loop starts, or Ctrl+C to kill the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions