Skip to content

fix(desktop): stabilize Windows Computer Use and native cursor - #1832

Merged
NanmiCoder merged 3 commits into
mainfrom
fix/windows-computer-use
Nov 5, 2026
Merged

NanmiCoder merged 3 commits into
mainfrom
fix/windows-computer-use

Conversation

@NanmiCoder

@NanmiCoder NanmiCoder commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Route desktop turns that explicitly request Computer Use through native tools and show an actionable error when the runtime is unavailable.
  • Verify native session storage readiness, keep the Windows agent cursor visible during a turn, scale it to the active monitor, and clean it up on completion, cancellation, and provider errors.
  • Use the focus-preserving accessibility path for standard WinForms buttons and edit controls. Report renderer failures separately from action delivery.
  • Preserve Windows PowerShell output and script encoding, and keep request structure in traces that contain large screenshots.

Feature Quality Contract

  • Added same-area tests for tool routing and lifecycle, WinForms dispatch, Windows private storage, shell output and script files, and request traces.
  • Exercised the compiled Windows sidecar and bundled engine on two disposable Windows test windows. A background click, write, and clear preserved foreground focus and the physical pointer. The composited Agent cursor remained visible after 30 seconds of the delayed turn and cleared after completion.
  • Deterministic end-to-end tests used a scripted model over loopback. Live provider checks were not run.
  • Physical input and control-specific focus behavior remain subject to the Windows application. Revert this PR to return to the previous runtime behavior.

Verification

  • All 20 GitHub checks selected for dfda14820 passed. PR Quality · Native Computer Use
  • The separate changed-line coverage check met the repository gate. Coverage job and report
  • Windows native tests and all-targets compile, the static package check, and the two-window display smoke passed.
  • The final Linux focused test set passed 77 tests with three Windows-only skips.
  • Full local bun run verify on the preceding revision was limited by the WSL toolchain and local policy context. The required packaging, docs, server, and chat jobs passed in GitHub Actions on the final revision.

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

PR quality triage

Changed areas: area:cli-core, area:desktop, area:docs, area:server

CLI core policy: CLI-core change authored by a CODEOWNER; no override label needed.

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

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

CLI core files:

  • src/tools/BashTool/prompt.agentProfile.test.ts
  • src/tools/BashTool/prompt.ts
  • src/tools/FileReadTool/FileReadTool.test.ts
  • src/tools/FileReadTool/FileReadTool.ts
  • src/tools/FileWriteTool/FileWriteTool.test.ts
  • src/tools/FileWriteTool/FileWriteTool.ts
  • src/tools/PowerShellTool/PowerShellTool.test.ts
  • src/tools/PowerShellTool/PowerShellTool.tsx
  • src/tools/PowerShellTool/prompt.ts
  • src/utils/Shell.ts
  • src/utils/computerUse/agentDesktopBridge.test.ts
  • src/utils/computerUse/agentDesktopBridge.ts
  • src/utils/computerUse/agentDesktopLifecycle.test.ts
  • src/utils/computerUse/agentDesktopProcess.test.ts
  • src/utils/computerUse/agentDesktopProcess.ts
  • src/utils/computerUse/agentDesktopResult.test.ts
  • src/utils/computerUse/agentDesktopResult.ts
  • src/utils/computerUse/cleanup.test.ts
  • src/utils/computerUse/cleanup.ts
  • src/utils/computerUse/common.ts

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:

  • Agent/model runtime path changed: use mock/request-shape tests in PR and maintainer live-model smoke before release.

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 merged commit fd48ff5 into main Nov 5, 2026
22 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