Tab name appends the currently executing batch file, and when terminated, it remains as part of the name #1802

Closed
opened 2026-01-30 22:36:48 +00:00 by claunia · 4 comments
Owner

Originally created by @rbeesley on GitHub (Jun 21, 2019).

Environment

Windows build number: 18362.175
Windows Terminal version: 0.2.1703.0

Steps to reproduce

  1. Run a batch file in a cmd shell.
  2. While it is running use ctrl+c to break and then terminate the batch job.
  3. Repeat to continue growing the tab name.

Expected behavior

The tab text will return to just the shell executable name, like C:\WINDOWS\system32\cmd.exe

Actual behavior

The name appends the name of the batch file it is running, but when you terminate and break that process, it doesn't remove the name of the batch file. This causes it to keep appending with each execution.
image

Originally created by @rbeesley on GitHub (Jun 21, 2019). # Environment ```none Windows build number: 18362.175 Windows Terminal version: 0.2.1703.0 ``` # Steps to reproduce 1. Run a batch file in a cmd shell. 2. While it is running use ctrl+c to break and then terminate the batch job. 3. Repeat to continue growing the tab name. # Expected behavior The tab text will return to just the shell executable name, like C:\WINDOWS\system32\cmd.exe # Actual behavior The name appends the name of the batch file it is running, but when you terminate and break that process, it doesn't remove the name of the batch file. This causes it to keep appending with each execution. ![image](https://user-images.githubusercontent.com/3703112/59892495-24969c00-938e-11e9-8ca7-698c65bdbfe3.png)
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-30 22:36:48 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 21, 2019):

Does this happen when you do the same thing in traditional conhost?

@DHowett-MSFT commented on GitHub (Jun 21, 2019): Does this happen when you do the same thing in traditional conhost?
Author
Owner

@rbeesley commented on GitHub (Jun 21, 2019):

It does... Should I log a bug against that through Feedback Hub?

@rbeesley commented on GitHub (Jun 21, 2019): It does... Should I log a bug against that through Feedback Hub?
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 21, 2019):

I think there’s one in the CMD backlog for that. I’ll warn you, though, that CMD is probably not going to be changed unless you’ve managed to find something of significant, stop-the-world business impact.

@DHowett-MSFT commented on GitHub (Jun 21, 2019): I think there’s one in the CMD backlog for that. I’ll warn you, though, that CMD is probably not going to be changed unless you’ve managed to find something of _significant, stop-the-world_ business impact.
Author
Owner

@rbeesley commented on GitHub (Jun 21, 2019):

Understandable.

@rbeesley commented on GitHub (Jun 21, 2019): Understandable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1802