microsoft / microsoft/terminal

Window width resets to ~153 columns after minimize/restore when width is smaller

Open
#20,177 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Needs-Attention Needs-Triage
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.24.10921.0

### Windows build number

10.0.26200.0

### Other Software

_No response_

### Steps to reproduce

1. Open Windows Terminal
2. Resize the window to a width smaller than ~153 columns (for example, ~100 columns)
(can be verified using `tput cols` in bash or similar command)
3. Minimize the window using:
- the minimize button (-), OR
- clicking the app icon on the taskbar
4. Restore the window

### Expected Behavior

The window should restore to the same width it had before being minimized, preserving the number of columns.

### Actual Behavior

This issue occurs when minimizing either via the minimize button (-) or by clicking the application icon on the taskbar.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce on Windows Terminal 1.24.10921.0 with Windows build 10.0.26200.0, using a window narrower than about 153 columns and both reported minimize methods. Trace the window minimize/restore handling and verify that restoring preserves the pre-minimize column width, such as approximately 100 columns.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.