Skip to content

fix(computer-use): restore the macOS native-desktop build - #6465

Closed
liugddx wants to merge 1 commit into
rust-previewfrom
fix/computer-use-macos-build
Closed

liugddx wants to merge 1 commit into
rust-previewfrom
fix/computer-use-macos-build

Conversation

@liugddx

@liugddx liugddx commented Oct 29, 2026

Copy link
Copy Markdown
Member

Summary

maka desktop no longer builds on macOS at rust-preview 5b071cf6b. 603852b made session/native_computer/macos.rs call data_url, which is compiled only on Windows, and the macOS retire path's async block lost its error type:

error[E0425]: cannot find value `data_url` in this scope
   --> platform/computer-use/src/session/native_computer/macos.rs:607:22
error[E0282]: type annotations needed for `std::result::Result<(), _>`
   --> platform/computer-use/src/session/native_computer/macos.rs:271:13

This compiles data_url on macOS too and annotates the result type. Linux CI does not build this code, which is why it was not caught.

Verification

  • macOS (Apple Silicon): cargo check -p maka-computer-use --features native-desktop fails before and passes after.
  • node scripts/rust/build-cli.mjs (CLI, desktop shell and Python worker) completes, and target/debug/maka desktop launches the window.
  • Not run: Windows and Linux builds. The change only widens a cfg to include macOS and adds a type annotation in macOS-only code.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Claude Code (Claude Opus 5.5) found and fixed the build errors; the commit carries a Generated-by trailer.

Checklist

  • Tests cover the change and fail without it (build fix in macOS-only code; there is no macOS CI)

🤖 Generated with Claude Code

603852b made the macOS native computer call `data_url`, but the helper is
compiled only on Windows, and the retire path's async block lost its error
type. `maka-computer-use --features native-desktop` (and so `maka desktop`)
no longer compiles on macOS; Linux CI does not build this code.

Compile `data_url` on macOS too and annotate the async result type.

Generated-by: Claude Code (Claude Opus 5.5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@M4n5ter

M4n5ter commented Oct 29, 2026

Copy link
Copy Markdown
Member

Thanks for the fix and the macOS build/launch verification. Both changes are already included in rust-preview by 572568aad, which also explicitly qualifies the helper as super::data_url.

Closing this PR as already fixed.

@M4n5ter M4n5ter closed this Oct 29, 2026
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.

2 participants