Skip to content

Windows Computer Use: confirmed Korean UIA document-role failure and numeric ControlType fix #54458

Open

Description

@heelee912

Summary

On Korean Windows (ko-KR), an actual Codex Computer Use call against Chrome failed with could not determine the current browser URL on Windows, even though the browser's UI Automation document element exposed a nonempty URL value.

Live native observation identified the failing predicate: the helper compared the localized document role 문서 with the fixed English string document. Replacing only that predicate with a successful numeric CachedControlType == UIA_DocumentControlTypeId check restored actual screenshot and accessibility requests.

Related report: #53026. This report collects the Korean runtime reproduction, the causal before/after evidence, and the published repair tool in one place. The same evidence was initially added in this comment.

Environment observed on 2026-10-16

Component Observed version / identity
Codex installed Windows MSIX 26.1007.9446.0
Windows x64, build 26100.9711 (24H2)
Windows UI culture ko-KR
Computer Use plugin 26.1007.71326
@oai/sky 0.7.7
Chrome 155.0.8059.79

The affected component was the bundled @oai/sky/bin/windows/codex-computer-use.exe native helper.

Reproduction and actual behavior

  1. Use the affected Codex Windows installation with Korean UI Automation document-role names and an open Chrome window.
  2. Obtain that window with the documented @oai/sky API. Window lookup itself succeeds.
  3. Ensure the window is not minimized, then request its state:
await sky.get_window_state({
  window,
  include_screenshot: true,
  include_text: true,
});

The actual state request fails with the error containing:

could not determine the current browser URL on Windows

The diagnostic calls did not navigate the page. The error occurred after successful window lookup, within the native state-capture path.

Expected behavior

A UI Automation Document element should be recognized by its numeric ControlType, regardless of its localized display name. An eligible RootWebArea with a successfully read, nonempty URL value should support the normal Chrome state request in Korean as it does in English.

Live evidence at the failing predicate

The initial observation recorded native getter results and comparisons without replacing their arguments or results.

Property / operation Observed result
Numeric UIA ControlType 50030 (UIA_DocumentControlTypeId)
CachedLocalizedControlType 문서
CachedAutomationId RootWebArea
Current value lookup HRESULT 0; nonempty value
Cached value lookup HRESULT 0; nonempty value
Document-role comparison 문서 compared with ASCII document: false
URL candidate after visiting the element Absent
Native URL-result discriminator 0x8000000000000002

The mismatch appeared in 22 RootWebArea comparisons during 11 internal state captures within a five-second observation interval. These are internal capture counts, not 11 separate tool requests.

The native helper's resulting error propagates through the Computer Use response. The localized display name is being used as a semantic identifier in the URL-candidate selector.

Narrow correction and causal validation

Before: localized_role.eq_ignore_ascii_case("document")
After:  successful CachedControlType read
        AND CachedControlType == UIA_DocumentControlTypeId  // 50030

For causal validation, only this predicate was changed in the installed native helper: one existing 42-byte instruction region, with 36 bytes differing. Reconstructing the original region reproduced the original whole-file SHA-256, establishing that every byte outside that region was identical.

A failed numeric-property getter or a non-Document ControlType follows the existing non-candidate path. Subsequent RootWebArea matching and nonempty-value selection remain intact.

This was a local binary-level repair, not a build from upstream native source.

Actual Computer Use results after the correction

The documented API was called against the same Chrome window after the predicate change:

Request Actual result
Screenshot + accessibility Success: one 1920 x 1032 screenshot and a 48,951-character accessibility tree
Accessibility only Success: accessibility tree returned
Screenshot only Success: one screenshot returned

None of these three calls returned the URL-detection error. An initial post-change request reported a separate minimized-window condition; activate_window, followed by refreshing the window with get_window, resolved that condition before the three successful requests above.

The results establish the cause and recovery for this observed Korean Chrome environment. They do not establish every possible cause of the same error text, nor do they constitute coverage of click/type operations or every locale.

Published repair code

The fork adds a Python standard-library tool and a README. It supports read-only inspection, applying the exact predicate correction, and restoring the original bytes. It accepts only these two complete helper hashes:

Original: d36ae6626bdced7ae07935d1a91be14425e8f6ce7c9b5c69f2d8d7df0c130d83
Repaired: c9b9981288951976c36b4c8febc8c2e21b53dfe9bab66f299c11f51592145855

Apply/readback, exact restoration, repeated apply/restore, rejection of an exclusively opened target, and rejection of an unknown hash were checked on a temporary file copy. The copy was removed; those packaging checks did not modify the installed helper.

The native helper implementation was absent from the inspected public repository tree at 6b991972c5b539198dcea9bac4fc14e57559c3af. Consequently, the published code is a version-bound local repair tool. It is not an upstream native-source fix or a rebuilt Codex app. No OpenAI executable is included. Editing the helper changes its Authenticode result to HashMismatch; exact restoration reconstructs the original file.

Requested upstream resolution

Please replace the localized document-kind comparison with a successful numeric CachedControlType == UIA_DocumentControlTypeId check in the native Windows Computer Use implementation, and ship the change in an official app/runtime update. Please link the maintainer PR or tracked internal fix here.

Suggested focused regression coverage:

  1. Document ControlType 50030 with display names such as 문서, document, and another translated name selects the same eligible RootWebArea URL candidate.
  2. A different ControlType is not classified as Document merely because its display name is document.
  3. A failed getter does not consume an uninitialized numeric property value.
  4. Screenshot-only, accessibility-only, and combined requests succeed against the same eligible Chrome window on Korean Windows.

The local tool performs a one-time repair and does not watch or patch later app updates. The requested official source correction would be delivered through normal app/runtime updates.

Community write-up

The repair tool and its actual validation results are also shared in Show and tell #54474.

Activity

  1. added
    bug
    app
    windows-os
    on Oct 16, 2026
  2. oysOYSoys commented on Nov 22, 2026

    @oysOYSoys

    I reproduced the native Windows Computer Use URL-confidence error with Brave on Korean Windows (ko-KR). The window was listed successfully, but cua.getApp stopped before returning page state.

    Read-only inspection of the bundled @oai/sky 0.7.17 Windows helper confirmed that the same locale-sensitive check is still present. The URL candidate selector compares the localized UI Automation control type with the fixed English string document before checking RootWebArea. A Korean 문서 label fails that comparison. This finding is from static inspection of the current helper. I have not run a patched 0.7.17 build.

    Could the team provide a signed test build with the numeric UIA_DocumentControlTypeId (50030) check, or a supported way to run a development build through the built-in Computer Use path in an isolated Windows VM? I’d like to keep Windows in Korean and retain the existing URL, window identity, and access-policy checks. The end-to-end test would read a permitted public HTTPS page in Brave, click a link, verify the destination through native Computer Use, and confirm that a destination denied by policy remains blocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcomputer-usewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions