"Open windows from a previous session" not working due to session not being saved at exit #22858

Open
opened 2026-01-31 08:25:26 +00:00 by claunia · 0 comments
Owner

Originally created by @inertquartet on GitHub (Feb 6, 2025).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.23.10353.0 (Preview) / 1.24.352.0 (Canary

Windows build number

Other Software

No response

Steps to reproduce

  1. Install Windows Terminal Preview or Windows Terminal Canary
  2. Launch Windows Terminal Preview/Canary
  3. Launch Settings and set Startup > When Terminal starts to Open windows from a previous session
  4. Open up one or more additional tabs/windows
  5. (Optional) Do things in any of the open tabs/windows
  6. Close Windows Terminal Preview/Canary using the Close (X) window button or "Close all windows" from the command palette
  7. Relaunch Windows Terminal Preview/Canary

Expected Behavior

Previously opened tabs/windows are restored, including previous session history for each

Actual Behavior

Windows Terminal opens a single window with a single tab and launches a new instance of my default profile without any session history from the previous instance.

Originally created by @inertquartet on GitHub (Feb 6, 2025). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.23.10353.0 (Preview) / 1.24.352.0 (Canary ### Windows build number [Environment]::OSVersion ### Other Software _No response_ ### Steps to reproduce 1. Install Windows Terminal Preview or Windows Terminal Canary 2. Launch Windows Terminal Preview/Canary 3. Launch Settings and set **Startup** > **When Terminal starts** to _Open windows from a previous session_ 4. Open up one or more additional tabs/windows 5. (Optional) Do things in any of the open tabs/windows 6. Close Windows Terminal Preview/Canary using the Close (X) window button or "Close all windows" from the command palette 7. Relaunch Windows Terminal Preview/Canary ### Expected Behavior Previously opened tabs/windows are restored, including previous session history for each ### Actual Behavior Windows Terminal opens a single window with a single tab and launches a new instance of my default profile without any session history from the previous instance.
claunia added the Needs-TriageIssue-BugIn-PRProduct-TerminalArea-Windowing labels 2026-01-31 08:25:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22858