Skip to content

Windows Computer Use: screenshot capture times out in Notepad and Loxone #52965

Open

Description

@christianthoms-arch

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

26.1007.21434 (build 13901)

What subscription do you have?

Plus

What platform is your computer?

Windows 10 Home 22H2, build 19045.6466, x64

What issue are you seeing?

Computer Use cannot capture screenshots of Notepad (notepad.exe) or Loxone Config. Window discovery, app launch and window activation work.

Screenshot capture fails with:
FrameArrived timed out: timed out waiting on channel

Retrying after refreshing the window reference and activating the window fails with:
window capture timed out: timed out waiting on channel

Reproduction:

  1. Import @oai/sky.
  2. Select a returned window using sky.list_windows().
  3. Bind it using sky.get_window({id, app}).
  4. Call sky.get_window_state({
    window,
    include_screenshot: true,
    include_text: false
    }).

Expected: a screenshot of the selected window.
Actual: timeout, with no screenshot returned.

The issue persists after graphics driver updates, a Windows restart, an app restart and a node_repl session reset. Windows' built-in screen capture works.

Hardware: Acer Aspire ES1-711G, Celeron N2940, Intel HD Graphics and NVIDIA GeForce 820M.
Intel graphics driver: 10.18.10.5161.
Computer Use plugin: 26.1007.21434.

App logs repeatedly show:
[windows-capture-native-bridge]
Windows Appshot hotkey registration failed
computer-use request timed out: service_info

It is not yet established whether this startup warning causes the screenshot timeouts.

Feedback was also submitted through the app.
Session ID: 01a126dc-94d4-7e51-bc22-7b6f4f635d29

What steps can reproduce the bug?

  1. Open Notepad or Loxone Config and keep its window visible.
  2. Initialize Computer Use by importing @oai/sky.
  3. Select the application's returned window with sky.list_windows().
  4. Bind it with sky.get_window({id, app}).
  5. Call sky.get_window_state({window, include_screenshot: true, include_text: false}).
  6. Capture fails with “FrameArrived timed out”.
  7. Refresh the window reference, activate the window and retry. Capture fails again with “window capture timed out”.

Reproduced after graphics driver updates, Windows restart, app restart and node_repl reset.

Session ID: 01a126dc-94d4-7e51-bc22-7b6f4f635d29

What is the expected behavior?

Computer Use should return a screenshot of the selected visible window without timing out. Windows' built-in screen capture works on this computer.

Additional information

No response

Activity

  1. added
    app
    on Oct 10, 2026
  2. added
    bug
    windows-os
    tool-calls
    on Oct 10, 2026
  3. christianthoms-arch commented on Oct 10, 2026

    @christianthoms-arch
    Author

    Update: the unofficial Windows 10 capture workaround fixed the issue on my machine, including after a full Windows reboot.

    Environment: Codex App 26.1007.21434 (build 13901), @oai/sky 0.7.6, Windows 10 Home 22H2 x64 (19045.6466).

    I used a locally adapted version of the community MTA-worker patch for codex-computer-use.exe, discussed in #35446. Source: https://github.com/chen0416ccc-cpu/codex-windows-fast-patch-skill/blob/main/scripts/patch-computer-use-helper-win10.ps1

    The supplied profile did not match my complete binary fingerprint. The ten non-signature patch regions matched profile 63C98C4D, while checksum and certificate regions differed. A candidate was built and checked locally, including PE/import/instruction checks and the community unwind test, before replacing the helper. This was not a blind execution of the downloaded script.

    Results:

    • Immediately before replacement, Loxone capture still failed with FrameArrived timed out.
    • After replacement, screenshots of the activated Loxone window succeeded.
    • Mouse clicks between ribbon tabs worked and were verified with new screenshots.
    • Capture worked after resetting the JavaScript session and importing sky again.
    • After a full Windows reboot, capture continued working, and Computer Use was usable for reviewing the Loxone project.

    Limitation: one capture while Loxone was obscured showed the foreground Codex window instead. Capture of obscured windows is therefore not confirmed; successful tests used an explicitly activated, visible Loxone window. Notepad was not separately retested after the patch.

    For reproducibility:

    • Original helper SHA-256: 58FFF5E2359AA09528F48EF37651B9013B204F99E2FD381F0D3D980CF9D2E88D
    • Locally patched helper SHA-256: A7EF05E4DABAD5E9ED22709C3A7928A21D40689DB274276206EF25E87456670C

    This is an unofficial, machine-specific workaround, not an official fix or a claim that the patch is suitable for other binary versions. The original signed helper was backed up for rollback. The modification invalidates its Authenticode signature, and an app/runtime update may replace it. I am leaving the issue open to document the underlying problem until an official fix is available.

  4. F21HGG commented on Oct 11, 2026

    @F21HGG

    Thank you @christianthoms-arch and the authors of the community MTA-worker fix for documenting this so carefully. Your report helped resolve the same screenshot timeout on my Windows 10 PC.

    The original helper SHA-256 matched your 58FFF5E2…D2E88D build exactly. After reviewing and adapting the patch, the candidate matched your full published A7EF05E4…56670C hash. The native unwind checks passed at 47 instruction boundaries and 10 live call frames.

    With the patch installed, Computer Use successfully captured Steam, clicked the Library tab, and captured the changed page. Capture also worked after resetting the JavaScript session and reconnecting. A full Windows reboot and long-term stability have not yet been tested on my machine.

    Thanks again—this made Computer Use usable for me. I hope this additional confirmation helps with an official Windows 10 fix.

  5. byronlai99 commented on Oct 11, 2026

    @byronlai99

    Confirmed fixed on Windows 10 IoT Enterprise LTSC 2021 (21H2, Build 19044.5737, x64).

    • ChatGPT Desktop: 26.1007.2314.0
    • Computer Use plugin: 26.1007.21434
    • @oai/sky: 0.7.6

    Previously, get_window_state({window, include_screenshot: true}) consistently failed with:

    FrameArrived timed out: timed out waiting on channel
    

    After applying the experimental MTA-worker patch to codex-computer-use.exe, the issue was resolved.

    Verified results:

    • Successfully captured the correct Notepad window (1090 × 751).
    • No timeout or retry required.
    • Mouse click succeeded, and UI Automation confirmed focus remained on the Notepad editor.

    Patched executable SHA-256:
    A7EF05E4DABAD5E9ED22709C3A7928A21D40689DB274276206EF25E87456670C

    The patch successfully restores screenshot capture and mouse interaction on Windows 10 LTSC Build 19044. Hopefully this helps with an official fix!

  6. christianthoms-arch commented on Oct 11, 2026

    @christianthoms-arch
    Author

    Closing this issue as the experimental MTA-worker patch has now been successfully reproduced on multiple Windows 10 systems and restores both screenshot capture and mouse interaction.

    I’m glad the detailed troubleshooting and documentation here has already helped other users with the same issue.

    The problem appears to be related to the current Windows capture/threading implementation rather than specific hardware.

    Thanks to everyone who tested, compared builds, and contributed to the workaround. Hopefully this thread is also useful to the OpenAI team for an official fix in a future release.

  7. shehabfares111-sys commented on Oct 11, 2026

    @shehabfares111-sys

    I have confirmed that my original @oai/sky Computer Use helper matches SHA-256:

    58FFF5E2359AA09528F48EF37651B9013B204F99E2FD381F0D3D980CF9D2E88D

    Environment:

    • Windows 10 build 19045
    • ChatGPT Desktop 26.1007.2314.0
    • @oai/sky 0.7.6

    I have backed up the original executable and verified its digital signature.

    Could you share the exact patch profile or reproducible build instructions used to produce the reported patched SHA-256 A7EF05E4DABAD5E9ED22709C3A7928A21D40689DB274276206EF25E87456670C?

    I'd like to validate the candidate independently before changing the installed helper.

  8. christianthoms-arch commented on Oct 12, 2026

    @christianthoms-arch
    Author

    Thanks for verifying the original SHA-256 — that matches my build exactly.

    In my case, Codex adapted the community MTA-worker patch to this exact codex-computer-use.exe build rather than applying a generic binary patch blindly. It first worked on a copy, verified the relevant instruction boundaries / call targets, created a patch candidate, and only then tested it against the original timeout.

    The resulting patched executable matched:
    A7EF05E4DABAD5E9ED22709C3A7928A21D40689DB274276206EF25E87456670C

    The important change was moving the frame-processing work out of the FrameArrived handler onto a separate MTA-initialized worker thread, which avoided the blocking path that caused FrameArrived timed out.

    I would not recommend applying raw offsets to a different build without validation. Since your original SHA-256 is identical, the same patch profile should in principle be reproducible, but I’d still verify the candidate hash before replacing the installed helper.

    If useful, I can also share the exact patch steps/profile that were generated on my system.

  9. byronlai99 commented on Oct 12, 2026

    @byronlai99

    @shehabfares111-sys

    I've published the reconstructed PowerShell patch script here:

    https://github.com/byronlai99/codex-win10-computer-use-fix/blob/main/reproduce_cua_patch.ps1

    It contains 33 byte-level patch entries and has been successfully tested with PowerShell 7.

    Usage:

    .\reproduce_cua_patch.ps1 -OriginalExe '.\codex-computer-use.exe.original' -OutputExe '.\codex-computer-use.exe.patched'

    Expected patched SHA-256:
    A7EF05E4DABAD5E9ED22709C3A7928A21D40689DB274276206EF25E87456670C

    This is a reconstructed binary patch, not the original MTA-worker source code.

  10. baitianyi123 commented on Oct 15, 2026

    @baitianyi123

    Windows 10: callback blocks in an infinite wait with a D3D critical-section dependency on @oai/sky 0.7.7

    I reproduced the timeout on Windows 10 Enterprise 22H2 / 19045.6456, using app version 26.1007.71326 (build 20398, prod) and @oai/sky 0.7.7. The installed helper is unmodified and its OpenAI Authenticode signature is valid.

    Current helper SHA-256:

    D36AE6626BDCED7AE07935D1A91BE14425E8F6CE7C9B5C69F2D8D7DF0C130D83

    Window enumeration, activation and UIA-only reads work. Screenshot requests against a visible blank Notepad window fail with FrameArrived timed out: timed out waiting on channel. Refreshing the binding, reconnecting the JS session and restarting the capture subprocess have not restored screenshots. The configured update channel reports no eligible update.

    Observed stacks and dependency

    Using Windows WCT and DbgHelp against the running original helper, I obtained nine sequential sampling rounds over approximately nine seconds, including before and after the screenshot request returned its roughly two-second timeout. Thread IDs are replaced with A/B here.

    Thread A consistently showed:

    GraphicsCapture.dll
      -> codex-computer-use.exe+0x42C9C
      -> codex-computer-use.exe+0x123159
      -> KERNELBASE.dll+0x1B6AE
      -> ntdll.dll+0x9D624
    

    The helper's PE exception directory places +0x42C9C inside the callback function at RVA 0x42489..0x45B23. The direct call at RVA 0x42C97 targets 0x123147. That routine sets EDX to 0xFFFFFFFF and calls the thunk at 0x1244A8, which resolves through the original IAT to kernel32!WaitForSingleObject; it closes the handle after the wait.

    Thread B consistently showed a RTMediaFrame.dll -> d3d11.dll -> ntdll.dll stack. WCT reported:

    Thread B, blocked
      -> CriticalSection, owned
      -> Thread A, blocked
    

    Thus a frame callback was reached and remained in an infinite wait even after the caller's screenshot request timed out. A media/D3D worker was blocked on a critical section owned by that callback thread.

    WCT reported cycle=false; it did not identify the producer of the event awaited by A. This is evidence of a persistent blocking dependency, not a complete proof of a wait cycle.

    Synthetic conversion comparison

    An independent local diagnostic created a 16x16 BGRA texture and invoked SoftwareBitmap.CreateCopyFromSurfaceAsync from an MTA thread, without capturing any window:

    • D3D11 hardware: completed in 23.223 ms, returned 16x16.
    • D3D11 WARP: completed in 19.005 ms, returned 16x16.

    These checks establish that small ordinary conversions work. They do not validate WGC, actual window-sized surfaces, or the callback environment.

    Working hypothesis and requested investigation

    The evidence supports investigating synchronous waiting inside the FrameArrived callback while a downstream media conversion needs a D3D lock retained by the callback path. The exact asynchronous operation and full dependency cycle remain unconfirmed without source/private symbols. Relevant SoftwareBitmap conversion strings are present in the binary, but strings alone do not establish that mapping.

    Please investigate moving the conversion/encoding and wait out of the frame callback, with explicit object-lifetime, COM-threading, initialization-failure, cancellation and shutdown handling. A supported fix for the current signed helper would avoid adapting raw binary offsets from earlier versions.

    No community patch was generated, installed or executed during these tests. No full memory dump, account paths, user documents, screenshots or credentials are included in this report.

  11. shiwandehongbai commented on Oct 15, 2026

    @shiwandehongbai

    Still reproducible on 26.1007.71326 / @oai/sky 0.7.7; local workaround restores capture

    Tested on October 16, 2026:

    • Windows 10 Pro 22H2, build 19045.6466, x64.
    • Desktop app 26.1007.71326, build 20398, prod.
    • Computer Use plugin 26.1007.71326; @oai/sky 0.7.7.
    • The app's configured update channel reported up_to_date.

    Before modifying the official helper

    The installed helper had a valid OpenAI Authenticode signature. Window enumeration through the official @oai/sky API worked, but capturing a Token Monitor window failed:

    FrameArrived timed out: timed out waiting on channel
    

    After refreshing the window list and selecting a fresh returned window object, a second capture failed:

    window capture timed out: timed out waiting on channel
    

    The failing request was sky.get_window_state({window, include_screenshot: true, include_text: false}). Both attempts returned no screenshot.

    Official helper SHA-256:
    D36AE6626BDCED7AE07935D1A91BE14425E8F6CE7C9B5C69F2D8D7DF0C130D83

    After applying the local MTA-worker workaround

    I adapted the previously documented MTA-worker workaround to this exact fingerprint, working on a copy first. Compared with the earlier official 58FFF5E2…D2E88D helper, all ten PE sections were byte-identical; file differences were limited to the PE timestamp, checksum and certificate data. The resulting candidate's code and data matched the previously validated workaround.

    Patched helper SHA-256:
    452E61A51C24273F22280ACA8A7216B26F077F1683D4A3D9F87487577DBC299B

    With the patch installed:

    1. Capturing the explicitly activated Token Monitor window succeeded at 409 × 700; the returned image was visually checked.
    2. After resetting the JavaScript session, importing @oai/sky again and selecting a fresh window, capture succeeded again at 409 × 700.

    Separate offline checks passed for existing import/callback targets, native unwind behavior at 47 instruction boundaries and 10 live call frames, and install/rollback failure handling. These checks are separate from the two real screenshot results.

    This is an unofficial, fingerprint-specific workaround. It invalidates the helper's Authenticode signature; the original signed binary was retained for rollback. Mouse input, obscured-window capture, a full Windows reboot and long-term stability were not tested in this run.

    The signed 0.7.7 helper still reproduces the timeout on this machine. Please investigate a supported fix for the Windows 10 capture callback/threading path so updates do not require reapplying a binary workaround. The before/after results support that investigation but do not independently establish the complete root cause.

  12. ghostbehindthemachine commented on Oct 18, 2026

    @ghostbehindthemachine

    Confirmed on 2026-10-18: an exact-fingerprint local MTA-worker reconstruction restored Computer Use screenshots and coordinate click/refresh on Windows 10 Home 22H2 build 19045.6466, desktop/plugin 26.1013.40934 (build 20770), Store package 26.1013.4894.0, @oai/sky 0.7.8.

    • Original signed helper SHA-256: B6B0E4979B89E5C22DAB866F0974BC817C0D08CB359E1C2DD7BE3DCCB9E181EB.
    • Local candidate SHA-256: 6BA81674C1EDE62526AE8E0622B956DA96B188FFBE57CA2270D47E0B057F8109.
    • Before: blank Notepad failed with both FrameArrived and window-capture timeout messages.
    • After: correct Notepad and Paint screenshots; mouse clicks opened Notepad Edit and changed Paint ribbon tabs, verified in fresh screenshots. Screenshots in both apps and Paint click/refresh still worked after resetting JavaScript and reconnecting the official sky API.

    Reproducible source, tests and guarded rollback — no executable is distributed. Detailed evidence and limitations on #35446.

    This is a new fingerprint-specific reconstruction, not compatibility with the older hashes in this thread or every 0.7.8 build. It removes the invalid signature; the original signed executable is backed up. No protections were disabled. Reboot, obscured windows and long-term stability are untested. An official signed Windows 10 fix is still needed; please do not treat this as resolution of the underlying bug.

  13. Navist commented on Nov 8, 2026

    @Navist

    Successful Windows 10 test with an additional hash-specific community patch profile

    I reproduced the Windows Computer Use screenshot timeout problem on Windows 10 build 19045, Codex Desktop 26.1103.4239.0, with @oai/sky 0.7.17. Before patching, the helper reported FrameArrived timed out: timed out waiting on channel and window capture timeouts.

    The public MTA-worker patch from chen0416ccc-cpu/codex-windows-fast-patch-skill initially classified my helper as unsupported. A tailored, exact-hash-locked profile was prepared and installed.

    • Original SHA-256: 7F73CF564E1F7FF1CC6DFF117E2BAA6743BE2CB5423BDC0F50274FA0E9A4002C
    • Patched SHA-256: 36A28644DEAF935CEFFAD9C8CCFFB04317CDE7466A860304B703ACBF50086201
    • Original executable size: 1,548,592 bytes
    • Offline comparison: 11/13 regions matched an existing Sky 0.7.17 profile. The remaining differences were the PE checksum and certificate area.
    • The install, rollback, and re-install operations each reported successful hash verification.
    • Live test after restarting Codex: Notepad displayed Computer Use patch test successful. and Codex captured the resulting on-screen window, rather than failing with the prior screenshot timeout.

    This is one successful local workflow, not evidence of a general fix on all Windows 10 systems. The workaround modifies an executable and invalidates its Authenticode signature; it is unofficial, should not be applied to mismatched hashes, and is not a substitute for an official fix.

    I have also submitted the new profile for maintainer review in the community patch repository. No OpenAI executable is being distributed.

  14. shiwandehongbai commented on Nov 10, 2026

    @shiwandehongbai

    Still reproducible on November 10, 2026: signed helper in Codex package 26.1103.7773.0 / @oai/sky 0.7.17

    Following up on my earlier report: the unmodified official helper still fails on this machine after another desktop update. A local workaround restores foreground capture, but the shipped version still needs an official fix.

    Environment and reproduction

    • Windows 10 Pro 22H2, build 19045.6466, x64.
    • Running Windows desktop package: OpenAI.Codex_26.1103.7773.0_x64.
    • Bundled @oai/sky: 0.7.17.
    • Test target: a newly launched, blank Windows Notepad window, explicitly activated in the foreground.
    • The original helper's Authenticode signature verifies successfully, with signer OpenAI OpCo, LLC.

    Before installing any workaround in this run, I used the bundled @oai/sky API to list windows, bind the returned Notepad window with get_window({id, app}), activate it, then request a screenshot:

    await sky.get_window_state({
      window,
      include_screenshot: true,
      include_text: true,
    });

    The first attempt failed with:

    FrameArrived timed out: timed out waiting on channel
    

    After refreshing window selection, obtaining a fresh window binding and activating it again, a screenshot-only retry failed with:

    window capture timed out: timed out waiting on channel
    

    Neither attempt returned a screenshot. Window discovery, binding and activation worked.

    Original signed helper SHA-256:
    0EBB47BFAAF729E22BCDB08DCFCE1419EEFEDA80AFAEFED3EDBC088C24A2E778

    Comparison and temporary recovery

    Compared with the official helper tested on November 7 (7F73CF564E1F7FF1CC6DFF117E2BAA6743BE2CB5423BDC0F50274FA0E9A4002C), all nine PE section headers and raw section contents are byte-identical. File differences are limited to the PE timestamp, checksum and certificate data. This comparison does not establish the complete root cause.

    I adapted the existing local MTA-worker and capture-release workaround to this exact fingerprint, retaining the original for rollback. After installing it and resetting the JavaScript session, the official sky API successfully:

    • Captured the activated Notepad window repeatedly.
    • Clicked the editor and opened the Edit menu using screenshot coordinates.
    • Entered Chinese text and read it back.
    • Closed the menu with Escape and undid the text entry.

    Separate offline checks passed for callback/native unwind behavior at 47 instruction boundaries and 10 live call frames, 20 capture-release path invocations, and guarded install/rollback behavior. Both native test processes exited with code 0 after cleanup. These checks are separate from the live UI results.

    Patched helper SHA-256:
    4C41108C897F3A505E42CDCD0FCA564F4CF124222A7631A586CCDAE0263C3535

    The workaround invalidates the original Authenticode signature and may be overwritten by another update. It is fingerprint-specific; no patched executable is attached. Long-duration, concurrent-session and obscured-window behavior were not tested in this run.

    Please investigate and ship a supported, signed fix for the Windows 10 capture/threading path. Reapplying an unofficial binary workaround after updates is not a durable resolution. If a fix is available in a particular supported build, please identify that build and the expected validation steps. The unmodified helper in the package above still reproduced both timeouts on November 10.

  15. shiwandehongbai commented on Nov 12, 2026

    @shiwandehongbai

    Follow-up on November 12: the existing local workaround remains usable in a basic foreground-window check. Screenshots, mouse clicks, Chinese text entry and readback, menu interaction, and keyboard shortcuts worked. The test window was closed and this check's capture session was released.

    No additional patch was needed for this check. Because the test still used the existing local workaround, this is not evidence that a new official release fixes the original capture timeout. A supported, signed fix is still requested; please identify the build containing it when available.

    Reboot, long-duration use, concurrent capture, and obscured-window capture were not tested.

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-usetool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions