microsoft / microsoft/terminal

A transparent terminal window and cmd.exe window are opened when running a .bat file

Open
#19,269 10 comments 1 reaction 0 assignees View on GitHub
Issue-Bug Needs-Attention Needs-Triage
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.22.12111.0

### Windows build number

10.0.26100.0

### Other Software

_No response_

### Steps to reproduce

Open any .bat (or some .exe) files

### Expected Behavior

Only a windows terminal window is opened and all commands are run in this window.

### Actual Behavior

A transparent terminal window was opened first, then all command were run in cmd.exe in another window.

https://github.com/user-attachments/assets/e9d7d907-11f3-4a41-b3f9-8741842b972b

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior with the reported Windows Terminal and Windows build versions by opening a .bat or .exe file. Trace how Windows Terminal launches these files and compare the transparent window with the cmd.exe window. Done means commands run in one Windows Terminal window without either extra window appearing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.