Skip to content

Idle computer-use process continuously handles UIA events, causing system-wide freezes #36833

Open

Description

@HBZHSN

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

26.727.51351

What subscription do you have?

plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

• Title: Idle computer-use process continuously handles UIA events, causing system-wide
freezes

codex-computer-use.exe remains running and subscribed to Windows UI Automation events even
when computer-use is not being invoked. When Edge performs frequent DOM/Accessibility tree
updates, the process handles every WinEvent/UIA event and repeatedly queries patterns,
properties, and text. This creates heavy Win32k contention and can freeze Edge, DWM, mouse
input, and the entire desktop for several seconds.

Expected behavior:

  • Do not subscribe to or process UIA/AX events unless computer-use is actively running.
  • Unsubscribe and terminate the helper process after a computer-use session ends.
  • Coalesce, throttle, or drop redundant events during frequent AX tree updates.
  • UIA processing must not block the browser, DWM, or system input.

WPR evidence shows codex-computer-use.exe repeatedly executing WinEventCallbackWorkItem,
ProxyEventManager::OnWinEvent, and GetPattern/GetProperty/GetText, while Edge heavily
executes HandleAXEvents and NtUserNotifyWinEvent.

• 标题:computer-use 空闲时持续监听 UIA 事件,导致系统级卡顿

Codex 的 codex-computer-use.exe 在没有调用 computer-use 时仍然驻留,并持续响应 Edge 的
Accessibility/AX 树更新。当网页频繁更新大量 DOM 时,它会处理每个 WinEvent/UIA 事件并反向查
询 Pattern、Property 和 Text,造成 Edge 与 Win32k 资源争用,最终导致 DWM、鼠标及整机卡顿十
几秒。

期望行为:

  • 未调用 computer-use 时,不应订阅或响应 UI Automation/AX 事件。
  • computer-use 调用结束后,应立即取消订阅并退出辅助进程。
  • AX 树频繁更新时,应合并、限流或丢弃重复事件,不能逐事件同步查询。
  • UIA 处理不应阻塞浏览器、DWM 或系统输入线程。

WPR ETL 显示卡顿期间 codex-computer-use.exe 持续执行 WinEventCallbackWorkItem、
ProxyEventManager::OnWinEvent、GetPattern/GetProperty/GetText,同时 Edge 大量执行
HandleAXEvents 和 NtUserNotifyWinEvent。停止该进程并重启 Edge 后可用于验证。

What steps can reproduce the bug?

Feedback ID: no-active-thread-019fcacf-0151-7e91-8ef8-81b9e01c0869

What is the expected behavior?

  • Do not subscribe to or process UIA/AX events unless computer-use is actively running.
  • Unsubscribe and terminate the helper process after a computer-use session ends.
  • Coalesce, throttle, or drop redundant events during frequent AX tree updates.
  • UIA processing must not block the browser, DWM, or system input.

Additional information

• 1. Start Codex and invoke computer-use once so that codex-computer-use.exe is launched.
2. Stop using computer-use. The helper process remains running and subscribed to Windows
UI Automation events.

  1. Open the following page in Microsoft Edge.
  2. Wait for the periodic DOM refresh, or click “Refresh”.
  3. Edge and sometimes the entire desktop freeze for several seconds. Mouse movement and
    DWM responsiveness are also affected.

The issue occurs while no computer-use action is active. WPR shows the idle codex-
computer-use.exe repeatedly handling WinEventCallbackWorkItem,
ProxyEventManager::OnWinEvent, and GetPattern/GetProperty/GetText. At the same time, Edge
repeatedly executes HandleAXEvents, UiaRaiseStructureChangedEvent, and
NtUserNotifyWinEvent, causing heavy Win32k contention and system-wide input freezes.

Expected behavior: when computer-use is inactive, the helper should unsubscribe from UIA
events and terminate. Frequent AX updates should also be coalesced or throttled rather
than processed synchronously one by one.

Session ID: Not available
Token-limit usage: Not applicable
Context-window usage: Not applicable

Activity

  1. added
    app
    on Aug 4, 2026
  2. added
    bug
    windows-os
    on Aug 4, 2026
  3. github-actions commented on Aug 4, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. jiangyuShiro commented on Aug 6, 2026

    @jiangyuShiro

    A related Windows user-facing symptom from another task: Computer Use became intermittent and then unusable for desktop apps; repeated attempts and a session reset did not restore control, and app/window operations continued to fail. I did not collect WPR/UIA traces and cannot confirm the idle UIA event loop described here, so this is only a related runtime symptom rather than a direct reproduction. Environment: Codex Desktop 26.730.8199.0, Computer Use plugin 26.730.61639, @oai/sky 0.6.2, Windows x64.

  5. QBnewb commented on Nov 5, 2026

    @QBnewb

    Additional reproduction: Chrome OpenRouter Rankings causes severe mouse/input stutter; stopping the helper and restarting Chrome resolves it

    Observed on 2026-11-05 (UTC+8) with a substantially newer Codex Windows app than the original report.

    Environment

    • Codex Windows app / Microsoft Store package: 26.1029.7803.0, x64.
    • Windows 11 Home, 25H2, build 26200.9711, x64.
    • Google Chrome 156.0.8078.79.
    • Microsoft Edge 156.0.4314.58.
    • AMD Ryzen 5 5600H (6 cores / 12 logical processors), approximately 16 GB RAM.
    • NVIDIA GeForce RTX 3050 Laptop GPU; driver 31.0.15.4630, dated 2023-11-30.
    • Computer Use had been invoked earlier in the session. codex-computer-use.exe was still running after those operations ended, although no Computer Use action was being performed during the manual page tests.

    Trigger and user-visible impact

    Open https://openrouter.ai/rankings in Chrome.

    The user reports severe mouse/input stutter, describing the pointer movement as a slideshow and the desktop as effectively unusable until they slowly close the browser window. This is more severe than a single tab showing a loading spinner.

    Other Chrome websites worked normally, and the same Rankings page worked in Edge on the same machine.

    Checks that did not resolve the problem

    1. Disabled the Browse AI Chrome extension: still reproduced.
    2. Opened the page in Chrome Guest mode: still reproduced.
    3. Disabled Chrome graphics acceleration and relaunched Chrome: still reproduced.
      • The local preference was verified as hardware_acceleration_mode.enabled: false.
      • The relaunched Chrome GPU process used the software path --use-angle=d3d11-warp-webgl.

    Thus the Guest-mode and software-rendering tests did not eliminate this symptom.

    Intervention and outcome

    1. Identified the running codex-computer-use.exe helper.
    2. Stopped only that helper process, leaving the Codex app/chat running.
    3. Verified that codex-computer-use.exe was no longer running.
    4. Asked the user to close the affected tab, fully exit/reopen Chrome, and retry Rankings.
    5. The user confirmed that the problem was resolved and the page was usable.

    No further Computer Use calls were made after stopping the helper, to avoid relaunching it during the retest.

    Evidence boundary

    This is a user-confirmed symptom/workaround observation, not a WPR/ETW/UIA trace. It strongly implicates the helper or its interaction with Chrome, and matches the mechanism reported in this issue, but it does not independently establish a UIA event storm or an exact call stack.

    The successful intervention included both stopping the helper and restarting Chrome; we did not measure helper-stop-only recovery or deliberately relaunch the helper to provoke another system freeze. Chrome had already been restarted during the unsuccessful graphics-acceleration test.

    Please consider this an additional current-version reproduction with a public trigger URL. It may help validate whether idle helper event subscriptions or accessibility work remain active after Computer Use ends.

    Related: #36091 (closed), which also isolated system-wide stutter to the Computer Use helper.

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

    Papercuts 2026appbugcomputer-useperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions