Skip to content

Windows Computer Use rejects Blender window with identical owner and can capture it under Explorer #36335

Open

Description

@barrettpk1-arch

Summary

On Windows, Computer Use enumerates a Blender window correctly but get_window, activate_window, and get_window_state reject it with a contradictory ownership error:

window id <HWND> no longer belongs to blender.4.5; current owner is blender.4.5

In one isolation test, Computer Use accepted a window listed as File Explorer but the screenshot contained Blender instead. This suggests the Window2 HWND-to-app ownership mapping can become cross-wired.

Environment

  • Windows 11 Pro 25H2, build 26200.8875
  • Codex desktop package: OpenAI.CodexBeta_26.727.4816.0_x64
  • Computer Use plugin: 26.727.40816
  • Blender: 4.5.12 LTS
  • Blender app identifier returned by list_apps / list_windows: blender.4.5

Minimal reproduction

  1. Install and enable the bundled Computer Use plugin.
  2. Approve only the canonical Blender app ID blender.4.5.
  3. Launch a fresh Blender 4.5.12 process with one visible window.
  4. Call list_windows(); it returns exactly one Blender window:
    {"app":"blender.4.5","id":4918426,"title":"<blend file> - Blender 4.5.12 LTS"}
  5. Rehydrate the returned object:
    const w = await sky.get_window({ id: returned.id, app: returned.app });
  6. The call fails:
    window id 4918426 no longer belongs to blender.4.5; current owner is blender.4.5
    

Passing only the ID to get_window({ id }) returns a window object, but subsequent capture still fails with the same message.

Troubleshooting completed

  • Fully quit and restarted Codex.
  • Uninstalled and reinstalled Computer Use.
  • Enabled its server and skill toggles.
  • Restarted only the codex-computer-use helper.
  • Launched fresh Blender processes and fresh HWNDs.
  • Removed duplicate process-path approvals, leaving only blender.4.5.
  • Tested with the Blender splash disabled.
  • Confirmed the plugin cache matches the bundled marketplace copy.
  • Confirmed unrelated File Explorer capture succeeds through the same helper.

None changed the Blender failure.

Wrong-window isolation evidence

A window returned as:

{"app":"process:C:\\Windows\\explorer.exe","id":657810,"title":"<folder> - File Explorer"}

was accepted by get_window_state, but the resulting screenshot showed the Blender viewport and splash. This is a privacy/safety concern in addition to preventing Blender control.

Expected behavior

A fresh window object returned by list_windows should bind and capture when the reported owner and current owner are both blender.4.5. Computer Use must not capture a different application's content under an Explorer window identity.

Activity

  1. added
    bug
    app
    windows-os
    safety-check
    on Jul 31, 2026
  2. weiwei187242 commented on Aug 3, 2026

    @weiwei187242

    Additional confirmed reproduction with WeChat DevTools (an NW.js application).

    Environment

    • Windows 11 Pro 25H2, build 26200.8875
    • Codex desktop package: OpenAI.Codex_26.727.6591.0_x64
    • Computer Use plugin: 26.727.51351
    • @oai/sky: 0.6.2
    • WeChat DevTools: Stable v2.01.2510290
    • App identifier returned by both list_apps() and list_windows():
      nwjs._nwjs_mbeehgnikfbgjh.80d774828fb0.Default

    Reproduction

    list_apps() consistently returns the WeChat DevTools windows, including this unique window:

    {
      "app": "nwjs._nwjs_mbeehgnikfbgjh.80d774828fb0.Default",
      "id": 17959512,
      "title": "WeChat DevTools Stable v2.01.2510290"
    }

    Rehydrating that exact returned object fails:

    const w = await sky.get_window({
      id: returned.id,
      app: returned.app,
    });
    window id 17959512 no longer belongs to nwjs._nwjs_mbeehgnikfbgjh.80d774828fb0.Default; current owner is nwjs._nwjs_mbeehgnikfbgjh.80d774828fb0.Default
    

    The reported expected owner and current owner are identical, as in the Blender reproduction above.

    Troubleshooting completed

    • Refreshed list_apps() and retried with the newly returned object.
    • Refreshed through list_windows() and confirmed the same HWND/app mapping.
    • Reset the JavaScript runtime, reinitialized Computer Use, and retried.
    • Confirmed the Computer Use helper, WeChat DevTools, and Codex all run in Windows session 1 at Medium integrity.
    • Confirmed the same helper can bind and capture an unrelated 7-Zip window.

    The WeChat DevTools window remains unbindable after these checks. This suggests the contradictory ownership validation is not Blender-specific and also affects NW.js app identifiers.

  3. piaoxiangbeifang123 commented on Aug 4, 2026

    @piaoxiangbeifang123

    Hi, I'm experiencing what appears to be the same issue with Codex Computer Use on Windows, but with AdsPower's SunBrowser.

    The error is:

    window id 70378 no longer belongs to SunBrowser; current owner is SunBrowser

    The expected owner and current owner are displayed as exactly the same application, but Codex still rejects the window when trying to read or interact with its contents.

    Restarting Codex, AdsPower, and SunBrowser did not resolve the issue.

    Has this been fixed in a newer Codex or Computer Use build, or is there currently a known workaround? I can provide my Windows version, Codex desktop version, Computer Use plugin version, and additional logs if needed.

    Thanks!

  4. 1063716500-sketch commented on Aug 6, 2026

    @1063716500-sketch

    Additional reproduction indicating this may be a system-wide ownership-validation failure rather than an application-specific compatibility issue.

    Environment

    • Windows 10 Pro 22H2, build 19045.6466
    • Desktop app: 26.730.8199.0 (Microsoft Store reported no newer update)
    • Computer Use plugin: 26.730.61639
    • @oai/sky: 0.6.2
    • Native helper: 0.1.0

    Scope

    The same contradictory ownership error reproduces across multiple unrelated applications on the same installation, including:

    • ChatGPT
    • Clash Verge
    • Feishu
    • Thunder
    • Adobe Illustrator
    • File Explorer

    For each affected window, the expected owner and current owner printed in the error are identical:

    window id <HWND> no longer belongs to process:<path>; current owner is process:<same path>
    

    Additional validation

    • get_window({ id }) without an app value can return the correct window object.
    • get_window_state, activate_window, and calls that include the returned app identity fail ownership validation.
    • Windows GetWindowThreadProcessId confirms the HWND is valid and belongs to the process represented by that same executable path.
    • Fully restarting the desktop app and native helper did not change the result.
    • Rebuilding the app-catalog cache did not change the result.
    • Testing freshly enumerated HWNDs and canonical/alternate app identifiers did not change the result.
    • The Store update check reports the installed desktop build as current.

    No screenshots, project files, local paths, or user content are attached to this report.

    This appears to broaden the issue beyond Blender/NW.js/SunBrowser: on this Windows 10 installation, ownership validation rejects every tested application even when its own diagnostic output says both owners are identical.

  5. Bonnald commented on Sep 30, 2026

    @Bonnald

    Additional reproduction: identical-owner rejection for a Windows game

    I can reproduce the contradictory window-owner error with 三国:谋定天下, a Windows game. These observations were collected on October 1, 2026 (UTC+8).

    Environment

    • Windows 10 Pro 22H2, build 19045.7725, x64.
    • Computer Use plugin: 26.928.21956.
    • @oai/sky: 0.7.5.
    • Codex desktop app; current desktop package version and game version have not been independently verified.
    • Native helper SHA-256: 25D792D0661D0E10D04D2CA3AABAE491FAE69F045CF27CF3AB9E906D7AD82910.

    Minimal reproduction

    With the game already running, use the supported API in the trusted Node REPL:

    const { sky } = await import("@oai/sky");
    const candidates = (await sky.list_windows())
      .filter(w => w.title === "三国:谋定天下");
    if (candidates.length !== 1) throw new Error("Expected one game window");
    const returned = candidates[0];
    const window = await sky.get_window({ id: returned.id, app: returned.app });

    Discovery returns (the numeric ID is session-specific):

    {"app":"G:\\Program Files\\NSLG\\NSLG.exe","id":13895852,"title":"三国:谋定天下"}

    get_window fails:

    window id 13895852 no longer belongs to G:\Program Files\NSLG\NSLG.exe; current owner is G:\Program Files\NSLG\NSLG.exe
    

    The expected and current identifiers printed in the error are identical.

    get_window({ id: returned.id }) without app returns a window object, but get_window_state with that returned object fails with the same error. Screenshot-backed and text-only reads both failed during troubleshooting. No fabricated window objects or alternate owner IDs were supplied.

    Launcher/process observations

    list_apps() exposes two entries:

    • G:\Program Files\NSLG\NSLG.exe, display name 三国:谋定天下, with the window above.
    • process:G:\Program Files\NSLG\NSLG Game\com.bilibili.nslg.exe, marked running, with windows: [].

    The Start menu shortcut targets NSLG.exe. Process inspection shows com.bilibili.nslg.exe is a child of NSLG.exe. These observations may help investigate launcher/process identity matching, but do not establish an incorrect mapping or its internal cause.

    Elevation comparison and retries

    1. Initially, Codex and the helper were non-elevated, while the launcher and game were elevated.
    2. Fully exited Codex and manually restarted it as Administrator.
    3. Read-only TokenElevation checks confirmed Codex, the Computer Use helper, the launcher, and the game all had Elevated=1.
    4. Rediscovered the game window and retried both forms of get_window and state capture. The same error persisted.
    5. Restarted Codex normally and repeated discovery and binding; the error persisted.

    Elevation did not resolve this reproduction. Fresh enumeration and ID-only rehydration also did not resolve it. The game itself was not restarted during this sequence; its window ID remained unchanged.

    Successful control comparison and third-party workaround disclosure

    This Windows 10 installation uses CodexComputerUseFix / Codex Capture Compat v0.1.0, an unofficial adjacent version.dll, for a separate WGC screenshot compatibility failure. The helper executable was not modified. The DLL was confirmed loaded, so this is not a clean, unmodified-runtime reproduction.

    Through the official sky API with the workaround active:

    • Notepad screenshots, coordinate clicks, Chinese text entry, and refreshed state succeeded.
    • Windows Calculator screenshots and individual coordinate clicks succeeded; clicking 2, +, 3, = produced 5.
    • A subsequent Calculator screenshot/click comparison also succeeded while the game continued failing.

    The game fails during owner validation. This comparison shows Computer Use is not globally unavailable on this installation, but does not rule out an interaction with the third-party DLL. The game ownership error has not been tested without that DLL.

    Expected behavior and investigation request

    A freshly discovered window should bind to its verified app identity or return a diagnostic that explains the actual mismatch. Please investigate why validation rejects this window while printing identical identifiers, and whether launcher/process identity handling contributes.

    Is there a fixed build or a supported diagnostic procedure? I have not reproduced the wrong-window capture described in the original report. No ownership checks were bypassed, no game actions were performed, and no game settings or account data were changed.

    This diagnostic was prepared with Codex assistance. No full logs, screenshots, account identifiers, or private conversation links are included.

  6. geozocco commented on Nov 1, 2026

    @geozocco

    Additional reproduction on 2026-11-01 using the supported cua_repl API.

    Installed Windows desktop package: OpenAI.Codex 26.1027.3384.0.
    Bundled Computer Use plugin: 26.1027.30824.
    The official Microsoft Store update check reports no newer package available.

    The native inventory correctly returns two running Guppy Log Watch windows
    (main and incident), both with app ID com.netline.guppy-log-watch.
    Selecting each exact, freshly enumerated window with
    await cua.getApp({windowId: returnedWindowId}); fails before capture or input:

    window id <returnedWindowId> no longer belongs to com.netline.guppy-log-watch; current owner is com.netline.guppy-log-watch
    

    The same failure was independently reproduced after a normal target-app restart
    with a new window ID and unchanged configuration. The target runs outside the
    Codex AppX package context. Its process explicitly sets the same Windows
    AppUserModelID as the installed application identity.

    Current reproductions send no app input and capture no screenshot. No owner
    identifiers, window objects, vendor binaries, or permission checks were modified.
    No alternate app identity or capture backend was used to work around validation.

    Could the maintainers provide a fixed supported build or a supported diagnostic
    procedure for the comparison that fails while reporting identical owner strings?
    The required acceptance is binding and capturing the exact returned target while
    still rejecting real owner changes and recycled window handles.

  7. alsterd777-star commented on Nov 2, 2026

    @alsterd777-star

    Additional reproduction: DJI Studio on Windows

    I am encountering the same identical-owner rejection with DJI Studio through the supported cua_repl Computer Use interface. Could the maintainers please investigate or advise a supported fix?

    Environment

    • Windows registry DisplayVersion: 25H2; OS build: 26200.9711.
    • DJI Studio: 1.2.30.32119.
    • Installed Computer Use skill/plugin package: 26.1027.30824.
    • Desktop app and separate running controller versions: not independently verified.
    • Related task/session ID: 01a197d8-dbd8-77d1-aa15-e623125230cf (provided following the in-app feedback step; whether a complete trace was attached has not been verified).

    Reproduction

    1. Open DJI Studio normally and keep its window visible.
    2. Enumerate the current window with cua.listWindows().
    3. Select the exact freshly returned ID using await cua.getApp({windowId: returnedWindowId}).
    4. Binding fails before the window can be read or controlled.

    One confirmed failing attempt was on 2026-11-01 at approximately 17:34 UTC, with this error:

    window id 919488 no longer belongs to {6D809377-6AF0-444B-8957-A3773F02200E}\DJI Studio\DJI Studio.exe; current owner is {6D809377-6AF0-444B-8957-A3773F02200E}\DJI Studio\DJI Studio.exe
    

    The application identifier returned by listApps() matches the app field returned by listWindows(). The expected and current owner strings were compared character by character: both have the same 64 characters/code points, with no differing character.

    Fresh enumeration, normal DJI Studio restarts with new window IDs, and resetting the Computer Use JavaScript session did not resolve the failure. In contrast, CapCut and DaVinci Resolve Studio 21.1.2.10 are controllable through the same integration; Resolve window reads, clicks and its internal Python console were successfully exercised.

    The DJI installation contains a launcher and a versioned executable. Whether that contributes is not established; the actual owner PID/privilege level could not be independently verified from the isolated task environment. I have not reproduced the wrong-window capture described in the original report.

    No owner identities, vendor binaries, permission checks or security settings were altered to bypass the rejection. No footage, project contents or full logs are attached.

    This blocks my intended daily editing workflow directly in DJI Studio. Is there a fixed supported build or a narrowly scoped diagnostic procedure that can identify why validation rejects a window while displaying identical owner strings? Thank you.

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-usesafety-checkwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions