microsoft / microsoft/terminal

Windows Terminal Crashes When Re-entering a Nested Command in the Command Palette

Open
#19,349 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.2372.0

### Windows build number

10.0.26100.0

### Other Software

_No response_

### Steps to reproduce

1. Add the following nested command definition to the actions array in your settings.json file:

```json
{
"name": "Change font size…",
"commands": [
{ "command": { "action": "adjustFontSize", "delta": 1 } },
{ "command": { "action": "adjustFontSize", "delta": -1 } },
{ "command": "resetFontSize" }
]
}
```

2. Launch Windows Terminal.
3. Open the Command Palette by pressing Ctrl+Shift+P.
4. Select the newly created nested command ("Change font size…").
5. The palette will now show the three sub-commands. Click the "Back" button at the top to return to the main list.
6. Select the "Change font size…" command again.
7. Observe that Windows Terminal crashes.

### Expected Behavior

The Command Palette should successfully re-enter the nested command's sub-menu without crashing, allowing the user to select one of the sub-commands.

### Actual Behavior

Windows Terminal crashes immediately upon the second attempt to enter the nested command menu.

Contributor guide

Open the contributing guide

Research direction

Reproduce the crash in Windows Terminal 1.24.2372.0 using the nested command definition in settings.json, starting from the Command Palette flow and its Back navigation. Re-enter the same nested command after returning to the main list, then verify that the sub-menu opens again without crashing and its commands remain selectable.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.