Skip to content

🔁 Terminal panel resizing causes repeated or duplicate output rendering #247385

@abedin-bd

Description

@abedin-bd

Bug Description

When resizing the integrated terminal panel in VS Code (by dragging the top edge up/down), log output from running scripts appears to be re-printed or duplicated unexpectedly.

However, if the user simply clicks the small “Restore Panel Size” arrow (in the top-right of the terminal), the issue does not occur — output remains clean.

This suggests the terminal is re-flushing buffer or misrendering logs during manual resize operations.


Steps to Reproduce

  1. Open any workspace with an integrated terminal
  2. Run the following long-running script:
    import time
    for i in range(10):
        print(f"Log entry: {i}")
        time.sleep(1)
  3. While the script is running, drag the terminal panel height up and down
  4. Observe that lines repeat or redraw multiple times

🔁 Now try this instead:

  • Click the “Restore Panel Size” arrow button in the terminal header
  • The logs do not repeat, and output stays clean

Expected Behavior

  • Resizing terminal should not cause duplicate output
  • Log output should be flushed only once per execution

Actual Behavior

  • Output appears to repeat or re-render when resizing panel
  • Clicking “Restore Panel Size” avoids the issue

Environment

  • VS Code Version: 1.88.x (or latest)
  • OS: Windows 10/11
  • Shells Tested: PowerShell, CMD
  • Extensions: Tested with all disabled
  • Python Version: [your Python version here]

Impact

This issue makes terminal logs noisy, especially during background script execution, and can be misleading during debugging or output analysis.

Please investigate this UI interaction and its effect on stdout handling during terminal redraws.

Metadata

Metadata

Assignees

Labels

terminal-conptyIntegrated terminal issues related to the ConPTY backendupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions