Repository navigation
feat(history): add a retention period, and collapse repeated statements - #600
Merged
Merged
Conversation
This was referenced Sep 9, 2026
Two ways the panel filled with things nobody needed. FR-9.1.3 asked for a retention period and only ever got a count (#592). Both apply now, and whichever bites first wins: they answer different questions — how much clutter to tolerate, and how long any of it should be kept at all. Forever stays the default, because quietly starting to delete someone's history on upgrade is the wrong way to introduce the setting. Age retention is applied at startup rather than on a timer. A session left open for a week should not start deleting rows out from under someone who is reading them. An entry exactly at the cutoff is kept: "keep 30 days" has to keep the entry from 30 days ago. Raising the period back to forever cannot bring anything back, so it only records the choice. A failed prune does not stop the panel loading — retention is housekeeping. Running the same statement ten times while iterating filled ten rows and pushed the rest of the session off the panel; with a 500-entry cap a tight edit-run loop could evict a morning's work (#590). Consecutive identical runs now collapse into one row marked with a count. Only consecutive ones, and only under the default sort. Non-adjacent repeats stay separate because the order is the story — SELECT, UPDATE, SELECT is someone checking their work, and merging the two selects would hide that. Sorting by duration makes adjacency meaningless, so nothing collapses there at all. A failed run never merges into a successful one even when the text matches: the outcome is the most important thing on the row, and "×5" beside a green tick when one of them failed would be a lie. Closes #592 Closes #590 Co-Authored-By: Claude Opus 5 <[email protected]>
EVWorth
force-pushed
the
feat/history-age-retention-and-dedup
branch
from
September 10, 2026 00:07
55412dc to
6001013
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #592, closes #590.
Retention period (#592)
FR-9.1.3 asked for a period and only ever got a count. Both apply now, and whichever bites first wins — they answer different questions: how much clutter to tolerate, and how long any of it should be kept at all.
Repeated statements (#590)
Running the same statement ten times while iterating filled ten rows and pushed the rest of the session off the panel; with a 500-entry cap a tight edit-run loop could evict a morning's work. Consecutive identical runs now collapse into one row marked with a count.
Three deliberate limits, each with a test:
SELECT,UPDATE,SELECTis someone checking their work — merging the two selects would hide that.Verification
3 new Rust tests, 8 grouping tests, 7 store tests, 5 panel tests. Full suite 1894 passing, clippy clean, 0 lint errors. FR-9.1.3 updated to describe what now exists.