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

Open
opened 2026-01-30 22:36:45 +00:00 by claunia · 0 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:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1799