Repository navigation
Fix: Preserve tags when xattr writes fail - #153
Merged
Merged
Conversation
Co-Authored-By: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com> Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
…estart Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
Co-Authored-By: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com> Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
This was referenced Oct 10, 2026
Merged
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.
Resolved / Related Issues
Fixes #148
When
user.xdg.tagsis readable but cannot be written, later tag edits and deferred loads could restore stale xattr values over the database fallback. Track unsynchronized paths and use their database tags for reads, queued edits, and deferred item callbacks, including empty tag sets. Resume xattr authority only after a successful write.Steps used to test these changes
All builds and tests ran serially under
flock ~/.cache/linuxfiles-agents/build.lock, at low priority with display variables unset.tests/Files.Platform.Tests/Files.Platform.Tests.csprojin Debug/x64 with warnings treated as errors: 0 warnings, 0 errors.--filter 'FullyQualifiedName~Files.Platform.Tests.Tags': 21 passed, 0 failed, 0 skipped. Covers successive edits across item instances, deferred snapshots, failed removal, database persistence, and successful resynchronization.src/Files.App/Files.App.csprojin Debug/x64 fornet10.0-desktop, withFilesWin32Compat=false: 0 errors (585 warnings).git diff --checkand verified CRLF line endings in all three changed files.🤖 Generated with Claude Code
Claude session