No SUI option to clear "recentCommands" #15608

Open
opened 2026-01-31 04:43:21 +00:00 by claunia · 1 comment
Owner

Originally created by @elsaco on GitHub (Oct 21, 2021).

Windows Terminal version (or Windows build number)

Windows Terminal Preview Version: 1.12.2922.0

Other Software

Windows 10 version 10.0.19043.0

Steps to reproduce

  1. open command palette
  2. backspace '>' then enter commands
  3. close WT
  4. open command palette

Expected Behavior

  1. option to delete recent commands

Actual Behavior

  1. no SUI option to clear recent commands
  2. the only option is to edit or delete 'state.json'

Sample screenshot:
wt_command_history

Originally created by @elsaco on GitHub (Oct 21, 2021). ### Windows Terminal version (or Windows build number) Windows Terminal Preview Version: 1.12.2922.0 ### Other Software Windows 10 version 10.0.19043.0 ### Steps to reproduce 1. open command palette 2. backspace '>' then enter commands 3. close WT 4. open command palette ### Expected Behavior 1. option to delete recent commands ### Actual Behavior 1. no SUI option to clear recent commands 2. the only option is to edit or delete 'state.json' Sample screenshot: ![wt_command_history](https://user-images.githubusercontent.com/3933920/138190038-8e1c5b09-13cf-4d54-aeb0-abea24768628.png)
claunia added the Issue-FeatureProduct-TerminalArea-SettingsUI labels 2026-01-31 04:43:21 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Oct 21, 2021):

This brings up a bigger point - we can't really clear out any app state in the SUI yet. You'd have to manually delete the entries from state.json.

I suppose the things we're storing right now (and possibly in the future):

So there probably should be a separate page for these things? This may need some thought as to the right way to handle.

@zadjii-msft commented on GitHub (Oct 21, 2021): This brings up a bigger point - we can't really clear out _any_ app state in the SUI yet. You'd have to manually delete the entries from `state.json`. I suppose the things we're storing right now (and possibly in the future): * recent commands in command palette * window state (can be cleared by turning the setting on/off * dynamic profiles that we've seen before? * allowed commandlines (https://github.com/microsoft/terminal/projects/5#card-67023791) * "Find" history So there probably should be a separate page for these things? This may need some thought as to the right way to handle.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15608