fix: compile cmux.json atomic publish

Merged
LA
2mo ago
+2-2

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:74 calls the throwing rollbackIfStillOwned without try. The other two call sites already use if try. The call now uses if try too, so a failed rollback propagates sourceChangedRollbackFailed the same way as the other paths.
  • JSONConfigStore.swift:601 reads fileURL inside an escaping closure without self.. It is now self.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