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
- Start copilot in any directory
- Send many messages back and forth until the conversation history is long
- 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.