wt split-pane (multiple copies) seems to have occasional focus issues #9133

Open
opened 2026-01-31 01:46:50 +00:00 by claunia · 0 comments
Owner

Originally created by @mfeemster on GitHub (Jun 19, 2020).

Originally assigned to: @zadjii-msft on GitHub.

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.

Originally created by @mfeemster on GitHub (Jun 19, 2020). Originally assigned to: @zadjii-msft on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9133