Skip to content

Conversation

@kwsantiago
Copy link

GUI/Console: Add /clearhistory command

Closes #204

Implementation

  • Type /clearhistory
  • GUI prompt warns it's irreversible but not guaranteed irrecoverable, and clears output too
  • Overwrites saved history with same-length dummy data (no new length info stored)
  • Calls history.clear() and overwrites saved history again
  • Clears console output

Copy link

@1440000bytes 1440000bytes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review ACK ddf5fe4

@kwsantiago kwsantiago force-pushed the kwsantiago/204-clearhistory branch from ddf5fe4 to d272991 Compare November 4, 2025 21:47
@kwsantiago kwsantiago requested a review from luke-jr November 4, 2025 21:47
@kwsantiago kwsantiago force-pushed the kwsantiago/204-clearhistory branch from d272991 to a516809 Compare November 6, 2025 21:31
@kwsantiago kwsantiago requested a review from luke-jr November 6, 2025 21:31
@kwsantiago kwsantiago force-pushed the kwsantiago/204-clearhistory branch from a516809 to 7cb0262 Compare November 7, 2025 17:04
@kwsantiago kwsantiago force-pushed the kwsantiago/204-clearhistory branch from 7cb0262 to 918f4ec Compare November 7, 2025 19:29
@kwsantiago kwsantiago requested a review from luke-jr November 7, 2025 19:29
@kwsantiago kwsantiago force-pushed the kwsantiago/204-clearhistory branch from 918f4ec to 1498a7b Compare November 9, 2025 00:43
@kwsantiago kwsantiago requested a review from luke-jr November 9, 2025 00:43
@kwsantiago kwsantiago force-pushed the kwsantiago/204-clearhistory branch 2 times, most recently from 2eb19df to de081d7 Compare November 16, 2025 01:20
@kwsantiago kwsantiago requested a review from luke-jr November 16, 2025 01:20
Copy link

@bigshiny90 bigshiny90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doing a quick code review and testing while running. not a lot to add regarding code, as you all have done much work there.

outstanding question for me is: this slash command has no discoverability - neither in help or help-console. Should it not be documented there otherwise how would a user know about it? (I may be missing something obvious?)

bigshiny90

This comment was marked as duplicate.

@kwsantiago kwsantiago force-pushed the kwsantiago/204-clearhistory branch from de081d7 to 497efdf Compare December 4, 2025 19:31
@kwsantiago
Copy link
Author

@bigshiny90 thank you for the feedback. Addressed in 497efdf

@kwsantiago kwsantiago requested a review from bigshiny90 December 4, 2025 19:32
Copy link

@bigshiny90 bigshiny90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great. Added documentation to help-console and autocomplete for /clear-history.

Tested on linux.

looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GUI/Console: A way to clear command history

4 participants