Skip to content

[Windows] Computer Use list_windows/list_apps fail with EnumWindows 0x80070003 when interrupt marker path is absent (@oai/sky 0.6.2) #37595

Open

Description

@cuaub24-afk

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

26.803.5235.0

What subscription do you have?

ChatGPT account; exact tier not disclosed (failure is local/native and reproduces before any model-dependent behavior)

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64 (Windows 11 25H2)

What issue are you seeing?

Computer Use initializes successfully, but both sky.list_windows() and sky.list_apps() fail immediately on Windows with:

EnumWindows failed: The system cannot find the path specified. (0x80070003)

This still reproduces after repairing/resetting/reinstalling the Codex App, rebooting Windows, deleting the relocated cua_node runtime, and letting the app rebuild it from the signed bundled runtime.

A short Microsoft Process Monitor trace identified the last failing filesystem operation from codex-computer-use.exe before the reported error (PII redacted):

CreateFile %USERPROFILE%\.codex\cache\computer-use\interrupts\<session_id>\<turn_id>
Desired Access: Read Attributes
Disposition: Open
Result: PATH NOT FOUND

Creating only the missing <session_id> directory changes the reported failure to 0x80070002 (FILE_NOT_FOUND). Creating the leaf <turn_id> file causes the helper to return the expected “Computer Use was stopped by the user with the physical Escape key” message, confirming that the leaf is an interrupt marker and should normally be absent. The temporary marker was then removed.

A separate native P/Invoke probe successfully enumerated 275 top-level windows, and no per-window process-image query returned error 2 or 3. This indicates that Windows EnumWindows itself is working and the missing interrupt marker error is being surfaced as an EnumWindows failure. No diagnostic files are attached because the full trace contained unrelated system activity.

What steps can reproduce the bug?

  1. On Windows, open the Codex App and start a task that uses the bundled Computer Use skill.

  2. Initialize the supported runtime:

    const { sky } = await import("@oai/sky");
  3. Call either:

    await sky.list_windows();
    // or
    await sky.list_apps();
  4. Observe EnumWindows failed ... 0x80070003 when the per-session interrupt-marker directory does not exist. If the session directory is created but the per-turn marker is correctly absent, observe 0x80070002.

The failure reproduces with a freshly rebuilt, signed bundled runtime.

What is the expected behavior?

list_windows() and list_apps() should return their normal arrays. A missing per-turn interrupt marker should mean “not interrupted” and must not abort window enumeration or leak ERROR_FILE_NOT_FOUND / ERROR_PATH_NOT_FOUND as an EnumWindows failure.

Additional information

Environment details:

  • Codex App: 26.803.5235.0
  • Windows: Microsoft Windows NT 10.0.26200.0 x64 (Windows 11 25H2)
  • Bundled runtime archive: cua-node-0.0.6-20260723162306-088049353ddc-windows-x64.zip
  • @oai/sky: 0.6.2
  • @oai/cua: 0.1.1
  • codex-computer-use.exe Authenticode status: Valid (Microsoft/OpenAI-distributed bundled binary)

Regression signal: Computer Use worked on the same PC on 2026-08-04 with an earlier bundled runtime. The current relocated runtime was first provisioned on 2026-08-07, shortly before the first observed failure. Reboot, app repair/reset/reinstall, and a clean runtime relocation do not help because they reproduce the same bundled versions.

No exact duplicate was found by searching the issue tracker for EnumWindows failed, cache/computer-use/interrupts, and 0x80070003.

A likely fix area is the interrupt-marker existence check: treat ERROR_FILE_NOT_FOUND and ERROR_PATH_NOT_FOUND as “not interrupted” and avoid propagating that status as the EnumWindows error.

Activity

  1. added
    app
    on Aug 8, 2026
  2. added
    bug
    windows-os
    on Aug 8, 2026
  3. DayDreaminc commented on Aug 8, 2026

    @DayDreaminc

    Additional reproduction from another Windows Codex Desktop installation:

    • Computer Use plugin: 26.803.41515
    • cua_node runtime hash: f1bf3cd3a5929acd
    • @oai/sky imports successfully and the native helper responds through helper_transport.js
    • Both sky.list_windows() and sky.list_apps() fail immediately with:
    EnumWindows failed: The system cannot find the path specified. (0x80070003)
    

    Resetting the persistent Node REPL kernel, re-importing @oai/sky, and retrying the lightweight enumeration calls does not change the result. The bundled codex-computer-use.exe exists at the expected runtime location, so this is not a missing-helper-binary case. No user paths or account details are included here.

    This matches the reported interrupt-marker/path handling regression and fully blocks Computer Use before any target application can be selected.

  4. 871173642-stack commented on Aug 9, 2026

    @871173642-stack

    I can reproduce this issue as well on Windows.

    • Computer Use plugin: 26.803.41515
    • Error: EnumWindows failed: The system cannot find the path specified. (0x80070003)
    • Both list_apps() and list_windows() fail consistently.
    • Computer Use was working on the same PC a few days ago, and the issue appeared recently after the latest updates/runtime refresh.
    • Troubleshooting already attempted: full Windows reboot, Computer Use reinstall/update, ChatGPT/Codex Repair, and Windows App Reset.
    • The issue still reproduces in a fresh task after reboot/reset.
    • The Computer Use runtime/helper is present and starts, but window enumeration fails before any application can be controlled.

    This appears consistent with the regression reported in this issue.

  5. anotb commented on Aug 9, 2026

    @anotb

    Independent reproduction on another Windows installation:

    • Codex desktop app: 26.803.5235.0
    • Windows 11 Pro 25H2: 10.0.26200.8973 x64
    • Computer Use plugin: 26.803.41515
    • cua_node runtime: f1bf3cd3a5929acd
    • @oai/sky: 0.6.2
    • The signed native helper starts in the interactive Windows session, and the JavaScript transport connects.
    • Both sky.list_apps() and sky.list_windows() fail immediately before target selection with:
    EnumWindows failed: The system cannot find the file specified. (0x80070002)
    

    This installation reproduces the FILE_NOT_FOUND variant described in the report, consistent with the parent interrupt directory existing while the per-turn marker is correctly absent. sky.documentation is also missing from the loaded API even though the current bundled skill requires it.

    The failure began after Computer Use had previously worked on this same PC. It persists after:

    • fresh Node REPL reset and re-import
    • running Codex unelevated and elevated
    • Computer Use disable/enable
    • Computer Use uninstall/reinstall
    • Windows app Repair
    • full Windows reboot

    No target application is involved; enumeration fails globally before any application can be selected.

    Please treat missing interrupt-marker ERROR_FILE_NOT_FOUND / ERROR_PATH_NOT_FOUND as “not interrupted,” and avoid leaking that stale Win32 status into the later EnumWindows result.

  6. MuckelD commented on Aug 10, 2026

    @MuckelD

    Additional reproduction from the environment reported in #37734:

    • Windows: Microsoft Windows NT 10.0.26100.0 x64 (Windows 11 24H2)
    • Codex App: 26.803.5235.0
    • Computer Use plugin/runtime: 26.803.41515
    • @oai/sky imports successfully and exposes the Windows action methods.
    • await sky.list_windows() fails repeatedly with EnumWindows failed: The system cannot find the path specified. (0x80070003).
    • The read-only probe await sky.get_window({ id: 0 }) fails with the same error.
    • sky.documentation is absent from the exported API even though the bundled Computer Use skill references it.

    No mouse, keyboard, or window-management input was sent. This independently confirms the same regression on Windows build 26100; I am closing #37734 as a duplicate of this issue.

  7. krexil commented on Aug 22, 2026

    @krexil

    Confirmed that this remains reproducible after provisioning the newer runtime from the current Windows Codex app:

    • Codex Windows app: 26.818.4152.0
    • Windows build: 26200
    • cua_node archive: 0.0.8 (20260817223725-7efba775c041-pr-1300023)
    • @oai/sky: 0.6.17-202608171537-pr-1300023-7efba775c041

    The earlier app-owned native-pipe configuration was removed, so the bundled codex-computer-use.exe now self-launches successfully from the newly provisioned runtime. However, await sky.list_apps() still fails immediately with:

    EnumWindows failed: The system cannot find the path specified. (0x80070003)
    

    The result persists after a full Codex restart. This confirms that the interrupt-marker/path regression is not limited to @oai/sky 0.6.2 and remains present in the 0.6.17 runtime. I did not create the leaf interrupt marker because that would correctly be interpreted as an Escape/interruption signal.

  8. krexil commented on Sep 4, 2026

    @krexil

    Retested on 2026-09-04 with the newer Windows Codex app/runtime:

    • Codex Windows app: 26.901.1978.0
    • cua_node: 0.0.9 (20260829001140-68931e022688)
    • @oai/sky: 0.6.26
    • @oai/cua: 0.2.4

    The original enumeration regression no longer reproduces in this build. With the corrected configuration preserved and no interrupt-marker leaf file created:

    • await sky.list_apps() succeeded and returned 41 apps.
    • await sky.list_windows() succeeded and returned 10 windows.

    This indicates that the missing interrupt-marker path is now treated correctly for enumeration in this runtime.

    Visual-layout support is not fully usable in the same ordinary Workspace-access session. A read-only state request for a minimized Krexil CP window returned one black screenshot with no accessibility tree, and the required activation retry failed with:

    GetCursorPos failed: Access is denied. (0x80070005)
    

    I stopped there without changing sandbox/access settings. The EnumWindows 0x80070003 bug appears fixed in cua_node 0.0.9 / @oai/sky 0.6.26; the cursor/window-activation permission failure appears to be a separate remaining Windows Workspace-access issue.

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