You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pre-push desktop Swift compile cannot pass on Xcode 26.2 (Swift 6.2 strict concurrency) #10570
scripts/pre-push runs xcrun swift build -c debug --package-path Desktop against whatever local Xcode is selected — deliberately, per desktop/macos/AGENTS.md:249 ("never promote it to the full pinned-Xcode suite ... that push-time budget belongs to CI"). CI pins Xcode 16.4. On Xcode 26.2 / Apple Swift 6.2.3 the same sources do not compile, so the gate fails for a diff that touches no Swift at all.
Reproduced on cb918cf0ba (current main) with zero desktop files changed — git diff --name-only origin/main...HEAD -- 'desktop/**' is empty, so these are main's sources unmodified:
Rewind/Core/RewindDatabase.swift:10:22: error: static property 'terminationInProgress' is not
concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
Providers/ChatProvider.swift:1667:52: error: non-Sendable 'DesktopErrorDiagnosticContext?'-typed
result can not be returned from actor-isolated instance method
'consumePendingStartFailureDiagnostics()' to main actor-isolated context
ProactiveAssistants/Assistants/Focus/FocusAssistant.swift:694:26: error: cannot find 'DesktopLocalProfile' in scope
Rewind/Services/RewindIndexer.swift:441:26: error: cannot find 'DesktopLocalProfile' in scope
The two cannot find 'DesktopLocalProfile' in scope errors look like fallout from error: emit-module command failed rather than independent defects — DesktopLocalProfile is package enum in OmiSupport/DesktopLocalProfile.swift and resolves fine under the pinned toolchain.
Why it matters beyond one machine: .github/checks-manifest.yaml is in ROUTING_INPUTS (scripts/pre_push_ci_prediction.py:71), so any manifest edit conservatively wakes desktop-swift-tests. A contributor on current Xcode who edits only CI config gets a desktop compile failure they did not cause and cannot fix. PRE_PUSH_SKIP_DESKTOP_SWIFT=1 clears it and is what I used, but the skip is indistinguishable from skipping a real regression.
Environment: macOS 26.x arm64, Xcode 26.2 (17C52), swift-driver 1.127.14.1 / Apple Swift 6.2.3. Not urgent — the hatch works — but the local desktop gate is currently advisory-in-practice for anyone not on 16.4.
Does not reproduce on current main (214596a1d2) with an even newer toolchain than the report.
$ xcodebuild -version # Xcode 26.4 (17E192), Apple Swift 6.3
$ cd desktop/macos && xcrun swift build -c debug --package-path Desktop
...
[1532/1534] Linking Omi Computer
Build complete! (292.43s)
Clean worktree off origin/main, no local Swift changes. All four cited errors are gone:
RewindDatabase.swift:10 is already nonisolated(unsafe) private static var terminationInProgress
DesktopErrorDiagnosticContext (Logger.swift:579) is already @unchecked Sendable, so ChatProvider.swift:1667 returns fine
both cannot find 'DesktopLocalProfile' in scope sites compile — consistent with your read that they were emit-module fallout, not independent defects
So the local desktop gate does pass on current Xcode; the fixes landed between cb918cf0ba and now. Only remaining warning is unrelated (libwebp.7.dylib built for macOS 26.0 vs deployment target 14.0).
Activity
fix(desktop): restore the Swift build broken on main by SCA-103 (#10576)
kodjima33 commentedon Jul 25, 2026
Does not reproduce on current main (
214596a1d2) with an even newer toolchain than the report.Clean worktree off
origin/main, no local Swift changes. All four cited errors are gone:RewindDatabase.swift:10is alreadynonisolated(unsafe) private static var terminationInProgressDesktopErrorDiagnosticContext(Logger.swift:579) is already@unchecked Sendable, soChatProvider.swift:1667returns finecannot find 'DesktopLocalProfile' in scopesites compile — consistent with your read that they wereemit-modulefallout, not independent defectsSo the local desktop gate does pass on current Xcode; the fixes landed between
cb918cf0baand now. Only remaining warning is unrelated (libwebp.7.dylibbuilt for macOS 26.0 vs deployment target 14.0).🤖 verified by the hourly desktop watchdog
fix(desktop): let the local desktop gate build on Swift 6.2