You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set "firstWindowPreference": "persistedWindowLayout" in settings.json.
Open 4 PowerShell tabs.
Right-click on two of the tabs and manually set a Custom Title and a Custom Color.
Close Windows Terminal to save the state.
Reopen Windows Terminal.
Expected Behavior
Windows Terminal should restore the session and apply the custom colors and titles to the background tabs silently, without sequentially shifting the visual focus (focusPane) to each tab during the startup process.
Actual Behavior
When restoring a persisted session ("firstWindowPreference": "persistedWindowLayout") that contains tabs with manually modified titles or colors, Windows Terminal does not restore the background tabs silently. Instead, it visually jumps and shifts focus through each tab one by one.
This happens because the state.json file records these manual customizations as a sequence of discrete actions (newTab, setTabColor, renameTab, and explicitly focusPane). During startup, Windows Terminal executes this sequence like a macro, forcefully shifting the visual focus to each tab as it applies the custom title/color.
Because my underlying shell (PowerShell + Oh-My-Posh) currently takes over 1000ms to load per tab, this macro execution becomes painfully visible. The user experiences a jarring, sequential flickering and jumping of the UI from tab to tab for several seconds until the final active tab is reached.
Windows Terminal version
1.23.20211.0
Windows build number
10.0.22631.0
Other Software
No response
Steps to reproduce
"firstWindowPreference": "persistedWindowLayout"insettings.json.Expected Behavior
Windows Terminal should restore the session and apply the custom colors and titles to the background tabs silently, without sequentially shifting the visual focus (
focusPane) to each tab during the startup process.Actual Behavior
When restoring a persisted session (
"firstWindowPreference": "persistedWindowLayout") that contains tabs with manually modified titles or colors, Windows Terminal does not restore the background tabs silently. Instead, it visually jumps and shifts focus through each tab one by one.This happens because the
state.jsonfile records these manual customizations as a sequence of discrete actions (newTab,setTabColor,renameTab, and explicitlyfocusPane). During startup, Windows Terminal executes this sequence like a macro, forcefully shifting the visual focus to each tab as it applies the custom title/color.Because my underlying shell (PowerShell + Oh-My-Posh) currently takes over 1000ms to load per tab, this macro execution becomes painfully visible. The user experiences a jarring, sequential flickering and jumping of the UI from tab to tab for several seconds until the final active tab is reached.
Recording.2026-03-12.121955.mp4