Skip to content

fix(desktop): weak-link ScreenCaptureKit so the Computer Use helper loads on macOS 14 and 15 - #9978

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/computer-use-helper-macos15
Nov 13, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/computer-use-helper-macos15

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • The Computer Use helper failed to launch on macOS 14/15 (dyld: Symbol not found: _OBJC_CLASS_$_SCScreenshotConfiguration), so Settings → Desktop → Computer Use showed "Could not connect to the computer helper" and the switch could not be turned on
  • Cause: the helper targets macOS 14 but CI builds it with the macOS 26 SDK, which linked the macOS 26 screenshot classes strongly; the #available(macOS 26) guard cannot help because dyld refuses the binary before any code runs
  • Fix: weak-link ScreenCaptureKit (-weak_framework), so the macOS 26 classes resolve to nil on older macOS behind the existing availability check
  • Guard: the build (and the native build cache reuse path) now fails if any ScreenCaptureKit reference is strong, since our macOS 26 runners would otherwise never notice

Type of Change

  • Bug fix

Testing

  • Reproduced on macOS 15.5 with the shipped 0.9.55 helper (dyld symbol-not-found at launch)
  • Built the helper with the new flags on macOS 26: 0 strong / 7 weak ScreenCaptureKit references; that binary loads on macOS 15.5 and answers status
  • Full desktop build and e2e in CI

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…oads on macOS 14 and 15

The helper targets macOS 14 but CI builds it with the macOS 26 SDK, which linked
the macOS 26 screenshot classes strongly, so dyld refused to load the helper on
older macOS and Settings reported it could not connect. The build now weak-links
the framework and fails if any ScreenCaptureKit reference is strong.
@vercel

vercel Bot commented Nov 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 13, 2026 3:54am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Weak-links ScreenCaptureKit so newer screenshot classes do not prevent the Computer Use helper from loading on macOS 14 and 15.

  • The Computer Use helper can start on macOS 14 and 15.

Reviews (1) · Last reviewed commit: "fix(desktop): weak-link ScreenCaptureKit..." · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

This branch was previously deployed

1 inactive deployment
Preview — 9218c881 Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant