Skip to content

Keep Open Recent entries valid for files Replace in Folder rewrites - #352

Merged
Joncallim merged 1 commit into
masterfrom
review6-folder-replace-recents
Oct 4, 2026
Merged

Joncallim merged 1 commit into
masterfrom
review6-folder-replace-recents

Conversation

@Joncallim

Copy link
Copy Markdown
Owner

Summary

P3 from review pass 6. RecentFileDocuments.noteWrite (added in #263) had one caller, the single-document save path. Replace in Folder publishes each rewritten file with a new inode and creation date, so a file that was in Open Recent failed the fingerprint check on the next click and the entry was silently dropped without opening anything. FolderSearchModel now reports every rewritten file (fileWasRewritten, wired to noteWrite per window), including from a run that was superseded mid-way (those files are already rewritten on disk).

Tests

A replace over three files reports exactly the two it rewrote; the existing Folder replace model suite passes.

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Joncallim
Joncallim merged commit 04a1558 into master Oct 4, 2026
3 checks passed
@Joncallim
Joncallim deleted the review6-folder-replace-recents branch October 4, 2026 06:26
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.

1 participant