Skip to content

fix(computer): initialize Windows control proxies - #36383

Merged
AmoabaKelvin merged 1 commit into
mainfrom
windows-automation-proxies
Oct 30, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
windows-automation-proxies

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​72 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​71

ELI5

The agent can identify native Windows text fields, buttons and combo boxes instead of seeing generic panes.

What Changed

The existing compiled bridge initializes Microsoft's default UI Automation proxies before PowerShell makes automation calls. It adds no custom providers or extra compilation.

Why

The framework's default proxy loader walks caller types. A typed, non-inlined bridge avoids the PowerShell dynamic-call failure seen during proxy registration.

Linked Issue

Visual Proof

No Orca UI change. Isolated Windows comparison retains native snapshots and fixture readbacks.

Native fixture Existing runtime Initialized proxies
Control discovery 0/10 trials 10/10 trials
Button invocation 0/2 trials 2/2 trials

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Local check:changed --maxWorkers=2 passed all 11 checks. A new CI probe requires native edit, button and combo box metadata, including SetValue and Invoke patterns, from a fresh provider process.

Electron retained its passing click, type and replace trials. Native edit-message routing and focused-target typing remain separate failures; this change repairs discovery.

AI Disclosure

Review

Independent reviews cover initialization order, assembly references and the fresh-process regression probe.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No request, response or saved-state changes. Linux, macOS, remote-version compatibility, mobile routing and folder workspaces retain their existing paths.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 85bd2651-44a1-453f-a806-b7134e30618b
Commits

Reviewing files that changed from the base of the PR and between d3595c3 and 778a5dc.

Files selected for processing: 3
  • .github/workflows/computer-task-benchmark.yml
  • config/benchmarks/computer-use/windows_discovery_probe.py
  • native/computer-use-windows/runtime.ps1

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

Walkthrough

The Windows runtime now compiles OrcaDesktopWin32 with explicit system and UI Automation references and initializes UI Automation after compilation. The Windows benchmark job runs a discovery probe for the fixture target and uploads its output. The probe checks the environment, runs a candidate-engine trial, validates UI matches and patterns, and writes source and snapshot evidence.

Priority: Normal

Merge Risk: Minimal · up to 778a5

The Windows discovery initialization and fixture probe are in place. No merge-blocking issue was identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the main change: initializing Windows control proxies.
Description check Passed The description explains the change, reason, testing, and scope. The linked issue section is blank, and the visual-proof section does not include before-and-after images or video, although it links to…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the change, reason, testing, and scope. The linked issue section is blank, and the visual-proof section does not include before-and-after images or video, although it links to a Windows comparison. These gaps do not make the otherwise complete description largely incomplete.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files. (2 skipped: 2 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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