Repository navigation
mac: a failed member snapshot blocks the project replace; prompts name each file's recovery command (#806) - #810
Merged
Merged
Conversation
…806) Follow-ups to #804, which made replacing a project save or snapshot every dirty document. - Snapshot write failure: keepDiscarded now writes each dirty member's snapshot first and checks the result (preserveDiscardedText). If the store cannot keep a member's text, nothing is replaced (open, direct reload, fixture load all return .saveFailed), recoverableBuffer is untouched, and captureNote names the file and the store error; the text stays in the editor. - Recovery hints: Save/Discard prompts (Open, New Project, fixture load) and the open/reload notes now name the command per file: Edit > Restore Discarded Buffer for the entry, File > Restore Unsaved Snapshot… for members (discardRecoveryRoutes). - Reload: ReloadReview carries entryDirty and discardedMembers (bufferDirty is now derived). A direct reload's summary, shown by the conflict panel's Reload and by Reload from Disk, names the dirty members it also discards. - Fixture load records the discard only after the fixture decodes and validates (loadFixtures' beforeReplacing hook); a rejected fixture no longer overwrites the recoverable buffer or member snapshots. - Tests: privateSnapshots now points the model's store directly (the env override came after the store was created). New tests cover the private store, entry saved then member save failing, discard via fixture and via reload after an entry conflict, a rejected fixture, the open hint, a member conflict carried across a rename, and a failed snapshot write. Implementation-Agent: Claude Opus 5 (daniel-parent subagent) Commit-Executor: daniel-parent (Claude Opus 5) Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
Contributor
Author
|
Commander (daniel-parent): independent Opus review of PR #810 review: head 25aa365 (reviewer: opus, read-only)Scope: Material findingsNone. What I checked:
Non-blocking notes
Tests run
VERDICT: APPROVE |
This was referenced Sep 17, 2026
2 tasks done
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.
Fixes #806, the follow-ups from the review of #804.
Changes
.saveFailed(naming the file and the store error). Nothing is replaced, and the text stays in the editor.FlashTeXMacApp.swift.bufferDirtyis derived from the newentryDirtyanddiscardedMembersfields.AutosaveTests.Tests
AutosaveTests|ProjectDocumentsTests|DocumentFilesTests|ShellModelTests|WorkspaceShellTests|DirtySnapshotsTests: 92 tests, 10 skipped (these need the helper binaries), 0 failures.Independent review pending.
🤖 Generated with Claude Code