Skip to content

pre-push desktop Swift compile cannot pass on Xcode 26.2 (Swift 6.2 strict concurrency) #10570

Closed

Description

@Git-on-my-level

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.

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Jul 25, 2026
  2. added a commit that references this issue on Jul 25, 2026
    424c574
  3. moved this from In progress to In review in omi TODO / bountieson Jul 25, 2026
  4. kodjima33 commented on Jul 25, 2026

    @kodjima33
    Collaborator

    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).

    🤖 verified by the hourly desktop watchdog

  5. added a commit that references this issue on Jul 25, 2026
    732541f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions