Terminal: Window title is inconsistently updated with tab rename

Created on 7 Jul 2020  路  4Comments  路  Source: microsoft/terminal

Environment

Windows build number: 10.0.19041.329
Windows Terminal version (if applicable): d350a8932485f618b1658353a0573ac2422a3c36 and also repros in 1.1.1812.0

Steps to reproduce

  1. Launch Terminal
  2. Create a 2nd tab
  3. Rename the inactive tab to anything, like "bananas"
  4. Switch to the inactive tab
  5. Check the top-level window's title text (e.g., by looking at the label in the ALT+TAB experience)

Expected behavior

I'd expect the top-level window's title text to always match the active tab's title (_runtimeTabText).

Actual behavior

The top-level window's title text is just the default tab title. If you rename the tab while it's the active tab, then the top-level window title is updated... until you switch away from the tab. Once you return back to the tab, the top-level window has returned to the default title for the tab.

This is the console:
image

But this is what ALT+TAB thinks it's titled -- I'd expect it to say "bananas" at the top, not "PowerShell":
image

Area-User Interface Easy Starter Help Wanted Issue-Bug Needs-Tag-Fix Priority-3 Product-Terminal Resolution-Fix-Committed

All 4 comments

We should definitely go audit our event handlers and the stack that carries titles up out of the application to its final termini. Thanks!

Even with this bug fixed, I could see a use case for me where I would like for the custom title tab to overwrite all other titles. Could this be a profile setting, or even better ", a more flexible solution - a little lock icon when renaming the title tab to lock that title to the window title regardless of the number of tabs inside that window/instance? Or even simpler to be able to change the window's title directly and independently from the tab title?

I got confused with lots of ideas 馃槄

I often open a few instances of the terminal each with a few tabs, grouped by e.g.: frontend, backend etc. specific commands so the use case I'm thinking of is labeling the window as one of the above, so when I have ten instances minimized I can quickly see which is which and binary search for the problem.

Sorry for the rant.

@JakubKoralewski You mean something like this?
rename-tab-002

1079, #6600, #6557

If your use case is "one window per environment", then (once this bug is fixed) you could rename the tab for each environment, and the window title should reflect the active tab's title.

Otherwise, there's also #4183 which looks like it's related

:tada:This issue was addressed in #7119, which has now been successfully released as Windows Terminal Preview v1.2.2234.0.:tada:

Handy links:

Was this page helpful?
0 / 5 - 0 ratings