Skip to content

Window Resizing Causes Duplicate Session History #1804

@Connor-McMillin

Description

@Connor-McMillin

Describe the bug

When the terminal is resized while copilot cli is running it produces duplicate output to the session history. The duplication happens for every resizing event. So for example if the terminal starts maximized and then it gets restored down and maximized again there will now be 3 copies of the session history (1 for the original first printing, 1 for sizing down, and 1 for sizing back up). This makes it very hard to see previous answers if you've done any screen resizing while in the middle of a copilot session which happens often for me

Affected version

GitHub Copilot CLI 0.0.420

Steps to reproduce the behavior

  1. Launch copilot
  2. Resize the screen
  3. Scroll up to see duplicate output
  4. You can repeat 2 and 3 any number of times to continue seeing additional duplicate output

Initial Copilot load (no duplication)
Image

Screen resized once and we scroll up to see the original output is now duplicated once for a total of 2 sets of output
Image

Screen resized 2 more times (total of 3 times) and scroll up to see the original output is now seen 4 times (1 original + 3 total resizes)
Image

Windows Terminal repro (3 resizes)

Image

Expected behavior

Screen resize should not change or add to the contents of the session history. It should only reformat the history to fit the new terminal size

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions