fix: stop a background refresh undoing delete/prune/rename - #26
Merged
Merged
Conversation
From an adversarial review of auto-refresh: - A scan that started before a delete, prune or rename is dropped when it lands, instead of bringing the deleted row, old size or old name back. - A failed scan (including a vanished ~/.claude/projects) keeps the list rather than emptying it; reload now returns an explicit error. - Unchanged conversations reuse their list item, so a refresh no longer rebuilds every conversation's search text (~64MB/173ms per minute). - Prune is refused on a session open in claude (its writes during the rewrite would be lost); delete warns. Deleted files leave the parse cache. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JUmkVYwbkobda1AnHuwFDE
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 from an adversarial review of the auto-refresh change:
~/.claude/projectswent missing or couldn't be read, the refresh emptied the list. It now counts as a failure and the current list stays.claude, because anything claude writes during the rewrite would be lost. Delete still works but the confirmation says the session is open.Not changed:
🤖 Generated with Claude Code
https://claude.ai/code/session_01JUmkVYwbkobda1AnHuwFDE