[PR #19771] Update the command list when a new command is added or an existing command's name is changed #31953

Open
opened 2026-01-31 09:50:35 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/19771

State: open
Merged: No


Summary of the Pull Request

When a new command is added or an existing command's name is changed, make sure we update the top-level command list so that it appears there when the user navigates back to the actions page

Detailed Description of the Pull Request / Additional comments

Added a new _CommandListDirty flag to the ActionsViewModel. When a new command is added or a command's name is changed the flag is set. When navigating to the top-level actions page, we regenerate the _CommandList if the flag is set.

Validation Steps Performed

Adding a new command or updating a command's name is now reflected correctly when navigating back to the actions page.

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/19771 **State:** open **Merged:** No --- ## Summary of the Pull Request When a new command is added or an existing command's name is changed, make sure we update the top-level command list so that it appears there when the user navigates back to the actions page ## Detailed Description of the Pull Request / Additional comments Added a new `_CommandListDirty` flag to the `ActionsViewModel`. When a new command is added or a command's name is changed the flag is set. When navigating to the top-level actions page, we regenerate the `_CommandList` if the flag is set. ## Validation Steps Performed Adding a new command or updating a command's name is now reflected correctly when navigating back to the actions page. ## PR Checklist - [ ] Closes #xxx - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:50:35 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31953