You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Subject: Windows Graphics Capture Fails in Codex, but Works Normally in OBS #57149
I'm experiencing a Windows Graphics Capture (WGC) issue in Codex.
On the same machine, Windows Graphics Capture works correctly in OBS, but fails consistently in Codex.
System Information:
OS: Windows 10 Pro 22H2
GPU: NVIDIA GeForce RTX 4060
Application: Powered by Codex & OWL
Version: 26.1021.31345
Error Messages:
FrameArrived timed out: timed out waiting on channel
window capture timed out: timed out waiting on channel
no screenshot targets found for process:C: \Windows\System32 \notepad.exe
Troubleshooting Already Performed:
Disabled the Sunlogin (向日葵) virtual display driver.
Checked the NVIDIA overlay as a possible cause.
Tested window capture in OBS, which works correctly.
Issue Summary:
Windows Graphics Capture is functioning properly in OBS on the same computer, suggesting that the Windows capture functionality and GPU are operational.
However, Codex consistently fails to capture application windows, including Notepad.
What steps can reproduce the bug?
Issue Summary:
Windows Graphics Capture is functioning properly in OBS on the same computer, suggesting that the Windows capture functionality and GPU are operational.
However, Codex consistently fails to capture application windows, including Notepad.
What is the expected behavior?
Request for Assistance:
Could you help investigate why Windows Graphics Capture works in OBS but times out in Codex?
Is this a known compatibility issue, a capture initialization problem, or a potential bug in the Codex/OWL window capture implementation?
Please provide possible solutions or additional diagnostic steps.
I’m also experiencing this capture failure, and it persists after updating.
Current versions:
Desktop app: 26.1023.50603, build 22391, production channel.
Computer Use plugin: 26.1023.50603.
App update checker reports up to date.
Verified results:
Computer Use discovers Calculator and Notepad windows.
A text-only Notepad request (include_screenshot: false, include_text: true) succeeds and returns its editor, menus, status bar, and focused field.
A screenshot-only request against that same Notepad window times out.
Calculator capture also fails, including after refreshing discovery and reacquiring its window.
OBS successfully captures Notepad using the Windows Graphics Capture method on this PC.
After the update, Calculator capture returned:
FrameArrived timed out: timed out waiting on channel
After refreshing the window selection and retrying:
window capture timed out: timed out waiting on channel
Could you provide a supported diagnostic to distinguish frame delivery, callback processing, and image conversion failures, or identify a release containing a fix?
Every window screenshot fails: FrameArrived timed out: timed out waiting on channel (targets: Minecraft, MC Studio, WorkBuddy, Codex's own window — 100% failure)
UI tree reading (list_windows, accessibility) and input work fine; only frame capture deadlocks
Failures reproduce identically over both transports (stdio-launched helper and the live named-pipe service)
What we ruled out on the machine (all tested, not guessed)
Standalone WGC works perfectly on the same machine, same session, same windows — windows-capture 1.5.0 (Rust/WGC): monitor capture first FrameArrived in 0.20 s; window capture of the exact windows Codex fails on (WorkBuddy, ZCode) first frame in 0.22–0.25 s. GDI, DXGI desktop duplication also fine. Event log clean.
Not fast-startup/HAGS (real reboot with both toggled didn't change anything), not remote session (SESSIONNAME=Console), not MuMu virtual display leftovers (removed), not PixPin or antivirus (killed), not sandbox service (stopped).
Fresh helper instance deadlocks identically — spawning codex-computer-use.exe --parent-pid <pid> (stdio NDJSON transport) and calling get_window_state with x-oai-cua-approved-app meta reproduces the exact same FrameArrived timed out in ~2 s, first try, every try. So this is not stale helper state; it's deterministic in sky 0.7.13's Swift WGC implementation on this OS build.
get_screenshot (desktop-level) is "unsupported method" on the Windows helper — window capture is the only frame path, and it's the one that deadlocks.
Suggested direction: the Swift helper's FrameArrived handler appears to synchronously wait on the SoftwareBitmap conversion inside the capture-callback context (reported deadlock stack: GraphicsCapture.dll → WaitForSingleObjectEx / RTMediaFrame.dll → d3d11.dll → RtlEnterCriticalSection). Standalone WGC clients that return from FrameArrived immediately and marshal the bitmap conversion elsewhere don't deadlock on the same machine.
Repro: happy to provide the standalone client (node script speaking the helper's NDJSON protocol, ~80 lines) and the standalone WGC test (Python/windows-capture) if useful.
Note: windows-capture 1.5.0 (not only 2.0) also calls IsBorderRequired when draw_border=False — if anyone tested WGC on Win10 19045 with that flag and concluded "WGC is broken system-wide", that was a false negative. Use draw_border=None.
Activity
github-actions commentedon Oct 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Sc10Wolf commentedon Oct 27, 2026
I’m also experiencing this capture failure, and it persists after updating.
Current versions:
Verified results:
include_screenshot: false, include_text: true) succeeds and returns its editor, menus, status bar, and focused field.After the update, Calculator capture returned:
After refreshing the window selection and retrying:
Could you provide a supported diagnostic to distinguish frame delivery, callback processing, and image conversion failures, or identify a release containing a fix?
AAAX-WQ commentedon Nov 2, 2026
Bug report (ready to post on github.com/openai/codex — comment on #57149 or #55077)
Window capture deadlocks deterministically on Win10 19045 while standalone WGC works — full repro without the UI
Environment
OpenAI.Codex_26.1027.3384.0_x64__2p2nqsd0c76g0, app-server client version26.1027.30824cua-node-0.0.35-20261022235854-0e24579b4572-windows-x64.zip,@oai/sky 0.7.13, node24.22.1-cua.1Symptoms
FrameArrived timed out: timed out waiting on channel(targets: Minecraft, MC Studio, WorkBuddy, Codex's own window — 100% failure)list_windows, accessibility) and input work fine; only frame capture deadlocksWhat we ruled out on the machine (all tested, not guessed)
windows-capture 1.5.0(Rust/WGC): monitor capture firstFrameArrivedin 0.20 s; window capture of the exact windows Codex fails on (WorkBuddy, ZCode) first frame in 0.22–0.25 s. GDI, DXGI desktop duplication also fine. Event log clean.SESSIONNAME=Console), not MuMu virtual display leftovers (removed), not PixPin or antivirus (killed), not sandbox service (stopped).codex-computer-use.exe --parent-pid <pid>(stdio NDJSON transport) and callingget_window_statewithx-oai-cua-approved-appmeta reproduces the exact sameFrameArrived timed outin ~2 s, first try, every try. So this is not stale helper state; it's deterministic in sky 0.7.13's Swift WGC implementation on this OS build.get_screenshot(desktop-level) is "unsupported method" on the Windows helper — window capture is the only frame path, and it's the one that deadlocks.Suggested direction: the Swift helper's
FrameArrivedhandler appears to synchronously wait on the SoftwareBitmap conversion inside the capture-callback context (reported deadlock stack:GraphicsCapture.dll → WaitForSingleObjectEx/RTMediaFrame.dll → d3d11.dll → RtlEnterCriticalSection). Standalone WGC clients that return fromFrameArrivedimmediately and marshal the bitmap conversion elsewhere don't deadlock on the same machine.Repro: happy to provide the standalone client (
nodescript speaking the helper's NDJSON protocol, ~80 lines) and the standalone WGC test (Python/windows-capture) if useful.Note:
windows-capture1.5.0 (not only 2.0) also callsIsBorderRequiredwhendraw_border=False— if anyone tested WGC on Win10 19045 with that flag and concluded "WGC is broken system-wide", that was a false negative. Usedraw_border=None.