Bug Report: Option not working? #3468

Closed
opened 2026-01-30 23:22:00 +00:00 by claunia · 4 comments
Owner

Originally created by @zhang-stephen on GitHub (Aug 18, 2019).

Environment

Windows 10 Pro 18956 Insider Preview

Steps to reproduce

The option "closeOnExit" will be invalid with only a tab running, and it could be reproduce with multi-tabs running occationally.

Expected behavior

Fix it

Actual behavior

There is an option named "closeOnExit", but it seems to be invalid after inputting exit command, and the windows would not be closed.

Following content is a part of my configuration file about powershell, it might help you to resolve it.

{
            "startingDirectory": "%USERPROFILE%",
            "guid": "{95e05ea2-6bad-4896-bcdf-a4f96c885cc8}",
            "name": "PowerShell",
            "background": "#002731",
            "colorscheme": "Campbell",
            "historySize": 9001,
            "snapOnInput": true,
            "cursorColor": "#FFFFFF",
            "cursorShape": "bar",
            "commandline": "powershell.exe",
            "fontFace": "Consolas",
            "fontSize": 12,
            "acrylicOpacity": 0.5,
            "useAcrylic": true,
            "closeOnExit": true,
            "padding": "0, 0, 0, 0",
            "icon": "ms-appdata:///roaming/icons/powershell_32px.png"
        }
Originally created by @zhang-stephen on GitHub (Aug 18, 2019). # Environment Windows 10 Pro 18956 Insider Preview # Steps to reproduce The option **"closeOnExit"** will be invalid with only a tab running, and it could be reproduce with multi-tabs running occationally. # Expected behavior Fix it # Actual behavior There is an option named "closeOnExit", but it seems to be invalid after inputting `exit` command, and the windows would not be closed. Following content is a part of my configuration file about powershell, it might help you to resolve it. ```json { "startingDirectory": "%USERPROFILE%", "guid": "{95e05ea2-6bad-4896-bcdf-a4f96c885cc8}", "name": "PowerShell", "background": "#002731", "colorscheme": "Campbell", "historySize": 9001, "snapOnInput": true, "cursorColor": "#FFFFFF", "cursorShape": "bar", "commandline": "powershell.exe", "fontFace": "Consolas", "fontSize": 12, "acrylicOpacity": 0.5, "useAcrylic": true, "closeOnExit": true, "padding": "0, 0, 0, 0", "icon": "ms-appdata:///roaming/icons/powershell_32px.png" } ```
claunia added the Resolution-Duplicate label 2026-01-30 23:22:00 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 19, 2019):

Okay I'm going to need an actual walkthrough of repro steps, and expected/actual behavior. Right now it's really hard to understand what you're doing and what's wrong vs what's expected. For example:

Repro steps

  1. set closeOnExit to true for the "powershell" profile
  2. Open a powershell tab
  3. type exit

Expected Behavior

The tab closes

Actual Behavior

The entire UI hangs.

(if what you're trying to report is exactly what I've described above, then this is a dupe of #2185.)
@zadjii-msft commented on GitHub (Aug 19, 2019): Okay I'm going to need an actual walkthrough of repro steps, and expected/actual behavior. Right now it's really hard to understand what you're doing and what's wrong vs what's expected. For example: ### Repro steps 1. set `closeOnExit` to true for the "powershell" profile 2. Open a powershell tab 3. type exit ### Expected Behavior The tab closes ### Actual Behavior The entire UI hangs. ###### (if what you're trying to report is _exactly_ what I've described above, then this is a dupe of #2185.)
Author
Owner

@zhang-stephen commented on GitHub (Aug 21, 2019):

Okay, you are right, I am confused by this problem
When will you fix it?

@zhang-stephen commented on GitHub (Aug 21, 2019): Okay, you are right, I am confused by this problem When will you fix it?
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 22, 2019):

/dupe #2185

@DHowett-MSFT commented on GitHub (Aug 22, 2019): /dupe #2185
Author
Owner

@ghost commented on GitHub (Aug 22, 2019):

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!

@ghost commented on GitHub (Aug 22, 2019): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3468