fix: compile cmux.json atomic publish
Merged
LA
2mo ago+2+2+0123456789-2-2-0123456789
Main does not compile since https://github.com/manaflow-ai/cmux/pull/14868. Every app-host build stops at TEST BUILD FAILED with two errors in CmuxSettings. Seen with Xcode 26.3 on blacksmith-6vcpu-macos-15 (https://github.com/manaflow-ai/cmux/actions/runs/36766921225) and with Xcode 26.6 on blacksmith-6vcpu-macos-26 (https://github.com/manaflow-ai/cmux/actions/runs/36766955249).
JSONConfigAtomicPublisher.swift:74calls the throwingrollbackIfStillOwnedwithouttry. The other two call sites already useif try. The call now usesif trytoo, so a failed rollback propagatessourceChangedRollbackFailedthe same way as the other paths.JSONConfigStore.swift:601readsfileURLinside an escaping closure withoutself.. It is nowself.fileURL.
Verification: swift build of Packages/macOS/CmuxSettings with DEVELOPER_DIR=/Applications/Xcode_26.3.app fails with exactly these two errors on main and succeeds with this change. It also builds with the default local Xcode (Swift 6.4).
Changelog
- No user-facing change. Fixes the macOS app build.
🤖 Generated with Claude Code