Skip to content

Release 0.39.1: fix macOS 26 save refusal on com.apple.provenance (#194) - #195

Merged
renezander030 merged 2 commits into
masterfrom
fix/194-macos-provenance
Dec 5, 2026
Merged

renezander030 merged 2 commits into
masterfrom
fix/194-macos-provenance

Conversation

@renezander030

Copy link
Copy Markdown
Owner

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 -wx exits 0, but the kernel stores the writing process's own provenance value. The read-back check in preserveMacAttributes() then failed, and 0.39.0 refused every save with refused [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

  • Reproduced on this Mac (macOS 26) with a source file another app had tagged with provenance. 0.39.0 code: refused [file-metadata]: Could not preserve macOS extended attributes; original file retained. Fixed build: ok. The source file was not changed.
  • New unit test "leaves kernel-managed attributes such as com.apple.provenance to macOS (0.39.0 refuses writes on macOS 26: com.apple.provenance cannot be preserved (refused [file-metadata]) #194)" passes. The file-metadata suite: 12 pass, 1 skipped (linux only).
  • Full suite: 1690 tests, 1676 pass, 0 fail, 4 skipped. The 10 cancelled are portable-build tests that need the official Node distribution. This Mac runs Homebrew Node.

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.

renezander030 and others added 2 commits December 5, 2026 14:02
…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>
@renezander030
renezander030 merged commit f476ece into master Dec 5, 2026
17 checks passed
@renezander030
renezander030 deleted the fix/194-macos-provenance branch December 5, 2026 14:36
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.

0.39.0 refuses writes on macOS 26: com.apple.provenance cannot be preserved (refused [file-metadata])

1 participant