Repository navigation
feat(history): tombstones, deletion, and privacy semantics (slice 5/6) #1393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Alan-TheGentleman
merged 11 commits into
Gentleman-Programming:main
from
carolitascl:feat/history-slice-05-delete
Sep 26, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7cc79b2
feat(history): tombstones, deletion, and privacy semantics
carolitascl ea7e33b
fix(history): satisfy upstream typecheck gate
carolitascl 041973d
fix(history): make prompt capture opt-in and document the store
carolitascl 3cc57c7
chore(readme): remove README delta from history slice
carolitascl 9fb1bd5
Merge remote-tracking branch 'upstream/main' into feat/history-slice-…
carolitascl 1f91268
Merge branch 'feat/history-slice-04-seed' into feat/history-slice-05-…
carolitascl c4f20d5
Merge branch 'feat/history-slice-04-seed' into feat/history-slice-05-…
carolitascl 89ac348
fix(history): restore fail-closed tombstones and honest delete UX
carolitascl 146db16
Merge commit '89ac348' into feat/history-slice-05-delete
carolitascl e302337
fix(history): modal delete confirm, read-only session rows, GENTLE_PI…
carolitascl 779bdb7
Merge remote-tracking branch 'origin/main' into fix/history-pr1393-ad…
Alan-TheGentleman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Stop one delete from hiding unrelated prompts that share a 120-char prefix.
hidePromptstorespromptDedupKey(text). That key is the whitespace-collapsed, lowercased first 120 characters.drainFiles(extensions/history/store.tsLine 337) andbootstrapProjectSeed(extensions/history/store.tsLine 650) drop every entry whose key is inhidden.json.Assume two distinct prompts share a long preamble, such as a template or a pasted context block. A delete of one of them has these effects:
sweepFilesphysically removes only the exactpromptKeymatch. The sibling stays on disk.hidden.json.The reverse case is also a problem.
dedupePromptEntriesalready collapses such siblings in the selector, so the user never sees the second prompt before it disappears.Use the full normalized text as the tombstone key. If the file must stay small, use a hash of the full normalized text. Keep the 120-char key only for display dedup.
🛠️ Proposed direction
Apply the same key function in
drainFilesandbootstrapProjectSeedinstead ofpromptDedupKeyOf.📝 Committable suggestion
🤖 Prompt for AI Agents