microsoft / microsoft/terminal

Certain tab titles break tab theme when opening a new tab (Windows Legacy theme)

Open
#16,222 1 comment 0 reactions 0 assignees View on GitHub
Area-Theming Issue-Bug Needs-Repro Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.18.2822.0

### Windows build number

10.0.19045.0

### Other Software

_No response_

### Steps to reproduce

On tabs with certain titles, opening a new tab makes the tab bar revert from a light to a black background, which corrects itself when switching to another tab. This requires "Use Windows theme (Legacy)" as the application theme. Other options like tab width mode don't seem to matter, since I could reproduce it with a blank new settings.json just changing the theme.

![wt-new-tab](https://github.com/microsoft/terminal/assets/51795/11d5a36b-7b27-43cf-87b0-9af2cd5ab020)

### Expected Behavior

Proper theme rendering.

### Actual Behavior

Broken theme rendering.

Contributor guide

Open the contributing guide

Research direction

Reproduce the tab-bar color change on Windows Terminal 1.18.2822.0 with the Windows theme (Legacy) setting and a minimal settings.json, using tab titles that trigger the issue. Trace the tab creation and theme-rendering path, then verify that opening a new tab preserves the light theme without requiring a switch to another tab.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.