"Open windows from a previous session" executes even if a window is open. #21268

Closed
opened 2026-01-31 07:38:13 +00:00 by claunia · 2 comments
Owner

Originally created by @Tetrapak0 on GitHub (Feb 17, 2024).

Windows Terminal version

1.18.10301.0

Windows build number

10.0.19045.4046

Other Software

No response

Steps to reproduce

  • Open Settings,
  • Find "When Terminal starts" and set it to "Open windows from a previous session"
  • Open a few tabs
  • Open a console program like neovim from the start menu or desktop

Expected Behavior

It should just launch the new window

Actual Behavior

The current session duplicates.

https://github.com/microsoft/terminal/assets/112382253/6ee384d0-9b4f-407c-acc7-fa5f724f5712

Originally created by @Tetrapak0 on GitHub (Feb 17, 2024). ### Windows Terminal version 1.18.10301.0 ### Windows build number 10.0.19045.4046 ### Other Software _No response_ ### Steps to reproduce - Open Settings, - Find "When Terminal starts" and set it to "Open windows from a previous session" - Open a few tabs - Open a console program like neovim from the start menu or desktop ### Expected Behavior It should just launch the new window ### Actual Behavior The current session duplicates. https://github.com/microsoft/terminal/assets/112382253/6ee384d0-9b4f-407c-acc7-fa5f724f5712
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:38:13 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Feb 19, 2024):

I'm gonna dupe this into #16487, which I've been using for tracking everything like this.

You do have a good observation though, about the way it reacts when you launch neovim. That definitely helps narrow down the search space here. Thanks!

/dup #16487

@zadjii-msft commented on GitHub (Feb 19, 2024): I'm gonna dupe this into #16487, which I've been using for tracking everything like this. You do have a good observation though, about the way it reacts when you launch neovim. That definitely helps narrow down the search space here. Thanks! /dup #16487
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Feb 19, 2024):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Feb 19, 2024): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21268