Skip to content

feat(computer-use): reuse agent-desktop on Windows and Linux - #1789

Merged
NanmiCoder merged 5 commits into
mainfrom
feat/native-computer-use-windows-linux
Nov 2, 2026
Merged

NanmiCoder merged 5 commits into
mainfrom
feat/native-computer-use-windows-linux

Conversation

@NanmiCoder

@NanmiCoder NanmiCoder commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Windows Computer Use switches from the Python helper to a pinned native agent-desktop runtime, and Linux gains the same MCP command surface. macOS continues to use the Swift engine. The integration preserves the product's single consent boundary, per-agent identity, queued control and session lock, and uses the macOS product arrow geometry on Windows and X11.

Vendor agent-desktop 1.0.2 at 9eb9b296192fcb70bda25e918cd6dd66abfa3d0d, retaining Apache-2.0, dependency notices, original file hashes, local patch records and bilingual README attribution. Build and package the native executables and Linux clipboard owner, including the Windows runtime in the existing SignPath application signing contract.

Collect CI scope from immutable Git base/head commits using NUL-delimited paths. This PR exceeds the files API's 3,000-path limit; Git collection keeps all paths and reads CODEOWNERS from the trusted base SHA. Invalid or lossy path input fails closed.

Feature Quality Contract

  • Changed surface: desktop, server, native, agent-loop, release and docs.
  • Tests added or updated: MCP/CLI arguments and results, live consent revocation, per-agent cwd and identity, cancellation and input-release grace, cursor recovery, shutdown ordering and hook budgets, UI/API enablement, real Rust parser/arrow geometry, packaging and signing contracts; complete CI scope beyond 3,000 paths, quotes/Tab/newlines, and fail-closed parsing.
  • Coverage evidence: all five suites passed; changed-line coverage for the complete committed application diff is 96.31% (836/868) against the unchanged 90% minimum. Local report: artifacts/coverage/2026-11-02T13-25-49-660Z/coverage-report.md. Aggregate tools/utils coverage remains advisory below its target; instrumentation exit notes remain visible in that report. Correctness is enforced by the required per-file runtime gate. The final CI/policy-only commit does not change these instrumented application files.
  • E2E / live-model evidence: the integrated real CLI → MCP → compiled native fixture passes observe/act/verify, stale-ref handling, interruption/recovery, and 2050ms input release before session teardown. Full offline agent suites previously passed 23 mock and 21 replay scenarios. Live model: not run; no provider quota used.
  • Known risk / rollback: Windows/Linux GUI, multi-display/high-DPI behavior and complete installer validation remain unverified. Revert this PR to restore the prior platform routing; stored pythonPath and unknown configuration fields are preserved.

Verification

  • Integrated fetched main at 1a8baecc587d74a41165a1e8e6390dafb64eaff3; checked text and business compatibility with the theme, mobile HTTP and OpenAI model-catalog changes. Latest integration regressions passed 357 root tests across 12 isolated files and 2 desktop provider tests.
  • Integrated checks: desktop lint/typecheck/build, 10,669 tests passed / 10 skipped; mobile typecheck/lint/H5 export, 1,203 tests passed; 98 native/API tests passed; real CLI native fixture passed.
  • Runtime checks: server 8,908 tests, 41 provider-contract suites, chat contracts, Electron build, docs and Windows/Linux all-targets cross-checks passed. Rust core/cursor/CLI checks passed 1,561 / 20 / 50 tests. Thirty backend regression cases cover the repaired runtime boundaries.
  • Final CI/policy regression checks: 547 tests passed / 0 failed; the focused workflow and selector suites passed 102 tests. Real Git fixtures verify complete file collection, trusted base ownership, and original check/approval enforcement.
  • Collaboration E2E now explicitly holds child startup and first-stream boundaries, so queued launch is never mistaken for a ready CLI. A controlled startup delay reproduced the CI token-access failure before the fix; the repaired test and shared-fixture consumers pass. Production behavior and check thresholds are unchanged.
  • Full committed application-diff coverage: 96.31% (836/868), passed.
  • Final head 45a929093a03b90f1023af51e16858e334c4dc28: PR Quality and Windows/Linux native CI passed, including the stable merge gate. Final server CI passed 8,866 tests across 753 files with no failed files or flakes; all five coverage suites passed. Adapter checks were correctly unselected. Superseded pre-ready runs were cancelled.
  • Full check:native signing/package chain and platform GUI: not run. The local macOS chain uses a signing keychain; repository test rules prohibit using the developer's real keychain. Component checks do not substitute for installer verification.
  • Local bun run verify: not run. CI runs the selected deterministic lanes; real platform GUI and signed-installer validation remain separate evidence.

Risk

  • Authored by repository CODEOWNER; no coverage thresholds, quarantine policy or branch protections were weakened.
  • Upstream platform limits remain explicit: semantic actions can run in the background; physical input shares the foreground. X11 retains a static action cursor, and Wayland has no ordinary-app physical pointer or visible cursor.
  • Existing upstream grants remain Apache-2.0; new project integration follows the repository's current license.
  • Before enabling Windows signing, synchronize the external SignPath application artifact configuration with .github/signpath/windows-application.xml, then trial-sign. This PR changes the workflow and checked-in contract, not the external service configuration.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

PR quality triage

Changed areas: area:desktop, area:docs, area:release

CLI core policy: No CLI-core policy block detected.

Missing-test policy: No missing-test policy block detected.

Coverage baseline policy: No coverage-baseline policy block detected.

CLI core files:

  • none

Coverage policy files:

  • none

Required check plan:

  • See PR Quality / scope-plan; it is the single source of truth for selected jobs.

Test coverage signals:

  • No obvious missing-test signal from changed paths.

Risk notes:

  • Desktop state/API layer changed: verify store persistence, WebSocket behavior, and startup errors.
  • CI/policy changed: inspect workflow behavior itself, not just application tests.

Hard merge gates come from the deterministic GitHub Actions contract lanes above.

@NanmiCoder
NanmiCoder marked this pull request as ready for review November 2, 2026 14:27
@NanmiCoder
NanmiCoder merged commit 49fb95f into main Nov 2, 2026
22 of 36 checks passed
@NanmiCoder NanmiCoder mentioned this pull request Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant