Skip to content

[Windows][26.1023.51421] Chrome window ownership validation fails with identical expected and actual app IDs #57972

Open

Description

@ROTl24

Codex App version

26.1023.51421 (build 22530), release channel prod.
Official updater returned up_to_date on October 29, 2026.

Subscription

Not included in this report.

Platform

Windows; exact OS version not collected. Google Chrome; exact browser version not collected.

Summary

The bundled mcp__cua_repl tool can enumerate Chrome desktop windows. The browser extension connection also successfully lists tabs, titles, and URLs. However, calling cua.getApp({ windowId }) with a freshly enumerated Chrome window ID fails before returning accessibility state or screenshots.

The expected and actual application identifiers printed in the error are identical. As a control test, the same tool successfully connected to the ChatGPT desktop window and returned its accessibility tree.

Full error

window id 10355392 no longer belongs to Chrome.M5G25YEHXDOZFNNRE3FRKBLR5U; current owner is Chrome.M5G25YEHXDOZFNNRE3FRKBLR5U

Steps to reproduce

  1. Open Chrome and keep a regular browser window open.
  2. In Codex, call:
    await cua.listWindows();
  3. The result includes the following Chrome window. Only the title is redacted; the other fields retain their observed values:
    {
      "app": "Chrome.M5G25YEHXDOZFNNRE3FRKBLR5U",
      "id": 10355392,
      "title": "[Page title redacted] - Google Chrome"
    }
  4. Use the freshly returned window ID:
    let chromeWindow = await cua.getApp({ windowId: 10355392 });
  5. The tool returns the error above without obtaining window state.

On another system, use the ID returned by the current enumeration rather than the example ID.

Expected behavior

Connect to Chrome using the valid window ID, retrieve accessibility state or screenshots, and support ordinary clicking and scrolling.

Actual behavior

Window ownership validation fails before window state is returned. The same error persisted even when the Chrome window title changed.

Troubleshooting already attempted

  • Re-enumerated windows and used the freshly returned ID: same error.
  • Reset the cua_repl JavaScript session and reconnected: same error.
  • Retried after opening a new Chrome window: same error. The tool still returned the original window ID, so a new window identity was not confirmed.
  • Restarted Codex and reconnected: same error.
  • Connected to the ChatGPT native window as a control: successful accessibility tree.
  • Checked the Chrome browser extension connection: successfully listed tabs, titles, and URLs.
  • Checked official Codex updates: up_to_date; no update available.

Browser data was not cleared, Chrome was not reinstalled, and ownership validation was not modified.

Preliminary findings

Read-only inspection of the local installation found the error string in the bundled Windows native component:

@oai/sky/bin/windows/codex-computer-use.exe

The Windows getApp path retrieves a window and then requests its state. Evidence suggests a window identity resolution or ownership validation issue; the root cause is not confirmed.

Please investigate why the identical displayed identifiers fail validation and advise a supported fix or further diagnostic steps.

Impact

Native desktop control of Chrome is blocked, including reading pages, capturing screenshots, and scrolling.

Feedback ID

Submitted through the app's official feedback dialog:
01a1855d-92a8-7df2-9086-da5994dd6f07

The in-app report excluded documents, diagnostic logs, and browser tabs/logs. No website names, browsing URLs, account details, or private files are included here.

Related reports

Similar Windows ownership-validation symptoms have been reported in #57739, #55039, and #37484. This report adds the Chrome reproduction using cua.getApp on build 22530, with successful native access to the ChatGPT window as a control.

Activity

  1. added
    bug
    app
    windows-os
    on Oct 29, 2026
  2. github-actions commented on Oct 29, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. athiphan1106 commented on Nov 5, 2026

    @athiphan1106

    Additional Windows diagnosis using the supported Computer Use APIs (2026-11-06). Please investigate canonical app resolution for a Chromium-derived executable that shares the registered Chrome identifier.

    Environment: codex-cli0.166.0 and bundled Computer Use26.1029.61003; Windows. The affected browser is CloakBrowser Chromium146.0.7680.177.5 (file metadata146.0.7680.177, product Chromium). The control browser is installed Google Chrome156.0.8078.80.

    Observed facts:

    • The affected window repeatedly failed get_window/get_window_state with window id [returned handle] no longer belongs to Chrome; current owner is Chrome, before page content or input. A supported cua.getApp({windowId}) attempt on the original returned window also failed.
    • Fresh cua.listWindows() and cua.listApps() now enumerate BOTH browsers with app:"Chrome". One app entry, displayName:"Google Chrome", contains the two distinct returned windows. Their titles distinguish Chromium from Google Chrome; titles and handles are omitted here.
    • Read-only OS process metadata distinguishes the two executable paths. Windows App Paths and the ChromeHTML open command resolve chrome.exe to the Google Chrome installation, not the affected Chromium executable.
    • Both root processes belong to the same interactive Windows user and session. The affected process remains the original process. There is no explicit app-id or accessibility override on either root.
    • Supported accessibility reads previously succeeded on the Google Chrome control and Notepad. Screenshot capture on Google Chrome separately timed out; we do not equate that with the ownership failure.

    The shared canonical app ID plus distinct executable paths is an observed ambiguity. That this ambiguity causes the native comparison to fail is still a hypothesis, not a confirmed root cause. The failed selection was not repeated after this inventory because neither the original process nor provider capability had changed.

    Reproduction when the maintainers have an affected setup: enumerate with cua.listWindows(), select the unique intended Chromium window from the returned records, then call cua.getApp({windowId: selected.id}). Do not substitute app fields or reconstruct handles. Compare with the normal Chrome window under the same provider and user.

    Could you provide a supported diagnostic showing the expected versus resolved executable identity, or a fixed provider build that retains ownership validation? We have not located the native comparator implementation in the editable project sources. Disabling ownership checks, substituting app IDs, changing browser security settings or borrowing another browser session is not an acceptable fix.

    No private page URLs, account names, screenshots, raw logs, user paths, credentials or machine identifiers are attached. No browser reload/restart, production code change, permission/registry change or alternate CDP/helper access was performed for this diagnosis. This report does not claim a repair.

  4. abangkis commented on Nov 29, 2026

    @abangkis

    Windows Computer Use rejects a Chrome for Testing window that it enumerates as Chrome

    Additional reproduction for openai/codex#57972. Tested on November 29, 2026. The blocked developer workflow is read-only inspection of a desktop timeline served by a bundled Chrome for Testing browser. The same failure reproduces with a local HTML file and a fresh browser profile.

    Environment

    Component Version
    Windows 11 Pro x64 26300.9974
    Codex for Windows 26.1120.6357.0
    Bundled Computer Use plugin 26.1120.50957
    @oai/sky 0.7.26

    Reproduction

    Save the two files included below as fixture.html and Open-Fixture.ps1. Place them in one directory and run the following from that directory with PowerShell. Supply the path to the available Chrome for Testing binary. The launcher creates a new disposable profile for each run. The HTML file contains a heading and body marker and has no scripts or network dependencies.

    $runDirectory = (New-Item -ItemType Directory -Path ('owner-probe-' + [guid]::NewGuid().ToString('N'))).FullName
    $testingChrome = Read-Host 'Full path to the Chrome for Testing chrome.exe'
    .\Open-Fixture.ps1 -BrowserPath $testingChrome -RunDirectory $runDirectory
    1. Keep the fixture window open. Copy the exact WindowTitle and current WindowId printed by the launcher. Windows sourced that handle from the browser process that opened the isolated profile.
    2. Run the following in the Codex Windows Computer Use Node REPL. Replace the two placeholders with the launcher values for this run. Use the app identifier returned by discovery.
    3. Close the fixture normally. Repeat with system Chrome, the same HTML and the same probe. The launcher prints a new receipt for that run.
    const { sky } = await import("@oai/sky");
    const title = "<WindowTitle from this launch>";
    const hwnd = Number("<WindowId from this launch>");
    const matches = (await sky.list_windows()).filter(w => w.title === title);
    if (matches.length !== 1 || Number(matches[0].id) !== hwnd) {
      throw new Error("Fixture window cannot be identified uniquely");
    }
    const w = matches[0];
    nodeRepl.write(JSON.stringify({ id: w.id, app: w.app }));
    const target = await sky.get_window({ id: w.id, app: w.app });
    const state = await sky.get_window_state({
      window: target, include_text: true, include_screenshot: false
    });
    const tree = [state.accessibility?.tree, state.accessibility?.document_text].join(" ");
    nodeRepl.write(JSON.stringify({
      sameWindow: state.window.id === w.id,
      bodyMarker: tree.includes("FIXTURE-BODY-47B2")
    }));

    System Chrome control command:

    $systemChrome = Join-Path $env:ProgramFiles 'Google\Chrome\Application\chrome.exe'
    .\Open-Fixture.ps1 -BrowserPath $systemChrome -RunDirectory $runDirectory

    Observed results

    Browser Windows launch Provider label First failing call or readback
    Bundled Chrome for Testing 152.0.7977.54 Ordinary window, default identity, fresh profile Chrome get_window raised window id <HWND> no longer belongs to Chrome; current owner is Chrome
    Installed Google Chrome 158.0.8127.38 Ordinary window, default identity, fresh profile Chrome get_window and get_window_state succeeded. Both sameWindow and bodyMarker were true.

    Prior controls reproduced the same error with the bundled binary in app mode, both with its default window AppUserModelID and with the application's explicit development AppUserModelID. Restoring the original ID gave the same result. In the affected daily setup, both browser processes and the Computer Use helper were in the same interactive session at Medium integrity. A fresh read-only attempt on the daily timeline still failed at get_window after the two minimal fixture runs.

    The first visible failure is in Computer Use window binding, before UI state or input. The two binaries differ in version, distribution and install path. The observations do not identify the hidden comparison or single out one of these differences as the cause.

    Expected behavior and maintainer question

    For the freshly enumerated, independently matched fixture, binding should return the correct window and allow the body marker to be read. If the provider detects a genuine mismatch, a non-sensitive diagnostic identifying the mismatched field would make it actionable. Is there a released helper or supported configuration for a side-by-side Chrome for Testing executable on Windows? Which build and identity fields should we use to verify the fix?

    Retest criterion

    Repeat the ordinary-window fixture after a proposed fix and require a matching window and body marker on two fresh launches of the affected binary. Recheck the installed Chrome control. For product acceptance, repeat the daily timeline test on two launches, verify a harmless intended-window interaction, and check the taskbar relaunch and separate capture-host targeting.

    Related reports: Chrome window identity validation and Windows Computer Use identical-owner reports.

    fixture.html
    <!doctype html>
    <html lang="en">
    <meta charset="utf-8">
    <title>CUA owner probe 47B2</title>
    <h1>Window ownership probe</h1>
    <p>Body marker: FIXTURE-BODY-47B2</p>
    </html>
    Open-Fixture.ps1
    param(
        [Parameter(Mandatory)][string] $BrowserPath,
        [Parameter(Mandatory)][string] $RunDirectory
    )
    $ErrorActionPreference = 'Stop'
    $exe = (Resolve-Path -LiteralPath $BrowserPath).Path
    $root = (Resolve-Path -LiteralPath $RunDirectory).Path
    $page = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot 'fixture.html')).Path
    $profile = Join-Path $root ('profile-' + [guid]::NewGuid().ToString('N'))
    $null = New-Item -ItemType Directory -Path $profile
    $arguments = @(
        ('"--user-data-dir={0}"' -f $profile)
        '--new-window'
        ([uri]$page).AbsoluteUri
        '--no-first-run'
        '--no-default-browser-check'
        '--disable-background-networking'
        '--disable-extensions'
        '--disable-background-mode'
    )
    $proc = Start-Process -FilePath $exe -ArgumentList $arguments -PassThru
    $deadline = [datetime]::UtcNow.AddSeconds(15)
    do {
        Start-Sleep -Milliseconds 150
        $proc.Refresh()
        if ($proc.HasExited) { throw 'Fixture browser exited during startup.' }
        if ($proc.MainWindowHandle -ne 0 -and $proc.MainWindowTitle.StartsWith('CUA owner probe 47B2')) { break }
    } while ([datetime]::UtcNow -lt $deadline)
    if ($proc.Path -ne $exe -or !$proc.MainWindowTitle.StartsWith('CUA owner probe 47B2') -or $proc.MainWindowHandle -eq 0) {
        throw 'Could not confirm the fixture window on the launched browser process.'
    }
    [pscustomobject]@{
        ProcessId = $proc.Id
        WindowId = $proc.MainWindowHandle.ToInt64()
        WindowTitle = $proc.MainWindowTitle
        BrowserVersion = $proc.MainModule.FileVersionInfo.ProductVersion
        SessionId = $proc.SessionId
    }
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