Skip to content

Windows Computer Use cannot attach to any window; reports identical process as wrong owner #37484

Open

Description

@wreynolds79

What version of the Codex App are you using (From “About Codex” dialog)?

28.803.41515

What subscription do you have?

Pro

What platform is your computer?

Windows NT 10.0.26200.0 x64

What issue are you seeing?

Computer Use previously worked correctly on this Windows computer. When activated, the screen would display the blue banner indicating that ChatGPT was controlling the computer.

Computer Use no longer starts. Codex can list the open Windows applications and their window IDs, but any attempt to capture or control a window fails with a contradictory window-owner error.

Example error:

window id 67348 no longer belongs to
process:C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE;
current owner is
process:C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE

What steps can reproduce the bug?

Steps to reproduce

Open the ChatGPT/Codex Windows desktop app.

Open Microsoft Excel or another Windows application.

Start a Codex task that uses Computer Use.

Codex successfully lists the application and window ID.

Codex attempts to inspect or control the selected window.

The window-owner error appears before Computer Use starts.

What is the expected behavior?

Expected behavior

Computer Use should attach to the selected window, display the blue control notice, and allow Codex to see, click, and type in the application.

Additional information

Computer Use rejects every window before the control session begins. The blue control notice never appears.

Troubleshooting already completed

Closed and reopened the affected applications.

Restarted the ChatGPT/Codex desktop app.

Restarted Windows.

Verified applications were not intentionally being run as Administrator.

Repaired the desktop app through Windows Settings.

Uninstalled and reinstalled the desktop app.

Found two different codex-computer-use helper processes and stopped both.

Confirmed only one current helper/runtime was subsequently active.

Renamed the existing Computer Use runtime directory so the app generated a fresh copy:

Old: f1bf3cd3a5929acd.old

Newly generated: f1bf3cd3a5929acd

Reset the Computer Use session and retested.

Tested against Excel, Dockmaster, and ChatGPT’s own window.

The same error persists with the newly generated runtime.

Impact

This prevents all Windows desktop automation. A saved workflow that previously controlled Dockmaster, Excel, and a browser can no longer run.

Additional observation

The failure appears to occur during window validation or process-owner comparison. The error states that the window no longer belongs to the expected process, but prints the exact same executable path for both the expected and current owner.

Activity

  1. added
    app
    on Aug 7, 2026
  2. added
    bug
    windows-os
    on Aug 7, 2026
  3. Raziel-989 commented on Aug 7, 2026

    @Raziel-989

    Same issue here

    Windows Codex Desktop: Computer Use transport fails with spawn EPERM despite helper launching successfully outside Desktop bridge

    Summary

    Computer Use in Codex Desktop on Windows fails before attaching to any application.

    Initially, the Computer Use/UI-control bridge failed with:

    EPERM: operation not permitted, lstat 'C:\Users\Iron Throne\AppData\Local\OpenAI\Codex'
    

    Changing the Windows sandbox configuration from:

    [windows]
    sandbox = "elevated"

    to:

    [windows]
    sandbox = "unelevated"

    resolved the lstat failure.

    After that change, the Computer Use package successfully loads, but initialization now fails at the window-control transport with:

    spawn EPERM
    

    Extensive testing shows that Windows can access the Codex directory, execute the Computer Use helper, and even spawn that exact helper from Codex's bundled Node runtime successfully.

    This appears specific to the process-launch context used by the Codex Desktop Computer Use bridge.

    Codex versions

    Microsoft Store/AppX package:

    OpenAI.Codex_26.803.5235.0_x64__2p2nqsd0c76g0
    

    Codex Desktop configuration reports:

    BROWSER_USE_CODEX_APP_VERSION = "26.803.41515"
    

    Codex CLI:

    codex-cli 0.147.0-alpha.6.5
    

    Platform:

    Windows x64
    

    Configuration

    Computer Use is enabled:

    [plugins."computer-use@openai-bundled"]
    enabled = true

    Current Windows sandbox configuration:

    [windows]
    sandbox = "unelevated"

    The problem originally occurred with sandbox = "elevated" as an lstat EPERM.

    Switching to unelevated fixed that first failure but exposed the current spawn EPERM.

    Reproduction

    1. Launch Codex Desktop on Windows.
    2. Enable/use the bundled Computer Use plugin.
    3. Start a task requiring control of a Windows application.
    4. Computer Use initializes.
    5. The package loads.
    6. Window-control transport initialization fails with:
    spawn EPERM
    
    1. No connection to the target Windows application is established.

    The target application is not relevant to the failure because the transport fails before attachment.

    Original failure

    With:

    [windows]
    sandbox = "elevated"

    the bridge failed earlier with:

    EPERM: operation not permitted, lstat 'C:\Users\Iron Throne\AppData\Local\OpenAI\Codex'
    

    The directory exists and is accessible.

    ACL:

    NT AUTHORITY\SYSTEM              FullControl
    BUILTIN\Administrators           FullControl
    IRON-THRONE\Iron Throne         FullControl
    

    Owner:

    IRON-THRONE\Iron Throne
    

    PowerShell can enumerate the directory normally.

    Contents include:

    bin
    runtimes
    chrome-native-hosts-v2.json
    

    Bundled Node lstat test

    Using Codex's own bundled CUA Node executable:

    C:\Users\Iron Throne\AppData\Local\OpenAI\Codex\runtimes\cua_node\f1bf3cd3a5929acd\bin\node.exe
    

    I executed:

    const fs = require("fs");
    
    fs.lstat(process.argv[1], (e, s) => {
        if (e) {
            console.error(e);
            process.exit(1);
        }
        console.log(s);
    });

    against:

    C:\Users\Iron Throne\AppData\Local\OpenAI\Codex
    

    Result:

    Stats {
      ...
    }
    

    The lstat succeeds from the bundled Node runtime.

    Computer Use helper verification

    Exact helper:

    C:\Users\Iron Throne\AppData\Local\OpenAI\Codex\runtimes\cua_node\f1bf3cd3a5929acd\bin\node_modules\@oai\sky\bin\windows\codex-computer-use.exe
    

    Test-Path:

    True
    

    Direct execution:

    & $cua --help

    Result:

    Error: unknown argument: --help
    

    This confirms the executable launches.

    Authenticode

    Get-AuthenticodeSignature reports:

    Status: Valid
    StatusMessage: Signature verified.
    Signer: OpenAI OpCo, LLC
    

    The certificate is issued through Microsoft's verified code-signing infrastructure.

    Zone.Identifier

    No Zone.Identifier alternate stream is present.

    Only the normal :$DATA stream exists.

    Therefore the executable does not appear to be Mark-of-the-Web blocked.

    Start-Process test

    Executing:

    Start-Process -FilePath $cua -ArgumentList "--help" -Wait -PassThru

    successfully creates:

    codex-computer-use
    

    So Windows can directly create the helper process.

    Critical reproduction: bundled Node child_process.spawn()

    I then used the exact Node executable bundled with the CUA runtime:

    C:\Users\Iron Throne\AppData\Local\OpenAI\Codex\runtimes\cua_node\f1bf3cd3a5929acd\bin\node.exe
    

    to execute:

    const { spawn } = require("child_process");
    
    const exe = process.argv[1];
    
    const p = spawn(exe, [], {
        stdio: ["ignore", "pipe", "pipe"]
    });
    
    p.on("spawn", () => {
        console.log("SPAWN SUCCESS");
        console.log("PID:", p.pid);
        setTimeout(() => p.kill(), 1000);
    });
    
    p.on("error", err => {
        console.error("SPAWN ERROR");
        console.error(err);
        process.exitCode = 1;
    });

    using the exact Computer Use helper path.

    Result:

    SPAWN SUCCESS
    PID: 6804
    

    Therefore this process chain succeeds:

    PowerShell
    → Codex bundled CUA node.exe
    → Node child_process.spawn()
    → codex-computer-use.exe
    → SUCCESS
    

    while the Codex Desktop Computer Use bridge reports:

    spawn EPERM
    

    when initializing the window-control transport.

    Other helper verification

    These binaries also execute successfully:

    codex-windows-sandbox-setup.exe
    codex-command-runner.exe
    codex.exe
    

    Results included:

    codex-windows-sandbox-setup.exe
    → executed and attempted to parse its expected payload
    
    codex-command-runner.exe
    → executed and reported missing pipe input
    
    codex.exe --version
    → codex-cli 0.147.0-alpha.6.5
    

    Troubleshooting already performed

    I have already tried:

    • Restarting Codex Desktop
    • Fully terminating Codex processes
    • Recreating %LOCALAPPDATA%\OpenAI\Codex
    • Codex Repair
    • Codex Reset
    • Reinstall/recovery attempts
    • Checking folder ACLs
    • Checking folder ownership
    • Checking helper existence
    • Checking helper Authenticode signature
    • Checking Zone.Identifier
    • Direct helper execution
    • Start-Process
    • Bundled Node fs.lstat()
    • Bundled Node child_process.spawn()
    • Changing Windows sandbox from elevated to unelevated

    The issue persists.

    Observed distinction

    With elevated sandbox:

    Computer Use bridge
    → lstat C:\Users\Iron Throne\AppData\Local\OpenAI\Codex
    → EPERM
    

    With unelevated sandbox:

    directory access/package loading
    → succeeds
    
    window-control transport startup
    → spawn EPERM
    

    Outside the Desktop bridge:

    bundled Node
    → fs.lstat()
    → SUCCESS
    
    bundled Node
    → child_process.spawn(codex-computer-use.exe)
    → SUCCESS
    

    Expected behavior

    Computer Use should successfully start its native window-control transport and attach to Windows applications.

    Actual behavior

    Codex Desktop fails while starting the window-control transport with:

    spawn EPERM
    

    despite the same helper being spawnable from the same bundled Node runtime outside the Desktop bridge.

    Suspected area

    This appears to be related to the process token, environment, native-pipe initialization, or other launch context specifically established by Codex Desktop for the Computer Use transport.

    The underlying executable and ordinary Node spawn() mechanism both work.

    Additional note

    The target application itself is unaffected and works normally.

    The failure occurs before Computer Use establishes control of the target application.

  4. nicolion0322-sketch commented on Sep 23, 2026

    @nicolion0322-sketch

    Same-path owner mismatch on Windows, with additional wrong-app identification and launch behavior

    As of September 23, 2026, I can reproduce the same contradictory window-owner error. I also observed an incorrect association with another application, but have not established whether it shares the root cause of this issue.

    Environment

    • Microsoft Store package OpenAI.Codex: 26.915.4065.0
    • Bundled Computer Use plugin: 26.915.31945
    • Windows 11 Pro x64, OS build 26200
    • Target A: a locally developed Python 3.10 / pywebview / WebView2 application packaged with PyInstaller onefile
    • Application B: a different desktop application on the same PC, with a Start menu shortcut
    • Paths, both application names, executable filenames, and the target window title below are anonymized. No screenshots, complete configuration files, or user data are included.

    Reproduction: window-owner mismatch

    1. Close B and manually launch A's executable.
    2. Confirm through Windows process information that the running executable is A at the expected path.
    3. Import @oai/sky in Node REPL and call sky.list_windows().
    4. The returned window title belongs to A, but its app field points to B's executable.
    5. Select the single returned window matching A's title and pass its unmodified id and app to sky.get_window({id, app}). This fails. No fabricated window objects or identifiers are used.

    Example result (application names, path, and title anonymized; actual observed window ID):

    {"app":"D:\\Apps\\OtherApp\\OtherApp.exe","id":266048,"title":"TargetApp"}

    Error (the same path appears as both expected and current owner):

    window id 266048 no longer belongs to D:\Apps\OtherApp\OtherApp.exe; current owner is D:\Apps\OtherApp\OtherApp.exe
    

    Additional observation: launching the wrong application

    In one attempt, explicitly passing A's absolute executable path to sky.launch_app, as shown below with an anonymized path, launched B instead:

    await sky.launch_app({app: "D:\\Apps\\TargetApp\\TargetApp.exe"});

    The subsequent window list showed B's own title, and Windows process inspection found that A was not running.

    To avoid unintended interaction, we stopped using launch_app and launched A manually. The identification mismatch persists after manual launch.

    Troubleshooting that did not resolve it

    • Closing and reopening the target application.
    • Resetting the Node REPL session and reinitializing @oai/sky.
    • Disabling the Computer Use plugin, restarting the Codex desktop app, then re-enabling the plugin.
    • Retesting with Codex set to Full Access.
    • Setting a unique, version-independent process AppUserModelID in A before window creation.
    • Adding distinct ProductName, FileDescription, InternalName, and OriginalFilename VERSIONINFO fields to A's executable, rebuilding it, and launching it manually.

    The current process PATH contains neither application's directory. The Codex configuration inspected contains no entry redirecting A to B. However, the internal cache or matching logic responsible has not been identified.

    Local automated checks of A's startup, WebView2 rendering, saving, and PNG export pass. The failure occurs during Computer Use target identification/acquisition. We have not established whether every other application is affected on this machine.

    Questions

    • Is there a fixed build or supported diagnostic procedure for the owner mismatch that prints the same executable path on both sides?
    • Is an app identifier inconsistent with the window title/actual process, or launching another application despite an explicit absolute path, a related known issue?
    • Is there a supported way to inspect or repair incorrect application associations?

    No input was sent to the incorrectly identified application. We have not bypassed owner validation or modified the Computer Use helper.

  5. sainiraja333-hue commented on Oct 17, 2026

    @sainiraja333-hue

    I can reproduce the same issue with Power Automate Desktop on Windows.

    The application appears in the window list, but screen capture fails with:

    window id ... no longer belongs to ... PAD.MachineRegistration.Host.exe; current owner is ... PAD.MachineRegistration.Host.exe

    The expected and current owner paths are identical. Notepad Computer Use works, but Power Automate Desktop screen capture fails. Restarting the application and retrying did not resolve the issue.

    Please investigate whether this is the same Windows Computer Use window-owner validation bug.

  6. jackyang18888-debug commented on Oct 21, 2026

    @jackyang18888-debug

    Additional reproduction: Chrome installed through a directory junction

    Windows x64, OpenAI.Codex MSIX 26.1016.6573.0; Computer Use plugin 26.1016.51333; @oai/sky 0.7.12; bundled CUA runtime 0.0.33/20261020111233-d92591792fee.

    The supported window APIs enumerate a Chrome window and return its canonical app ID Chrome. Reading state with the unmodified returned app and window ID rejects it with window id <HWND> no longer belongs to Chrome; current owner is Chrome. The window is independently verified as belonging to chrome.exe.

    In this specific reproduction, the installed-app catalog's target_path is C:\Program Files\Google\Chrome\Application\chrome.exe, and C:\Program Files\Google\Chrome is a directory junction to D:\Program Files\Google\Chrome.

    Read-only OS diagnostics show:

    • QueryFullProcessImageNameW for the Chrome window's owner process returns the D: path successfully.
    • GetFinalPathNameByHandle on both C: and D: executable paths returns the same D: path.
    • Both paths have the same volume serial and file index, confirming they identify the same file.
    • The textual paths differ even after case/separator normalization.

    This is concrete evidence for a junction-alias mismatch in this reproduction, not a claim that every identical-owner report has this cause. No ownership or approval checks were bypassed. No helper injection, binary patch, app-catalog edit, approval edit or shortcut change was used.

    The current official x64 MSIX linked from the Windows deployment documentation was inspected read-only. Its native codex-computer-use.exe SHA-256 is 6fcc7c6482dfd9b8e0cfc07f55b89d526779948b9b3eda30eb2495573a36cc08, identical to the installed native component; reinstalling this artifact would therefore not replace the owner-check implementation.

    Could the component owner provide a supported diagnostic/fixed Windows build, or identify a public source/build entry point for this module? A repair should resolve junction aliases consistently while preserving application authorization, reject different executables, and fail closed when identity cannot be verified. This report does not request any ownership-validation bypass.

    No account IDs, project files, screenshots, conversation links, full logs, personal profile paths, or live window/process IDs are included.

  7. nicolion0322-sketch commented on Nov 11, 2026

    @nicolion0322-sketch

    Follow-up to my September 23 report: I retested on the same Windows PC on November 12, 2026 (JST), and could use Computer Use with the target app.

    • Computer Use initialized and listed the target window with the correct executable path. Passing the returned window ID and app identifier unchanged to sky.get_window() succeeded, and I could capture the target window.
    • After closing the target app, I passed its absolute executable path to sky.launch_app(). The intended app opened, and I could capture its window again. I did not observe another app opening.

    I don’t know what changed. This result is limited to the PC and target app I tested.

  8. myu85123-web commented on Nov 24, 2026

    @myu85123-web

    I reproduced the same window-owner error with DingTalk on Windows.

    • Installed desktop package: OpenAI.Codex 26.1117.4957.0
    • Bundled Computer Use plugin: 26.1117.41037
    • sky.list_apps() and sky.list_windows() both list the running DingTalk window under a Windows-generated Microsoft.AutoGenerated.{…} app ID.

    Passing the returned window ID and app ID to sky.get_window() fails. Calling sky.get_window({ id }) without the optional app ID returns a window object, but both sky.get_window_state() and sky.activate_window() fail with the same error: “window id … no longer belongs to …; current owner is …”. The expected and reported owner IDs are identical.

    Fully restarting DingTalk produced a different window ID, and screenshot capture still fails. As a control, Computer Use successfully launched, bound, and activated Notepad on the same machine.

    Is there a supported workaround for windows with a Windows-generated app ID, or any specific diagnostic that would help narrow down the owner check?

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