Repository navigation
Description
Summary
On Windows Codex Desktop, Computer Use can list apps/windows, activate windows, read accessibility text, and send keyboard input, but any get_window_state call that requests a screenshot fails before capture with:
SetIsBorderRequired failed: 不支持此接口 (0x80004002)
The same target window works when requesting accessibility text only (include_screenshot: false, include_text: true). This looks like the Windows capture helper unconditionally calls GraphicsCaptureSession.IsBorderRequired / SetIsBorderRequired on a Windows build that does not support that property.
Environment
Sanitized user machine details:
- Platform: Windows Codex Desktop
- Codex app package observed:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0 - Computer Use plugin observed:
computer-use/26.527.31326 - OS: Windows 10 Pro 22H2
- OS build:
10.0.19045 - GPU: NVIDIA GeForce GTX 1060 3GB
- DirectX: 12
- Driver model: WDDM 2.7
- Remote/virtual display drivers also present: ToDesk Virtual Display Adapter, Oray Display Mirror Driver
Reproduction
From the Computer Use client in Codex Desktop on this Windows 10 machine:
- Bootstrap Computer Use and call
sky.list_apps(). - Open or select a simple window such as Notepad.
- Activate the window.
- Call any screenshot-including state request, for example:
await sky.get_window_state({ window: targetWindow });
// or
await sky.get_window_state({ window: targetWindow, include_screenshot: true, include_text: false });
// or
await sky.get_window_state({ window: targetWindow, include_screenshot: true, include_text: true });- The call fails with:
SetIsBorderRequired failed: 不支持此接口 (0x80004002)
- Calling text-only succeeds:
await sky.get_window_state({ window: targetWindow, include_screenshot: false, include_text: true });Observed text-only result against Notepad included a focused editor element and accessibility tree, proving that the helper, native pipe, app enumeration, activation, and accessibility path are otherwise working.
Observed Batch Test Results
{
"notepad_default_screenshot": "failed: SetIsBorderRequired failed: 不支持此接口 (0x80004002)",
"notepad_explicit_screenshot": "failed: SetIsBorderRequired failed: 不支持此接口 (0x80004002)",
"notepad_text_only": "ok",
"notepad_both": "failed: SetIsBorderRequired failed: 不支持此接口 (0x80004002)",
"explorer_screenshot": "failed: SetIsBorderRequired failed: 不支持此接口 (0x80004002)"
}Suspected Cause
Microsoft documents GraphicsCaptureSession.IsBorderRequired as introduced in Windows 10 version 2104 / build 10.0.20348.0, API contract v12:
This repro machine is Windows 10 build 19045, so SetIsBorderRequired appears to hit E_NOINTERFACE (0x80004002, no such interface supported). The capture helper seems to abort instead of continuing without border toggling.
Expected Behavior
On Windows builds where border toggling is unsupported, Computer Use should still capture screenshots if the underlying Windows Graphics Capture path is otherwise available. Suggested behavior:
- Gate the border call with
ApiInformation.IsPropertyPresent("Windows.Graphics.Capture.GraphicsCaptureSession", "IsBorderRequired"), or an equivalent OS/API contract check. - If unsupported, skip
SetIsBorderRequiredand allow the default capture border behavior. - Alternatively, fail with a clear compatibility error such as:
Computer Use screenshots require Windows build 20348+ because border toggling is currently unconditional.
Impact
This leaves Computer Use partially functional on Windows 10 22H2:
- Working: app/window enumeration, activation, accessibility text, keyboard input.
- Broken: screenshot-based UI inspection and accurate coordinate-based visual interaction.
For users on Windows 10 build 19045, this means Computer Use cannot reliably operate visual apps even though non-visual operations work.
Activity
darlingm commentedon May 30, 2026
Me too. Codex says this affects all Windows 10 users and it thinks OpenAI can easily fix it in the
codex-computer-use.exesource filesrc\capture\image.rs, treatingSetIsBorderRequiredas optional. See feedback ID 019e779c-55f4-7113-a4fb-afcbc097c81b.Codex says the IsBorderRequired functionality was introduced in Windows build
10.0.20348.0. It says the leading10.0is the Windows NT platform, not the marketing name, so it doesn't mean Windows 10. It says the most recent Windows 10 is 22H210.0.19045.x, and that10.0.20348.0refers to Widnows Server 2022.So, it says there's no Windows 10 updates to add IsBorderRequired functionality.
One fix is to upgrade to Windows 11, but Codex thinks this can be fixed so Windows 10 is supported for this who can't or don't want to upgrade to it. It says SetIsBorderRequired isn't required to screenshot a program, and it controls whether Windows shows the colored capture border around a window/display being captured. When Codex calls it, it gets a
E_NOINTERFACE / 0x80004002and Codex aborts the whole screenshot operation.It says if the IsBorderRequired system doesn't exist, or if calling it gives
E_NOINTERFACE, that it should continue the screenshot capture with the default border behavior.Like the original poster, computer use seems to be working for other functionality, just not when it needs to do screenshots.
darlingm commentedon May 30, 2026
Also, Codex is able to manually do screenshots and see that just fine since it skips calling the function that isn't supported, but it says it can't use that screenshot because the helper guards coordinate input with checks including requiring calling
get_window_statebefore issuing coordinate input, and that a screenshotId which has to come through the helper, not it manually screenshotting.If I tell it to take the next step and issue the click/drags on its own, it belligerently tells me about how the Computer Use API has instructions prohibit it from falling back to raw UI automation when Computer Use is available but partially broken. Even when I remind it about the scene where the Terminator lets go of John, making John fall on the ground and realize the Terminator has to do what he says... It refuses to listen to me over its instructions.
BaseInfinity commentedon Jun 2, 2026
Adding another sanitized repro from a current Windows 10 machine.
Environment:
Get-AppxPackagecannot load the Appx module hereObserved behavior:
Impact in my repro:
This lines up with the proposed root cause here: Windows 10 build 19045 does not expose the
GraphicsCaptureSession.IsBorderRequired/SetIsBorderRequiredAPI surface, so the helper should skip the optional border call or return an explicit compatibility message while keeping non-screenshot operations available.qsstudyai commentedon Jun 4, 2026
I can confirm a second independent repro of this issue on Windows 10 22H2.
Environment
10.0.19045/ build19045OpenAI.Codex_26.601.2237.0_x64__2p2nqsd0c76g026.601.21317@oai/sky:0.4.5-26566467949-4daa3290021dRepro results
I tested
sky.get_window_stateagainst multiple windows:notepad.exe)For all three windows:
succeeds and returns an accessibility tree.
But any screenshot-including call fails consistently:
with:
Because the plugin screenshot state is unavailable, coordinate clicking also becomes unusable and reports:
Additional check
A separate OS-level screenshot fallback using
CopyFromScreencan capture the same Notepad and 360ChromeX windows on this machine, so this does not appear to be a general Windows screenshot/display failure. The failure seems isolated to the Computer Use Windows Graphics Capture path and its unconditionalSetIsBorderRequiredcall on Windows build19045.This matches the suspected root cause described above: Microsoft documents
GraphicsCaptureSession.IsBorderRequiredas introduced in10.0.20348.0, while Windows 10 22H2 desktop remains on10.0.19045.darlingm commentedon Jun 4, 2026
If only Codex App was open source, we could just disable the call ourselves. #10733.
dajinglingpake commentedon Jun 5, 2026
I can reproduce this on my machine as well.
Environment:
Repro observed in Codex Desktop:
Impact:
This looks consistent with a Windows 10 build 19045 compatibility issue around
SetIsBorderRequired/GraphicsCaptureSession.IsBorderRequired. Feature-detecting that API and skipping it on unsupported Windows 10 builds would likely unblock desktop app control.leua61 commentedon Jun 6, 2026
please fix this
Alitiantian commentedon Jun 7, 2026
Additional sanitized repro on a newer Codex Desktop build.
Environment:
26.602.4072410.0.19045149.0.7827.54computer-use/26.602.30954What works:
sky.list_apps()works.sky.launch_app(...),sky.get_window(...), andsky.activate_window(...)work with Notepad.include_text: truecan return UIA/accessibility text in some windows.What fails:
Calling screenshot capture for Notepad fails consistently:
Observed error:
Impact:
This leaves Computer Use limited to non-visual operations. Visual inspection, coordinate clicking, dragging, scrolling, and normal screen-state verification are blocked because screenshot state cannot be established.
This reproduces with Notepad only; no third-party or private application is needed. The behavior still looks consistent with the helper calling
GraphicsCaptureSession.IsBorderRequired/SetIsBorderRequiredon Windows 10 build19045, where that API/property appears unsupported.darlingm commentedon Jun 13, 2026
Since Windows is supposed to be officially supported now, it would be great for there to be a Windows VM smoke test before releasing new app/plugin versions to make sure it at least launches and can do basic functionality. Windows support was announced but is definitely not a first-class feature right now.
kurutah commentedon Jun 16, 2026
Any news? :(
v7deep commentedon Jun 18, 2026
Windows Computer Use capture/input recovery
Date: 2026-06-18
Target tested:
openai-bundled/computer-use/26.611.61753codex-computer-use.exe%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime-id>\bin\node_modules\@oai\sky\bin\windows\codex-computer-use.exeDFECD6E73B5D6EFA2383CEB1F73BFB4AEA02769CBE4481CD29711FFA79B8A3486995DDE1A975CA2E0581CC96A46E23F01DEC8ABF00ED31052E3533FBCFA2A4ACThis document describes a local field patch used to restore Windows Computer Use enough to control Microsoft Paint and draw using
click,drag, and screenshot verification. The binary offsets below are diagnostic/workaround material for this exact build layout, not a recommended upstream patch strategy.Summary
Several independent failures blocked Windows Computer Use:
GraphicsCaptureSession.SetIsBorderRequiredfailed.SoftwareBitmap.CreateCopyFromSurfaceAsyncinside/near the frame callback path.GetCursorPoswith access denied (0x80070005).The successful local recovery used:
PrintWindow(PW_RENDERFULLCONTENT)withGetWindowDC/BitBltfallback.click/dragrouted through the existing native pipe rather than ad hoc foreground input.click/drag.GetCursorPosand bounds repair.Reproduction symptoms
Typical failures observed from the helper:
After the fixes, a normal Paint workflow succeeded:
list_apps()andget_window().get_window_state().click.drag.Investigation notes
Capture path
The first blocker was
SetIsBorderRequired failed. Treating this as fatal prevents capture on systems where this optional visual border setting is unavailable or denied. Bypassing this check allowed capture setup to proceed further.The next blocker was in the frame path. Instrumentation around
FrameArrived,TryGetNextFrame, andSoftwareBitmap.CreateCopyFromSurfaceAsyncshowed that a synchronous wait in the copy path could time out even though completion-related events happened immediately after the frame callback returned. This is consistent with a callback/threading deadlock or reentrancy issue: the handler waits for an async WinRT operation whose completion is not delivered until the handler unwinds or the relevant dispatcher/thread is allowed to progress.Observed trace pattern:
The local JS fallback avoids this WGC path for screenshots by asking the native helper for the window/accessibility state without a screenshot, then adding a GDI screenshot.
Input path
Native input initially failed before sending events because
GetCursorPosreturned access denied. This appears to be tied to cursor overlay/state setup rather than the actual ability to send input. ReplacingGetCursorPoswith a safe success value allowed the input pipeline to proceed.After that, input failed on impossible window bounds. A Frida hook at the bounds preparation site showed that rewriting the state from
GetWindowRect(hwnd)produced stable dimensions and let input pass validation.Finally, at 125 percent display scaling, the GDI screenshot size was
1152x610, while native input expected logical coordinates. Dividing screenshot coordinates byGetDpiForWindow(hwnd) / 96made high-levelclick/dragalign with the actual Paint UI.Local JS client patch
File patched:
1. GDI screenshot fallback
The patched
NativePipeComputerUseClient.get_window_statedoes this on Windows when screenshots are requested:include_screenshot: falseandinclude_text: true.GetWindowRect(hwnd)for window bounds.PrintWindow(hwnd, hdc, 2)first.PrintWindowfails, useGetWindowDC(hwnd)plusBitBlt.id: "gdi-window",originX,originY,width,height, andzIndex.Source-level recommendation:
PrintWindow(PW_RENDERFULLCONTENT)and then toGetWindowDC/BitBlt.2. Native input routing and DPI conversion
The patched proxy routes high-level
clickanddragthrough the existing native pipe:The conversion function queries DPI using
GetDpiForWindow(hwnd)and divides screenshot coordinates bydpi / 96before passing them to native input:Source-level recommendation:
coordinateSpaceanddpiScalemetadata and let the client convert.Runtime hooks used for diagnosis/workaround
GetCursorPoshookThis was enough to bypass
GetCursorPos failed: Access is deniedand continue with input.Source-level recommendation:
GetCursorPossuccess mandatory for input.Bounds repair hook
The hook ran at image RVA
0xAB4A3and rewrote the native state fromGetWindowRect(hwnd). The observed state layout in this build:state + 0xF8:HWNDstate + 0x198: validity flagstate + 0x19C: origin Xstate + 0x1A0: origin Ystate + 0x1A4: widthstate + 0x1A8: heightstate + 0x1AC: extra/unknown field set to zeroSource-level recommendation:
DwmGetWindowAttribute(DWMWA_EXTENDED_FRAME_BOUNDS)where appropriate.GetWindowRect(hwnd)as a fallback.GetClientRectplusClientToScreenif the input API expects client coordinates.Binary patches observed in the local helper
These offsets are for the tested build layout only. They are useful to correlate native code sites but should not be shipped as a binary patch.
SetIsBorderRequiredbranch0xBB65190 90 48 8B 8D E0 01 00 00 48 8B 01 FF 50 30 8975 3E; patched to NOP/NOP.0x124949BA FF FF FF FF FF 15 94 8E 00 00 48 89 F1 48 830xAA8B290 90 8B 82 AC 01 00 00 89 46 14 0F 10 82 9C 0175 1E; patched to NOP/NOP. Runtime bounds repair was still needed.0xA22FAE9 D1 FF FF FF 90 90 6A 45 5A 48 81 C4 F8 00 00RoInitializecall site0x7E7F631 C9 E8 A2 1C 00 00 90 4C 8D 05 DB 71 0B 00 6ARecommended upstream fixes
Capture
Treat
SetIsBorderRequired(false)as best effort.StartCapture.Remove synchronous waits from the
FrameArrivedcopy path.SoftwareBitmap.CreateCopyFromSurfaceAsync.Add a native fallback capture backend.
PrintWindow(PW_RENDERFULLCONTENT)and thenBitBlt.Input
Make cursor overlay failures non-fatal.
GetCursorPos, cursor suppression, or overlay animation fails, continue with input if the target window is valid.Recompute bounds before input.
Normalize coordinate systems.
x/yare physical window pixels, logical window pixels, or client pixels.dpiScaleandcoordinateSpacewith screenshots and centralize conversion.JS client
Suggested regression tests
get_window_state({ include_screenshot: true })succeeds on Paint.get_window_state({ include_screenshot: true, include_text: true })returns both screenshot and accessibility text.clickselects a Paint color by screenshot coordinates.dragdraws a visible line on the Paint canvas.PrintWindow/BitBltwithout crashing the request.GetCursorPosfailure injection does not prevent click/drag.Validation result
Using the above local recovery, Paint was controlled through Computer Use and produced visible drawings using real
clickanddragactions. Final verification screenshots were saved as:outputs\pikachu-paint-final.pngoutputs\pikachu-paint-second.pngThis demonstrates that the native pipe, target activation, click, drag, and screenshot verification can work once the capture fatal path, cursor-position dependency, bounds corruption, and DPI mismatch are addressed.
Ready-to-run patch script
A companion PowerShell script is included as:
Typical usage from the directory containing the script:
The script intentionally does not hard-code any local username. It discovers paths from
$env:USERPROFILEand$env:LOCALAPPDATA, backs up modified files, applies the JS fallback/input patch, applies the helper binary byte patches for the tested build, and optionally attaches the runtime Frida hooks needed for theGetCursorPosand bounds issues.If
frida-inject-*-windows-x86_64.exeis not discoverable next to the script, in the current directory, or in Downloads, pass it explicitly:Safety switches:
Powerhell Script (Save to your disk and name it
apply-cua-windows-workaround.ps1)Success Pic
69 remaining items
Nan-WenYuan commentedon Sep 23, 2026
Additional reproduction on a Windows 10 machine:
SetIsBorderRequired failed: No such interface supported (0x80004002).Please investigate Windows 10 capture compatibility and provide a supported fallback or a clear minimum-version requirement. No personal files, screenshots, or session logs are included.
lynn949 commentedon Sep 23, 2026
Additional sanitized reproduction on 2026-09-23, plus a recovery problem encountered in the same authorized desktop workflow.
Environment
@oai/skyAPI vianode_repl.Observed
sky.list_windows()andsky.get_window(...)succeeded; the target window was unique.sky.get_window_state({ window })failed withSetIsBorderRequired failed: 不支持此接口 (0x80004002). Refreshing the selection and retrying produced the same error.sky.get_window_state({ window, include_screenshot: false, include_text: true })returned only a top-level window node, insufficient to verify the intended control.BitBltcapture of the same HWND and executable succeeded (948×777 physical pixels, DPI 120). This suggests the visible desktop/window could be captured; the bundled screenshot path was the blocker. The bundled plugin/helper was not modified.sky.activate_windowreturneduser input was detected in this window; call get_window_state before continuing, while text-onlyget_window_statereturnedwindow is minimized; call activate_window, refresh with get_window, then retry get_window_state. This recovery cycle persisted after waiting and reselecting the window. I cannot establish whether the minimization was caused by the user or by the preceding input, so I am reporting the cycle as a separate observation rather than attributing its cause.The authorized file-attachment task was stopped without sending anything. Please provide a supported Windows 10 capture path when the optional border-control interface is unavailable, and a clear way to recover when the minimized-window and user-input guards alternate. Related recovery report: #43777.
weaqaq commentedon Sep 24, 2026
Reproduced again on 2026-09-24 on Windows 10 22H2, OS build 19045.6466, using the supported
@oai/skyinterface in the desktop app.The Computer Use plugin manifest exposed to this task reports version 26.917.62051. I have not independently identified the loaded native helper build, so this is the installed/task-listed plugin version rather than a claim that the helper was freshly reloaded.
Test target: Windows File Explorer. The window was selected from
sky.list_windows(), activated, and rehydrated withsky.get_window()before the comparison.include_screenshot: false, include_text: trueinclude_screenshot: true, include_text: falseThe comparison used these supported calls against the same returned window object:
No binary patch, alternate screenshot backend, or permission change was applied. The failure is still present; this is a reproduction update, not a verified fix.
The symptom remains consistent with the documented availability of
GraphicsCaptureSession.IsBorderRequiredbeginning at build 20348, later than this machine's build 19045. Please check support before setting that optional property and retain the normal capture border when it is unavailable, while preserving other capture errors and permission handling.For end-to-end validation, please also consider the downstream frame-conversion stall reported in #35446. That second issue was not independently reproduced here because capture still fails at
SetIsBorderRequired.Microsoft reference: https://learn.microsoft.com/en-us/uwp/api/windows.graphics.capture.graphicscapturesession.isborderrequired
ddooboo commentedon Sep 24, 2026
I can reproduce the same issue on a newer ChatGPT/Codex Windows app version.
Environment:
Reproduction:
SetIsBorderRequired failed: 해당 인터페이스를 지원하지 않습니다. (0x80004002)
The capture was attempted twice and failed with the same error.
Feedback ID:
01a0d435-a4b0-7302-b704-1ec7ff8de75f
djkostyawest-stack commentedon Sep 25, 2026
Additional reproduction verified on 2026-09-25, still failing after updating the desktop app.
Environment
up_to_date.@oai/skyAPI throughnode_repl.Minimal reproduction
sky.list_apps()/sky.list_windows()and select the Explorer window; enumeration succeeds.sky.get_window_state({ window, include_screenshot: true, include_text: false }).No screenshot is returned. The error is:
English: Interface not supported / E_NOINTERFACE. Selecting the window again, activating it and retrying produces the same error.
The same failure occurs for Citrix Desktop Viewer, but File Explorer alone is sufficient to reproduce. The user reports Claude Cowork can capture and control the same Citrix session; that comparison is user-reported. The failure prevents Codex from visually inspecting desktop apps.
This remains consistent with the optional
GraphicsCaptureSession.IsBorderRequiredproperty being unavailable on build 19045 (Microsoft documents introduction at build 20348). This is a compatibility hypothesis, not a source-confirmed diagnosis. Please provide a supported fix/fallback that checks for the property and retains the normal capture border when it is unavailable. Microsoft API reference.No binaries, security settings or capture internals were modified. No corporate screenshots, source code, personal paths, account details or full session logs are included.
rusjrw commentedon Sep 30, 2026
Follow-up reproduction on 2026-09-30: Computer Use remains partially functional on this Windows 10 machine, but the screenshot request now reports a different error.
Environment
@oai/sky: 0.7.5, through the supportednode_replinterfaceControl test: ordinary Windows Notepad
Select its unique window from
sky.list_windows(), then compare:get_window_state({ window, include_screenshot: false, include_text: true })get_window_state({ window, include_screenshot: true, include_text: false })FrameArrived timed out: timed out waiting on channelclick({ window, element_index: 24 })on the observed Help menucoordinate input geometry is unavailablepress_keywith Ctrl+End, then Ctrl+HomeThe indexed click was attempted after a fresh text-only observation; no screenshot geometry was available.
Separately, discovery of ISTT_ULLV_02_THRUST.exe varied between observations: its running process was initially returned with
windows: [], later its window appeared, then a text-state request reported it minimized and the activation/rehydration recovery ended withwindow id ... was not found. The cause of these visibility changes is unverified.Read-only checks found the desktop app, Computer Use helpers and ISTT in the same Windows session, all non-elevated with medium integrity. Queried desktop-bearing threads used
Default.This does not establish that the new frame timeout has the same root cause as
SetIsBorderRequired. Please investigate the frame-delivery timeout and unavailable click geometry, and provide a supported Windows 10 capture path or diagnostic tracing to identify the failing stage.No runtime binaries or security settings were modified. No document contents, personal paths, screenshots or full logs are included.
langshenzy commentedon Oct 1, 2026
I can still reproduce this issue on a recent Codex Desktop build.
Environment:
This is not application-specific. I can reproduce it in:
Computer Use can:
But screenshot/window capture repeatedly fails with:
FrameArrived timed outwindow capture timed outMouse input then fails with:
coordinate input geometry is unavailableI have already tried:
The issue still reproduces consistently.
This appears to affect the general Windows 10 capture/geometry path rather than a specific application.
Could you please confirm whether this is still actively tracked and whether an official Windows 10 fix is planned?
I would prefer an official fix rather than using unofficial or third-party patched binaries.
vegasmassimo-ai commentedon Oct 4, 2026
This issue still reproduces on the current setup:
19045.77251294726.930.31730Window enumeration and accessibility text work, but screenshots fail with:
SetIsBorderRequired failed: No such interface supported (0x80004002)Coordinate-based mouse clicks consequently fail because input geometry is unavailable. The behavior reproduces in ordinary Windows applications, including File Explorer, so it is not application-specific.
Please feature-detect
GraphicsCaptureSession.IsBorderRequiredor catchE_NOINTERFACEand continue using the default capture-border behavior on Windows 10.akari797 commentedon Oct 9, 2026
Post-restart native acceptance of the Windows 10 callback repair, combined with a separate locale role fix (2026-10-09)
Following the capture analysis in #46435 (closed as a duplicate of this issue). Environment: Windows 10 Pro 22H2, build 19045.6466, zh-CN; Microsoft Edge 154.0.4258.62; @oai/sky 0.7.6; Computer Use plugin 26.1002.52244. Prepared with Codex assistance and authorized by the operator.
We inspected the community
patch-computer-use-helper-win10.ps1F78948E6 exact-hash profile without executing the downloaded script. Its guarded patch data was independently reproduced and checked. The capture-only candidate SHA-256 matched202FC10AF903D0CB8277EFB6EA36733F78BB5CB698F0C164A4536042629E8291.The reviewed change moves the original FrameArrived work onto an independent MTA thread, retains the original frame fetch/conversion/encoding path, and includes runtime function/unwind entries for the new RX code section. On this machine an independent locale-sensitive UIA role problem had to be repaired first; the capture patch alone was not sufficient for browser URL identification. Details: #31221 (comment)
The combined local candidate SHA-256 is
E73CC579ABEE48B51B5E2AA7C05B9DB0A07BDA994B2CCE956F22EDFB6FDFC7DA. Native@oai/skystate + screenshot calls succeeded before and after a semantic link click. Subsequent fresh state verified the actual IANA destination URL. Continued capture succeeded. After a runtime replacement and a guarded migration, the same functional acceptance passed again after a full Codex restart on 2026-10-09.The replacement official helper SHA-256 was
63C98C4DD5D707DF3240A04DA1FBF7FE47FF0622CF757EE886EEE96434D4E17A. All ten PE sections and their layout were byte-identical to the original F789 build; only the checksum/certificate metadata differed before the certificate overlay. We did not blindly apply old offsets to a different code build.This is short functional validation on one machine, not a resource-leak/long-duration soak test. The local binary is unsigned and version-specific; updates can overwrite it. No system signature enforcement or security setting was disabled, and no URL-policy or app-approval code was changed. Please provide a signed supported Windows 10 fix. No raw logs, user paths, private URLs or screenshots are attached.
C1c3r0 commentedon Oct 11, 2026
Static review of the Windows 10 compatibility shim (v0.1.0) — upstream fix preferred
I reviewed the source at MagicalAstrogy/CodexComputerUseFix, tag v0.1.0. This is source inspection, not a runtime test on an affected Windows machine, binary/source reproducibility verification, or a confirmed security vulnerability report.
What the workaround does: It installs a local, unsigned
version.dllalongsidecodex-computer-use.exe. That DLL forwards the standard version-library exports to the actual System32 DLL, then hooks the helper'sRoGetActivationFactoryimport and selected Windows Graphics Capture COM vtable slots. When a capture session's native query forIGraphicsCaptureSession3returnsE_NOINTERFACE,BorderFallbacksupplies anIsBorderRequiredgetter returningtrueand a no-op setter returning success. The intended effect is to continue capturing with the Windows-default visible capture border, not to bypass capture permissions.Smaller upstream fix requested: In the official native helper, treat border configuration as optional: query/feature-detect
IGraphicsCaptureSession3(or the WinRT property) before usingIsBorderRequired; on specificallyE_NOINTERFACE, skip the setter and retain the system-default capture border. Preserve other HRESULTs, capture-denial failures, and permissions. This should address the initialSetIsBorderRequired ... 0x80004002failure, but does not resolve the separate frame-conversion deadlock described in #35446.Why the shim should not become the permanent fix: A process-local unsigned DLL with IAT/vtable patches expands the code and supply-chain trust boundary for a screenshot-capable helper. I also noted two potential robustness/security issues in the shim source (not demonstrated exploits):
PatchSlotlogs failure to restore original memory-page protection afterVirtualProtectbut still returns success; depending on the failure mode, a page could remain writable.AddFrameregisters an event subscription before publishing it in the bookkeeping list; concurrent unregister/close could race with that window.The installer does include useful protections against overwriting an unrelated DLL and checks copied-file SHA-256, but a checksum published next to an unsigned release is not independent publisher authentication. I found no explicit screenshot/credential exfiltration routine in the reviewed source; that is not a guarantee about any prebuilt binary.
Suggested regression coverage: Windows 10 22H2/build 19045 plus newer supported Windows builds; unsupported vs. native border API; preserve existing capture permission behavior; run repeated screenshots, window resizes, and session cancellation/close. Prefer a native helper repair over DLL injection or binary patching.
Relevant files:
proxy.cpp,compat.cpp,install.ps1.djlvxyz commentedon Oct 12, 2026
Windows10 Pro22H2 build19045.7725; Codex desktop26.1007.2314.0; Computer Use plugin26.1007.21434; @oai/sky0.7.6; target FairBot5.14.163.1573 (simulation only).
We observed a target-app failure in addition to capture failure. Repeated FairBot window observations using the documented @oai/sky route coincided with FairBot.exe exceptions c0000005/c000041d at offset00011026. An image-only observation (include_text=false; screenshots enabled) returned FrameArrived timed out and coincided with the same application exceptions. We have not isolated an internal root cause. No claim is made that this reproduces on other apps, or that screenshot-free UIA is safe.
The separate unified cua_repl tool is configured for browser only, with only a browser trusted service, so native APIs are unavailable through that surface. Any App is enabled according to the owner. Host startup logs confirm native pipe startup at that time, not current health. The direct @oai/sky Windows route remains documented.
After stopping the failed capture helper and relaunching the target independently from the Codex process job, it remains running during process/log-only observation. This is not a Computer Use fix or proof of screenshot/input compatibility. No extra UI retries, binary patches or native-surface overrides were applied.
Could maintainers identify a supported Windows10 capture/input repair for this installed version and advise how to isolate the FairBot target exception without repeating the crash on a working session? No exact fixed version is currently established. Any proposed repair still needs reversible navigation and repeated screenshot/input acceptance, preserving app permissions and coordinate validation.
easonyin7 commentedon Oct 14, 2026
Verified Windows 10 workaround adapted to @oai/sky 0.7.7 (Codex 26.1007.9446.0)
I adapted the existing community workaround to the helper shipped with
@oai/sky 0.7.7and verified that Computer Use screenshots work again on my Windows 10 machine. I am sharing the version-specific adaptation and validation details for maintainers investigating this issue.Credit for the original diagnosis and worker-thread workaround belongs to #46435 and the community project chen0416ccc-cpu/codex-windows-fast-patch-skill. My contribution is adapting that approach to the previously unsupported helper hash below and validating it against LabVIEW through the actual Computer Use client.
Environment and exact helper identity
1904526.1007.9446.0@oai/sky0.7.7codex-computer-use.exeD36AE6626BDCED7AE07935D1A91BE14425E8F6CE7C9B5C69F2D8D7DF0C130D83452E61A51C24273F22280ACA8A7216B26F077F1683D4A3D9F87487577DBC299BReproduction and measured result
With an active LabVIEW front-panel window selected through
sky, request a screenshot:Before patching this build, two attempts failed after approximately 2.34 seconds and 5.04 seconds with
FrameArrived timed out: timed out waiting on channelandwindow capture timed out: timed out waiting on channel. Text-only observation succeeded in approximately 0.28 seconds. Activating the window and refreshing the window object did not restore screenshots.After installing the adapted helper and resetting/reinitializing the Computer Use session, the same screenshot request returned:
{ "ok": true, "elapsedMs": 349, "screenshots": [ { "width": 2558, "height": 1399 }, { "width": 181, "height": 32 } ] }This was a real
sky.get_window_stateresult, not a separate screenshot utility. Subsequent hands-on use also appears to be working normally; I have not recorded a comprehensive mouse-input or long-duration regression suite. A later read-only check confirmed that both the installed helper and the original backup still match their expected hashes.What the adaptation changes
The workaround redirects the
FrameArriveddelegate to a short wrapper that claims a one-time flag atomically, retains the delegate, starts a worker thread, and returns promptly. The worker initializes WinRT withRoInitialize(RO_INIT_MULTITHREADED), runs the original callback body, uninitializes WinRT, and releases the delegate. Thread-creation failure restores the flag and reference count. Two accompanying guard changes adjust the original callback's busy/reentry return path and one-time flag handling.This addresses the circular wait described in #46435: the original callback synchronously waits for asynchronous surface-to-bitmap conversion, while on the affected Windows 10 path that conversion needs the frame callback to return. The successful worker-thread adaptation supports that diagnosis; I do not have native source-level traces independently proving every internal dependency.
Using
pefileand Capstone, I checked the PE layout, original callback, guard instructions, imported thread/WinRT functions, wrapper call targets, and exception-unwind entries against the existing0.7.6/F78948E6...profile. The relevant layout matched. The new profile records this build's actual original bytes, checksum/certificate differences, and whole-file hashes.The current profile has 13 regions:
0x860x9C0x2000xD00x10000xD80x1280x318.cuw10section0x176E000x418BE0x418CF0x12C8C80x140042489to0x14017E0000x124.pdatavirtual size0x2080x1574D8The new section has RVA
0x17E000, raw offset0x176E00, and raw size0x200. It reuses space formerly occupied by certificate data; the certificate directory is cleared, so the modified binary does not retain a valid original Authenticode signature.This profile does not contain an
optional-border-interfacepatch. Although the earlier report describes both an unsupported border API and a frame-callback deadlock, my confirmed reproduction on this particular build was the frame timeout. The old build's complete set of modifications should not be conflated with this adaptation.Scope and upstream suggestion
This is a local, exact-hash compatibility workaround, not an official fix or a patch for arbitrary helper builds. Installation verifies the original hash and each patch region, validates the candidate hash, preserves a verified backup, stops only helper processes whose executable path matches the target, and verifies the installed hash. Explicit rollback is available.
For the native implementation, the useful upstream change would be to ensure that surface conversion cannot synchronously block the
FrameArrivedcallback needed for its completion, with correct delegate lifetime and reentry handling. For affected builds, optional border APIs should also be feature-detected rather than treated as mandatory. A Windows 10 build 19045 regression test using the real Computer Use path would help cover both cases.The initial skill-only mitigation (text-first observations and bounded screenshot retries) reduced unnecessary waits but did not restore screenshots. The native helper patch did. Separate sandbox-initialization errors were not fixed by this change.
Longtran2404 commentedon Oct 14, 2026
For anyone still blocked on Windows 10, I built a free standalone MCP alternative while waiting for the native Computer Use capture issue to be resolved.
TaskKit Windows Computer MCP v0.4.3 uses Win32
PrintWindowwindow captures rather than the failing WGC border path, plus explicit left/right/middle mouse actions, dragging, Unicode keyboard input, and UI Automation for supported app controls. It runs as a separate local MCP server; it does not modify OpenAI's helper binaries.Verified on my Windows 10 Pro build 19045 workstation: window capture, clicking/dragging in classic Paint, drawing a house/tree/sun, and saving the resulting PNG. Notepad typing and saving were also verified. Physical ESC/F12 stops the session; apps must be allowlisted and physical input uses fresh capture tokens and foreground/hit checks. The real OBS recording is sped up with waiting time cut.
Disclosure: I am the developer, Minh Long Tran / taskkit.vn. This is an independent workaround for tested desktop workflows, not an official OpenAI fix or a claim of universal app compatibility. GPU-rendered viewports can be blank, other DPI setups still need validation, and physical mouse/focus are shared. The MCP is free; it does not remove Codex account usage limits.
An upstream Windows 10 capture fallback would still be very welcome.
Please try it and share your feedback! If something fails, please open an issue in the TaskKit repository with your Windows build, display scaling, target app, and a sanitized error/screenshot. That will help improve compatibility.
andersonvianasantos33-web commentedon Nov 10, 2026
Additional diagnostic evidence — Windows 10 build 19045
I am adding further reproduction details and static-analysis findings for the
SetIsBorderRequired / E_NOINTERFACEfailure reported in this issue.No Codex files, executables, manifests, registry settings, or Windows settings were modified. No unofficial patches or replacement binaries were installed.
Environment
@oai/sky: 0.6.26@oai/cua: 0.2.4@oai/browser-desktop: 0.1.1Native helper identities
codex-computer-use.exe:codex-computer-use-swift.exe:The first executable contains the observed
SetIsBorderRequired failederror path. The Swift executable hash is provided only to identify the installed component set; I have not established that it participates in this failing execution path.Reproduction
Using the bundled
@oai/skypackage through the supported Computer Use Node REPL:sky.list_apps()succeeds.sky.list_windows()succeeds.sky.list_windows().This succeeds and returns a non-empty accessibility tree.
This fails with:
0x80004002corresponds toE_NOINTERFACE.No screenshot is returned.
Static-analysis findings
Inspection of the installed native Rust helper found the following Windows Graphics Capture error strings:
The binary also retains the source path:
This is consistent with the failure occurring after capture-session creation and before
StartCapture. This is static evidence, not a runtime trace or recovered original source code.The installed package does not include the corresponding Rust source or matching native debug symbols, so the exact function and implementation could not be independently verified.
Windows API compatibility
Microsoft documents
GraphicsCaptureSession.IsBorderRequiredas available starting with Windows build 20348, under Universal API Contract v12.The affected system is Windows build 19045.
Documentation:
https://learn.microsoft.com/en-us/uwp/api/windows.graphics.capture.graphicscapturesession.isborderrequired
This strongly suggests that the helper is attempting to use
IGraphicsCaptureSession3on a system where that interface is unavailable.Microsoft provides runtime property detection through
ApiInformation.IsPropertyPresent:https://learn.microsoft.com/en-us/uwp/api/windows.foundation.metadata.apiinformation.ispropertypresent
Suggested native fix
Could the native helper make
IGraphicsCaptureSession3optional?Suggested behavior:
IGraphicsCaptureSession3/IsBorderRequired.E_NOINTERFACE, skip the optional border-setting operation.StartCapture.The intended behavior is to avoid aborting an otherwise valid capture session solely because an optional border-setting interface is unavailable.
Regression testing request
Please consider adding a Windows 10 22H2 / build 19045 regression test covering:
IGraphicsCaptureSession3handling.E_NOINTERFACE.Possible subsequent capture issue
Reports involving later
@oai/skyversions describe a different failure after capture startup:Related issue:
#50362
This second failure has not been reproduced on my exact 0.6.26 installation because the current capture path stops earlier at
SetIsBorderRequired.It may be worth checking whether frame conversion or asynchronous surface-copy processing can block the
FrameArrivedcallback required for completion.Questions for the maintainers
IGraphicsCaptureSession3handling already been fixed?@oai/skyor Codex Desktop version contains that change?FrameArrivedtimeout tracked as a separate Windows capture issue?A signed official helper update would be preferable to binary patching, DLL injection, or an unofficial replacement helper.
Thank you for investigating Windows Computer Use compatibility.
andersonvianasantos33-web commentedon Nov 10, 2026
Additional native-helper audit — call flow, artifact coverage, and correction boundary
I am adding a second, complementary audit of the installed Windows Computer Use components. This comment focuses on the JavaScript-to-native call flow, the available build artifacts, and the boundary of a possible native correction.
This is a read-only investigation. No executable, package, manifest, registry setting, Codex configuration, or Windows setting was modified. No patch, replacement helper, dependency installation, download, or repeated screenshot test was performed.
Environment and component versions
@oai/sky: 0.6.26@oai/cua: 0.2.4@oai/browser-desktop: 0.1.1Native executable identities:
codex-computer-use.exe:codex-computer-use-swift.exe:The Rust helper contains the observed
SetIsBorderRequired failederror text and the Windows Graphics Capture error sequence described below.The Swift executable hash is included to identify the installed component set. I did not establish through runtime tracing that the Swift executable participates in this particular failing request.
Confirmed JavaScript behavior
The installed JavaScript implementation of
get_window_statedefaults to:It rejects a request only when both options are false. For a valid request, it sends the native transport operation:
get_window_statewith an object equivalent to:
The wrapper then validates the returned
window,accessibility, andscreenshotsfields. It does not implement Windows Graphics Capture, configureGraphicsCaptureSession, or provide a Windows screenshot fallback.Therefore, the observed
SetIsBorderRequiredfailure originates below the JavaScript wrapper, in the native Computer Use path.Reproduction and isolation
The installed package was initialized through the supported Node REPL mechanism:
Application and window discovery succeed:
For a visible Notepad window returned directly by
sky.list_windows(), the accessibility-only request succeeds:Observed result:
screenshotscollection is empty, as expected.For the same returned window, the screenshot request fails:
Observed error:
0x80004002corresponds toE_NOINTERFACE.No screenshot is returned.
This comparison isolates the immediate failure to the screenshot-enabled native path. It does not indicate an RPC, application-enumeration, window-selection, or general accessibility failure.
Native artifact findings
The installed
@oai/skypackage contains the native executables and compiled JavaScript/TypeScript output, but it does not contain:Cargo.toml;Cargo.lock;The PE debug directory of the Rust helper is empty.
The Rust helper retains the following source-path string:
It also contains the following Windows Graphics Capture error strings:
These strings are adjacent in the binary and provide complementary static evidence consistent with a session-setup sequence equivalent to:
However, the ordering or adjacency of strings in an executable does not, by itself, establish the actual runtime control flow or prove that the corresponding operations execute in that order. Compiler layout, constant pooling, optimization, and shared error-handling code can affect where strings appear in the binary.
The runtime error specifically names
SetIsBorderRequired. Taken together with the retained source path and the static grouping of capture-related error strings, the evidence is consistent with the request failing during capture-session configuration, after session creation and before a successfulStartCapture. This is an inference based on the observed error and static artifact analysis; it is not a runtime execution trace.This conclusion must therefore be scoped carefully:
SetIsBorderRequired failed.IGraphicsCaptureSession3is being queried or used is therefore a strong inference based on the HRESULT, Windows API contract, runtime failure, and static artifact evidence — not a source-code confirmation.Windows API compatibility inference
Microsoft documents
GraphicsCaptureSession.IsBorderRequiredas introduced in:Documentation:
https://learn.microsoft.com/en-us/uwp/api/windows.graphics.capture.graphicscapturesession.isborderrequired
The affected machine runs:
IsBorderRequiredis exposed through the optionalIGraphicsCaptureSession3interface. On a system that does not expose that interface, a COM interface query can return:The observed failure is therefore consistent with the helper treating the optional border interface as mandatory.
Again, this is an inference from the observed HRESULT and documented API availability. It is not a claim that the unavailable source code has been inspected.
Microsoft provides property-level runtime detection through:
Documentation:
https://learn.microsoft.com/en-us/uwp/api/windows.foundation.metadata.apiinformation.ispropertypresent
Native correction boundary
The JavaScript request and response contract does not need to change to address this immediate failure. The correction can remain inside the native helper because:
get_window_state;GraphicsCaptureSessioncreation and configuration; andThe following Rust-like snippet is illustrative pseudocode only. It is intended to describe the proposed error-handling behavior; it is not a compilable patch, recovered source code, or confirmation of the helper’s actual types, function names, imports, ownership model, or implementation:
Equivalent property or API-contract feature detection would also be appropriate.
The important error-handling boundary is:
Suppressing every border-related error would be too broad and could hide permission, policy, lifetime, or session-state problems.
Distinction from the later
FrameArrivedfailureThe immediate failure on this exact
@oai/sky 0.6.26installation is:The observed error, combined with the static capture-related strings, is consistent with the request failing during capture-session configuration before a successful
StartCapture. This is an inference from runtime-visible error reporting and static artifact analysis, not a traced observation of the native execution sequence.A separate set of reports involving later
@oai/skyversions describes:Related issue:
#50362
These errors represent an apparently later capture stage and should not be conflated with the
E_NOINTERFACEfailure.The available evidence supports the following distinction:
SetIsBorderRequired / E_NOINTERFACEStartCapture, but no execution trace independently confirms the exact call sequence.IGraphicsCaptureSession3functionality.FrameArrivedor window-capture timeoutFixing the optional border interface may expose the later timeout on Windows 10, but that does not make the two failures identical.
In particular, reports about asynchronous surface-copy processing blocking the
FrameArrivedcallback should remain a separate hypothesis unless confirmed through matching source review, native instrumentation, or an official maintainer diagnosis.Microsoft documents the
FrameArrivedevent here:https://learn.microsoft.com/en-us/uwp/api/windows.graphics.capture.direct3d11captureframepool.framearrived
Requested regression coverage
Please consider testing the signed native helper on Windows 10 22H2, build 19045, with coverage for:
sky.list_apps();sky.list_windows();get_window_state;get_window_state;IGraphicsCaptureSession3;E_NOINTERFACE;FrameArrivedcallback lifetime and reentry; andRequest to the maintainers
Could the maintainers confirm:
IGraphicsCaptureSession3;E_NOINTERFACEis now treated as an unsupported optional border capability;@oai/skyor Codex Desktop version containing that correction;FrameArrivedtimeout is tracked independently; andBecause the corresponding Rust source and signed build chain are not publicly available in the installed package, a signed official helper update is strongly preferable to binary patching, DLL injection, or an unsigned replacement executable.