microsoft / microsoft/terminal
Targeting current instance with "-w 0" command line doesn't work if running as administrator
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Windows Terminal version (or Windows build number)
1.7.572.0
### Other Software
_No response_
### Steps to reproduce
Launch Windows Terminal as administrator
Run the command line: wt -w 0 nt
### Expected Behavior
This should open a new tab in the current window
### Actual Behavior
Launches a new instance of Windows Terminal
It would make sense that I wouldn't be able to send commands to other WT windows that were running as admin, but running a command specifically targeting the current window should still work (as a special case if necessary).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the elevated `wt -w 0 nt` command from the issue and trace the command-line handling for targeting the current window. Confirm that an elevated invocation opens a tab in the current window rather than a new instance, while preserving the stated restriction on targeting other administrator windows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100