Pane movement breaks showCloseButton=never #20427

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

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

Windows Terminal version

1.17.11461.0

Windows build number

Version 10.0.19045.3324

Other Software

No response

Steps to reproduce

Add the following to settings.json (in %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json):

"theme": "foo",
"themes": [
  {
    "name": "foo",
    "tab": {
      "showCloseButton": "never"
    }
  }
]

Run in Command Prompt:

wt -M -p "Ubuntu-20.04" ; ^
	split-pane -p "Ubuntu-20.04" ;

Observe that the first tab has an "X" on the right that you can click to close the tab. But, tab.showCloseButton: never should have hidden this "X". The split-pane line is causing this bug. If you remove it, i.e.

wt -M -p "Ubuntu-20.04" ;

then the tab no longer has the "X", as expected

For related discussion:

Expected Behavior

The "X" icon should not be present on a Windows Terminal tab if tab.showCloseButton: never

Actual Behavior

The "X" icon is present on a tab if using split-pane in wt


Edit (lhecker): Any movement between two panes makes the buttons reappear.

Originally created by @regnaio on GitHub (Aug 30, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number Version 10.0.19045.3324 ### Other Software _No response_ ### Steps to reproduce Add the following to `settings.json` (in `%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json`): ```json "theme": "foo", "themes": [ { "name": "foo", "tab": { "showCloseButton": "never" } } ] ``` Run in Command Prompt: ```shell wt -M -p "Ubuntu-20.04" ; ^ split-pane -p "Ubuntu-20.04" ; ``` Observe that the first tab has an "X" on the right that you can click to close the tab. But, `tab.showCloseButton`: `never` should have hidden this "X". The `split-pane` line is causing this bug. If you remove it, i.e. ```shell wt -M -p "Ubuntu-20.04" ; ``` then the tab no longer has the "X", as expected For related discussion: - https://github.com/microsoft/terminal/issues/3335 - https://github.com/microsoft/terminal/pull/13348 ### Expected Behavior The "X" icon should not be present on a Windows Terminal tab if `tab.showCloseButton`: `never` ### Actual Behavior The "X" icon is present on a tab if using `split-pane` in `wt` --- _Edit (lhecker)_: **Any movement between two panes makes the buttons reappear**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20427