Splitting pane does not load theme when opening TUI #23751

Closed
opened 2026-01-31 08:51:29 +00:00 by claunia · 5 comments
Owner

Originally created by @Joe-Zer0 on GitHub (Oct 24, 2025).

Windows Terminal version

1.23.12811.0

Windows build number

10.0.26100.0

Other Software

I believe the issue will happen with any TUI. But I tested it with the following two:
helix 25.07.1 (92ecec0a)
gitui 0.27.0 2025-01-14 (99f6967)

Steps to reproduce

Run one of the following commands wt sp -d $pwd hx . or wt sp -d $pwd gitui. The background of the terminal is black instead of the themes background color. In helix this results in a black border around the app. In gitui, the entire background is black.

I'm assuming opening a split pane straight into a tui never loads the windows terminal theme.

Expected Behavior

The theme should be loaded and the background of the new pane should be the color specified in the theme.

Actual Behavior

The background is black.

Originally created by @Joe-Zer0 on GitHub (Oct 24, 2025). ### Windows Terminal version 1.23.12811.0 ### Windows build number 10.0.26100.0 ### Other Software I believe the issue will happen with any TUI. But I tested it with the following two: helix 25.07.1 (92ecec0a) gitui 0.27.0 2025-01-14 (99f6967) ### Steps to reproduce Run one of the following commands `wt sp -d $pwd hx .` or `wt sp -d $pwd gitui`. The background of the terminal is black instead of the themes background color. In helix this results in a black border around the app. In gitui, the entire background is black. I'm assuming opening a split pane straight into a tui never loads the windows terminal theme. ### Expected Behavior The theme should be loaded and the background of the new pane should be the color specified in the theme. ### Actual Behavior The background is black.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:51:29 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 24, 2025):

Hmm. This might be expected, depending on a couple of factors.

Can you share your settings.json file and point out which theme you're hoping to see applied/?

@DHowett commented on GitHub (Oct 24, 2025): Hmm. This _might_ be expected, depending on a couple of factors. Can you share your `settings.json` file and point out which theme you're hoping to see applied/?
Author
Owner

@Joe-Zer0 commented on GitHub (Oct 24, 2025):

I'm running this command from PowerShell core (my default shell). I'm hoping to have the PowerShell core theme be applied, which is "Nord Night". Thanks in advance for any help.

Not sure what the relevant part are, so I'm just dumping my whole settings.json.

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": 
    [
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "id": "User.splitPane.A6751878"
        },
        {
            "command": "find",
            "id": "User.find"
        },
        {
            "command": "paste",
            "id": "User.paste"
        },
        {
            "command": 
            {
                "action": "copy",
                "singleLine": false
            },
            "id": "User.copy.644BA8F2"
        }
    ],
    "alwaysShowTabs": false,
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "disableAnimations": false,
    "keybindings": 
    [
        {
            "id": "User.paste",
            "keys": "ctrl+v"
        },
        {
            "id": "User.find",
            "keys": "ctrl+shift+f"
        },
        {
            "id": "User.splitPane.A6751878",
            "keys": "alt+shift+d"
        },
        {
            "id": "User.copy.644BA8F2",
            "keys": "ctrl+c"
        }
    ],
    "launchMode": "maximized",
    "newTabMenu": 
    [
        {
            "type": "remainingProfiles"
        }
    ],
    "profiles": 
    {
        "defaults": 
        {
            "bellStyle": "none",
            "font": 
            {
                "face": "JetBrains Mono",
                "size": 11
            },
            "startingDirectory": "C:/"
        },
        "list": 
        [
            {
                "colorScheme": "Nord Night",
                "commandline": "pwsh -NoLogo",
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore"
            },
            {
                "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": "Command Prompt"
            },
            {
                "guid": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}",
                "hidden": false,
                "icon": "C:\\myuser\\images\\arch.png",
                "name": "Arch",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
                "hidden": true,
                "name": "Ubuntu",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "guid": "{51855cb2-8cce-5362-8f54-464b92b32386}",
                "hidden": false,
                "name": "Ubuntu",
                "source": "CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc"
            }
        ]
    },
    "schemes": 
    [
        {
            "background": "#212121",
            "black": "#000000",
            "blue": "#82AAFF",
            "brightBlack": "#545454",
            "brightBlue": "#82AAFF",
            "brightCyan": "#89DDFF",
            "brightGreen": "#C3E88D",
            "brightPurple": "#C792EA",
            "brightRed": "#FF5370",
            "brightWhite": "#FFFFFF",
            "brightYellow": "#FFCB6B",
            "cursorColor": "#FFFFFF",
            "cyan": "#89DDFF",
            "foreground": "#EEFFFF",
            "green": "#C3E88D",
            "name": "Material Darker",
            "purple": "#C792EA",
            "red": "#FF5370",
            "selectionBackground": "#FFFFFF",
            "white": "#FFFFFF",
            "yellow": "#FFCB6B"
        },
        {
            "background": "#2E3440",
            "black": "#3B4252",
            "blue": "#81A1C1",
            "brightBlack": "#4C566A",
            "brightBlue": "#81A1C1",
            "brightCyan": "#8FBCBB",
            "brightGreen": "#A3BE8C",
            "brightPurple": "#B48EAD",
            "brightRed": "#BF616A",
            "brightWhite": "#ECEFF4",
            "brightYellow": "#EBCB8B",
            "cursorColor": "#81A1C1",
            "cyan": "#88C0D0",
            "foreground": "#D8DEE9",
            "green": "#A3BE8C",
            "name": "Nord",
            "purple": "#B48EAD",
            "red": "#BF616A",
            "selectionBackground": "#434C5E",
            "white": "#E5E9F0",
            "yellow": "#EBCB8B"
        },
        {
            "background": "#252933",
            "black": "#0D0F12",
            "blue": "#5E81AC",
            "brightBlack": "#4C566A",
            "brightBlue": "#5E81AC",
            "brightCyan": "#88C0D0",
            "brightGreen": "#A3BE8C",
            "brightPurple": "#B48EAD",
            "brightRed": "#BF616A",
            "brightWhite": "#C0C5CF",
            "brightYellow": "#EBCB8B",
            "cursorColor": "#4C566A",
            "cyan": "#88C0D0",
            "foreground": "#C0C5CF",
            "green": "#A3BE8C",
            "name": "Nord Night",
            "purple": "#B48EAD",
            "red": "#BF616A",
            "selectionBackground": "#434C5E",
            "white": "#C0C5CF",
            "yellow": "#EBCB8B"
        }
    ],
    "themes": [],
    "useAcrylicInTabRow": false,
    "windowingBehavior": "useExisting"
}
@Joe-Zer0 commented on GitHub (Oct 24, 2025): I'm running this command from PowerShell core (my default shell). I'm hoping to have the PowerShell core theme be applied, which is "Nord Night". Thanks in advance for any help. Not sure what the relevant part are, so I'm just dumping my whole settings.json. ``` { "$help": "https://aka.ms/terminal-documentation", "$schema": "https://aka.ms/terminal-profiles-schema", "actions": [ { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "id": "User.splitPane.A6751878" }, { "command": "find", "id": "User.find" }, { "command": "paste", "id": "User.paste" }, { "command": { "action": "copy", "singleLine": false }, "id": "User.copy.644BA8F2" } ], "alwaysShowTabs": false, "copyFormatting": "none", "copyOnSelect": false, "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "disableAnimations": false, "keybindings": [ { "id": "User.paste", "keys": "ctrl+v" }, { "id": "User.find", "keys": "ctrl+shift+f" }, { "id": "User.splitPane.A6751878", "keys": "alt+shift+d" }, { "id": "User.copy.644BA8F2", "keys": "ctrl+c" } ], "launchMode": "maximized", "newTabMenu": [ { "type": "remainingProfiles" } ], "profiles": { "defaults": { "bellStyle": "none", "font": { "face": "JetBrains Mono", "size": 11 }, "startingDirectory": "C:/" }, "list": [ { "colorScheme": "Nord Night", "commandline": "pwsh -NoLogo", "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "hidden": false, "name": "PowerShell", "source": "Windows.Terminal.PowershellCore" }, { "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": "Command Prompt" }, { "guid": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}", "hidden": false, "icon": "C:\\myuser\\images\\arch.png", "name": "Arch", "source": "Windows.Terminal.Wsl" }, { "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": true, "name": "Ubuntu", "source": "Windows.Terminal.Wsl" }, { "guid": "{51855cb2-8cce-5362-8f54-464b92b32386}", "hidden": false, "name": "Ubuntu", "source": "CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc" } ] }, "schemes": [ { "background": "#212121", "black": "#000000", "blue": "#82AAFF", "brightBlack": "#545454", "brightBlue": "#82AAFF", "brightCyan": "#89DDFF", "brightGreen": "#C3E88D", "brightPurple": "#C792EA", "brightRed": "#FF5370", "brightWhite": "#FFFFFF", "brightYellow": "#FFCB6B", "cursorColor": "#FFFFFF", "cyan": "#89DDFF", "foreground": "#EEFFFF", "green": "#C3E88D", "name": "Material Darker", "purple": "#C792EA", "red": "#FF5370", "selectionBackground": "#FFFFFF", "white": "#FFFFFF", "yellow": "#FFCB6B" }, { "background": "#2E3440", "black": "#3B4252", "blue": "#81A1C1", "brightBlack": "#4C566A", "brightBlue": "#81A1C1", "brightCyan": "#8FBCBB", "brightGreen": "#A3BE8C", "brightPurple": "#B48EAD", "brightRed": "#BF616A", "brightWhite": "#ECEFF4", "brightYellow": "#EBCB8B", "cursorColor": "#81A1C1", "cyan": "#88C0D0", "foreground": "#D8DEE9", "green": "#A3BE8C", "name": "Nord", "purple": "#B48EAD", "red": "#BF616A", "selectionBackground": "#434C5E", "white": "#E5E9F0", "yellow": "#EBCB8B" }, { "background": "#252933", "black": "#0D0F12", "blue": "#5E81AC", "brightBlack": "#4C566A", "brightBlue": "#5E81AC", "brightCyan": "#88C0D0", "brightGreen": "#A3BE8C", "brightPurple": "#B48EAD", "brightRed": "#BF616A", "brightWhite": "#C0C5CF", "brightYellow": "#EBCB8B", "cursorColor": "#4C566A", "cyan": "#88C0D0", "foreground": "#C0C5CF", "green": "#A3BE8C", "name": "Nord Night", "purple": "#B48EAD", "red": "#BF616A", "selectionBackground": "#434C5E", "white": "#C0C5CF", "yellow": "#EBCB8B" } ], "themes": [], "useAcrylicInTabRow": false, "windowingBehavior": "useExisting" } ```
Author
Owner

@DHowett commented on GitHub (Oct 24, 2025):

Alright! So this is maybe a bit unintuitive. Since Terminal supports launching applications directly (wt foo) and having applications launched into it (like, running stuff from the start menu or file explorer). In both of those cases, we can't really guess what profile to use.

As a brief aside: the "defaultProfile" really only applies if you launch terminal (or use nt, sp; anything that makes a new pane) with no arguments or click the + button on the toolbar. This was probably an error in our mental model which we introduced back in version 0.1. We probably should have separated out "tasks" (things to launch) and "appearances/profiles/behaviors" (how they work, what they look like, etc.). Unfortunately, we have what we have...

Anyway. For all other types of launch, we do a few things to figure out how it should look.

  • If the commandline matches any of your other profiles exactly, it will load up that profile
  • If the commandline looks like it could match any other profile, it will load up that one instead
  • After we run out of other options, we fall back to the values specified in profiles.defaults or the "Defaults" section of your Settings

Now, you can always tell terminal exactly which profile to load up by passing -p ProfileName:

wt sp -p PowerShell whatever_you_want_to_run ; sp -p PowerShell other_thing_to_run

TL;DR: use -p foo or move your color scheme to defaults

@DHowett commented on GitHub (Oct 24, 2025): _Alright!_ So this is maybe a bit unintuitive. Since Terminal supports launching applications directly (`wt foo`) and having applications launched _into_ it (like, running stuff from the start menu or file explorer). In both of those cases, we can't really guess what profile to use. As a brief aside: the "defaultProfile" really only applies if you launch terminal (or use `nt`, `sp`; anything that makes a new pane) with no arguments or click the `+` button on the toolbar. This was probably an error in our mental model which we introduced back in version 0.1. We probably should have separated out "tasks" (things to launch) and "appearances/profiles/behaviors" (how they work, what they look like, etc.). Unfortunately, we have what we have... Anyway. For all other types of launch, we do a few things to figure out how it should look. - If the commandline matches any of your other profiles exactly, it will load up that profile - If the commandline _looks like it could match_ any other profile, it will load up that one instead - After we run out of other options, we fall back to the values specified in `profiles.defaults` or the "Defaults" section of your Settings Now, you can always tell terminal exactly which profile to load up by passing `-p ProfileName`: ``` wt sp -p PowerShell whatever_you_want_to_run ; sp -p PowerShell other_thing_to_run ``` TL;DR: use `-p foo` or move your color scheme to `defaults`
Author
Owner

@Joe-Zer0 commented on GitHub (Oct 24, 2025):

Thank you very much! Both -p flag and adding a colorScheme to my profiles.defaults are doing exactly what I was looking for. Personally I'll opt for using the colorScheme in the defaults section. Thanks again for such a quick answer!

@Joe-Zer0 commented on GitHub (Oct 24, 2025): Thank you very much! Both -p flag and adding a colorScheme to my profiles.defaults are doing exactly what I was looking for. Personally I'll opt for using the colorScheme in the defaults section. Thanks again for such a quick answer!
Author
Owner

@DHowett commented on GitHub (Oct 24, 2025):

Sure thing! Sorry it's not totally ideal. :)

@DHowett commented on GitHub (Oct 24, 2025): Sure thing! Sorry it's not totally ideal. :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23751