Window is restored after each computer unlocking #20428

Open
opened 2026-01-31 07:13:33 +00:00 by claunia · 0 comments
Owner

Originally created by @ygoe on GitHub (Aug 30, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.22621.0

Other Software

No response

Steps to reproduce

  1. Enable the setting "New instance behaviour": "Add to most recently opened window on this desktop"
  2. Open a terminal window
  3. Minimise it
  4. Lock the computer
  5. Unlock the computer

Expected Behavior

The minimised window doesn't move and stays where it is, minimised.

Actual Behavior

The Terminal window is now restored and visible on my screen after unlocking. Every time.

I suspect the mentioned setting has something to do with it. I could only observe this after setting it. I did this to reduce the number of windows for multiple long-running background console applications. Other than that, it's a normal and fresh Windows 11 setup with all hardware drivers, including AMD.

I also suspected a scheduled task to be run as console application after locking or unlocking the computer. That might explain why the Terminal window gets restored. After disabling all of them the behaviour remains though. So even if it's caused by this or not, the behaviour is still undesired. The Terminal must be able to remember and keep its window state unless the user interacts with it.

Originally created by @ygoe on GitHub (Aug 30, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.22621.0 ### Other Software _No response_ ### Steps to reproduce 1. Enable the setting "New instance behaviour": "Add to most recently opened window on this desktop" 2. Open a terminal window 3. Minimise it 4. Lock the computer 5. Unlock the computer ### Expected Behavior The minimised window doesn't move and stays where it is, minimised. ### Actual Behavior The Terminal window is now restored and visible on my screen after unlocking. Every time. I suspect the mentioned setting has something to do with it. I could only observe this after setting it. I did this to reduce the number of windows for multiple long-running background console applications. Other than that, it's a normal and fresh Windows 11 setup with all hardware drivers, including AMD. I also suspected a scheduled task to be run as console application after locking or unlocking the computer. That might explain why the Terminal window gets restored. After disabling all of them the behaviour remains though. So even if it's caused by this or not, the behaviour is still undesired. The Terminal must be able to remember and keep its window state unless the user interacts with it.
claunia added the Resolution-By-DesignNeeds-TriageIssue-Bug labels 2026-01-31 07:13:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20428