-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Description
Environment
Windows build number: 10.0.18363.0
Windows Terminal version (if applicable): 1.1.1671.0
Any other software? No
Steps to reproduce
Run a command line which opens multiple tabs, and some split panes. Supply a name for each tab using --title.
Example command line:
wt.exe -p "Command Prompt" -d . --title Cmd1 ; split-pane -H -p Cmd -d . ; new-tab -p "Windows PowerShell" -d . --title Posh1 ; new-tab -p "Windows PowerShell" -d . --title Posh2 ; split-pane -H -p "Windows PowerShell" -d . ; split-pane -H -p "Windows PowerShell" -d . ; new-tab -p "Windows PowerShell" -d . --title Posh3 ; split-pane -V -p "Windows PowerShell" -d .
Expected behavior
Each tab gets the name you assigned it.
Actual behavior
Tabs sometimes get the names you supplied, and sometimes not. Since this problem is intermittent, I suspect it's a threading bug. I would guess you are using the same string variable to parse parts of the command line successively and passing each to a thread. The variable is getting clobbered.
Also of note, this is likely the same problem that is causing #6340, because they also describe it happening intermittently.
Thanks.