Repository navigation
refactor: keep undo history per page instead of per tab - #9
Merged
Merged
Conversation
One workspace-wide record net with a history tree per page and one workspace tree for view tabs. A commit enters its source history and every changed page, reusing the owner expansion done for notifications. Undo and redo replay whole records into the other holders; a safety net prunes stale nodes; emptying trash prunes only records that touched the purged objects. Closing a tab keeps history; closing the workspace clears it. Adds the history.limit setting (default unlimited) and the history:changed event, and removes history:close-tab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Continues the bottom-up refactor after #8 (service layer, settings and IPC).
Undo history per page
API and settings
history:changedevent and removeshistory:close-tab.history.limitsetting (default unlimited); lowering it trims at once.Verification
pnpm typecheck: 0 errors. Lint: 0 errors, 47 existing warnings.pnpm perf: every absolute threshold passes. With 10,000 records over 100 pages, single-block commit and undo on a 10,000-block page stay near 10 ms P95; trimming to 100 records takes about 7 ms.🤖 Generated with Claude Code