Repository navigation
Release 0.39.1: fix macOS 26 save refusal on com.apple.provenance (#194) - #195
Merged
Merged
Conversation
…el (#194) On macOS 26 CapCut tags its drafts with com.apple.provenance. A user process cannot copy that attribute: xattr -wx exits 0 but the kernel stores the writing process's own value, so read-back verification failed and every save was refused with refused [file-metadata]. Skip com.apple.provenance, com.apple.macl and com.apple.rootless; every other attribute is still copied and verified. Fixes #194 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes #194 and releases 0.39.1. On macOS 26, CapCut tags its draft files with
com.apple.provenance. A user process cannot copy that attribute:xattr -wxexits 0, but the kernel stores the writing process's own provenance value. The read-back check inpreserveMacAttributes()then failed, and 0.39.0 refused every save withrefused [file-metadata].The fix skips the attributes the kernel manages (
com.apple.provenance,com.apple.macl,com.apple.rootless). macOS sets these on the replacement file itself. Every other attribute is still copied and verified, and any failure still refuses the save.Evidence
refused [file-metadata]: Could not preserve macOS extended attributes; original file retained.Fixed build:ok. The source file was not changed.Door
two-way: reverting the commit restores the old behaviour.
Blast radius
src/file-metadata.ts (skip list), test/file-metadata.test.mjs, CHANGELOG.md. This changes every atomic draft save on macOS. Other platforms are unchanged.