microsoft / microsoft/terminal

Process exited with code 259 (0x00000103)

Open
#20,075 5 comments 0 reactions 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.24.10921.0

### Windows build number

10.0.26200.8117

### Other Software

_No response_

### Steps to reproduce

1. Create the profie:
```
{
"closeOnExit": "never",
"commandline": "wt -p \"Command Prompt\" nslookup",
"name": "cmd2"
}
```
2. Run it.

### Expected Behavior

_No response_

### Actual Behavior

If `closeOnExit` set to `never`, `wt` will exit with code 259 and then run the `commandline` in the next tab.
if `closeOnExit` set to `always` and no wt is running, `wt` will just exit with code 259.

https://github.com/user-attachments/assets/6ac85a98-0042-4ba2-b493-7bbc7097406c

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the provided profile and compare behavior when closeOnExit is set to never versus always, both with and without an existing wt instance. Trace the Windows Terminal handling of the commandline and process exit code; done when nslookup runs in the intended tab without wt exiting with code 259.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
54/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.