Skip to content

[Preview] "compact" tabs setting is only applied to tabs when the config is reloaded #6570

@TBBle

Description

@TBBle

[Linking: microsoft/microsoft-ui-xaml#2711]

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.329]
Windows Terminal version (if applicable): 1.1.1671.0 (Preview)

Steps to reproduce

  • Grab the new Windows Terminal Preview off the MS Store.
  • Given a config like this:
  "alwaysShowTabs": false, // true also replicates the issue
  "showTabsInTitlebar": false, // true also replicates the issue
  "tabWidthMode": "compact",
  • Launch Terminal Preview
  • No tabs are visible
  • Control-Shift-T to open a new tab
  • (!) Two tabs are visible, their titles are visible, ala "tabWidthMode": "titleLength"
  • Control Tab back and forth, the titles remain visible
  • Open the config file, and save it without changes. (Ctrl-, Ctrl-s, or Ctrl-, :wq as you prefer)
  • Active tab unchanged, the other tab is now compacted down to its icon.
  • Control Tab back and forth, only the active tab shows its title.

... And now it gets weird

  • Open a new tab
  • Three tabs are visible, the third one is active and shows its title, the other two compacted.
  • Switch tabs with Control-Tab
  • (!) The third tab's title remains visible, the active tab's title is also now visible.

image

  • Switch back to the third tab with Shift-Control-Tab
  • Third (active) tab's title is visible, the other tabs are now compacted.
  • Switch back with to the first tab with Control-Tab
  • Open the config file, and save it without changes.
  • Active tab unchanged, the other tab is now compacted down to its icon.

Expected behavior

"compact" mode applies to tabs created since the config file was last saved.

Actual behavior

"compact" mode applies only to tabs open when the config file was last saved.


This took a while to test. I kept launch Windows Terminal by muscle memory. -_-

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Tracking-ExternalThis bug isn't resolved, but it's following an external workitem.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions