Prevent opening a new Tab in a saved session #23055

Closed
opened 2026-01-31 08:31:03 +00:00 by claunia · 6 comments
Owner

Originally created by @foxtrottNB on GitHub (Mar 24, 2025).

Description of the new feature

  • create a session with some tabs
    Image

  • configure WT so the session gets safed
    Image

  • close WT

  • open a new WT instance

Behavior
Image

Expected Behavior
Image

I do not need the additional new Tab, just all tabs that were safed from the old session.

i am using : Microsoft.WindowsTerminal.Preview 1.23.10732.0

Proposed technical implementation details

No response

Originally created by @foxtrottNB on GitHub (Mar 24, 2025). ### Description of the new feature - create a session with some tabs ![Image](https://github.com/user-attachments/assets/63e00681-aaad-48c0-b810-dcf180045c58) - configure WT so the session gets safed ![Image](https://github.com/user-attachments/assets/cfbe84fe-fae1-42ff-b88f-b7a77e496722) - close WT - open a new WT instance Behavior ![Image](https://github.com/user-attachments/assets/10db21e2-4255-464c-b446-b5771d294273) Expected Behavior ![Image](https://github.com/user-attachments/assets/c9ecd663-e716-4ea6-84f0-112902f3b438) I do not need the additional new Tab, just all tabs that were safed from the old session. i am using : Microsoft.WindowsTerminal.Preview 1.23.10732.0 ### Proposed technical implementation details _No response_
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 08:31:03 +00:00
Author
Owner

@foxtrottNB commented on GitHub (Mar 24, 2025):

I tested it with opening WT from the Tasbar and from startmenue, both have the same behavior

@foxtrottNB commented on GitHub (Mar 24, 2025): I tested it with opening WT from the Tasbar and from startmenue, both have the same behavior
Author
Owner

@zadjii-msft commented on GitHub (Mar 26, 2025):

I'm guessing this is a weird interaction with "elevate": true and your default profile. Could you share your settings.json file/?

@zadjii-msft commented on GitHub (Mar 26, 2025): I'm guessing this is a weird interaction with `"elevate": true` and your default profile. Could you share your [settings.json file](https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file)/?
Author
Owner

@foxtrottNB commented on GitHub (Apr 8, 2025):

Sorry for late response, just saw the request for the configfile...

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema-preview",
    "actions": 
    [
        {
            "command": "paste",
            "id": "User.paste"
        },
        {
            "command": 
            {
                "action": "copy",
                "singleLine": false
            },
            "id": "User.copy.644BA8F2"
        },
        {
            "command": "find",
            "id": "User.find"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "id": "User.splitPane.A6751878"
        }
    ],
    "alwaysShowNotificationIcon": false,
    "centerOnLaunch": true,
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "experimental.enableColorSelection": false,
    "firstWindowPreference": "persistedWindowLayout",
    "initialCols": 200,
    "initialRows": 50,
    "keybindings": 
    [
        {
            "id": "User.paste",
            "keys": "ctrl+v"
        },
        {
            "id": "User.find",
            "keys": "ctrl+shift+f"
        },
        {
            "id": "User.copy.644BA8F2",
            "keys": "ctrl+c"
        },
        {
            "id": "User.splitPane.A6751878",
            "keys": "alt+shift+d"
        }
    ],
    "language": "en-US",
    "minimizeToNotificationArea": false,
    "newTabMenu": 
    [
        {
            "type": "remainingProfiles"
        }
    ],
    "profiles": 
    {
        "defaults": 
        {
            "backgroundImage": "D:\\Anwendungsdaten\\Windows\\Wallpaper\\Web\\671306.jpg",
            "colorScheme": "One Half Dark",
            "elevate": true,
            "font": 
            {
                "face": "CaskaydiaCove Nerd Font"
            },
            "padding": "20",
            "scrollbarState": "always"
        },
        "list": 
        [
            {
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore",
                "suppressApplicationTitle": false
            },
            {
                "colorScheme": "Tango Dark",
                "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell"
            },
            {
                "commandline": "%SystemRoot%\\System32\\cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "Eingabeaufforderung"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
            {
                "guid": "{426f5b3d-50b2-5751-a6d4-bbc4402594c4}",
                "hidden": false,
                "name": "Developer Command Prompt for VS 2022",
                "source": "Windows.Terminal.VisualStudio"
            },
            {
                "guid": "{16c1522a-7be9-58df-91fd-5dc5df451dc1}",
                "hidden": false,
                "name": "Developer PowerShell for VS 2022",
                "source": "Windows.Terminal.VisualStudio"
            }
        ]
    },
    "schemes": [],
    "themes": [],
    "useAcrylicInTabRow": true,
    "windowingBehavior": "useAnyExisting"
}
@foxtrottNB commented on GitHub (Apr 8, 2025): Sorry for late response, just saw the request for the configfile... ```json { "$help": "https://aka.ms/terminal-documentation", "$schema": "https://aka.ms/terminal-profiles-schema-preview", "actions": [ { "command": "paste", "id": "User.paste" }, { "command": { "action": "copy", "singleLine": false }, "id": "User.copy.644BA8F2" }, { "command": "find", "id": "User.find" }, { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "id": "User.splitPane.A6751878" } ], "alwaysShowNotificationIcon": false, "centerOnLaunch": true, "copyFormatting": "none", "copyOnSelect": false, "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "experimental.enableColorSelection": false, "firstWindowPreference": "persistedWindowLayout", "initialCols": 200, "initialRows": 50, "keybindings": [ { "id": "User.paste", "keys": "ctrl+v" }, { "id": "User.find", "keys": "ctrl+shift+f" }, { "id": "User.copy.644BA8F2", "keys": "ctrl+c" }, { "id": "User.splitPane.A6751878", "keys": "alt+shift+d" } ], "language": "en-US", "minimizeToNotificationArea": false, "newTabMenu": [ { "type": "remainingProfiles" } ], "profiles": { "defaults": { "backgroundImage": "D:\\Anwendungsdaten\\Windows\\Wallpaper\\Web\\671306.jpg", "colorScheme": "One Half Dark", "elevate": true, "font": { "face": "CaskaydiaCove Nerd Font" }, "padding": "20", "scrollbarState": "always" }, "list": [ { "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "hidden": false, "name": "PowerShell", "source": "Windows.Terminal.PowershellCore", "suppressApplicationTitle": false }, { "colorScheme": "Tango Dark", "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "hidden": false, "name": "Windows PowerShell" }, { "commandline": "%SystemRoot%\\System32\\cmd.exe", "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "hidden": false, "name": "Eingabeaufforderung" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" }, { "guid": "{426f5b3d-50b2-5751-a6d4-bbc4402594c4}", "hidden": false, "name": "Developer Command Prompt for VS 2022", "source": "Windows.Terminal.VisualStudio" }, { "guid": "{16c1522a-7be9-58df-91fd-5dc5df451dc1}", "hidden": false, "name": "Developer PowerShell for VS 2022", "source": "Windows.Terminal.VisualStudio" } ] }, "schemes": [], "themes": [], "useAcrylicInTabRow": true, "windowingBehavior": "useAnyExisting" } ```
Author
Owner

@foxtrottNB commented on GitHub (Apr 11, 2025):

Can we reopen this issue please?

@foxtrottNB commented on GitHub (Apr 11, 2025): Can we reopen this issue please?
Author
Owner

@zadjii-msft commented on GitHub (Apr 15, 2025):

Yep, this is /dup #14932

@zadjii-msft commented on GitHub (Apr 15, 2025): Yep, this is /dup #14932
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Apr 15, 2025):

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 (Apr 15, 2025): 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#23055