codex icon indicating copy to clipboard operation
codex copied to clipboard

[Windows] IDM becomes unresponsive during Codex Computer Use window enumeration

Open mrLuyao opened this issue 3 weeks ago • 4 comments

What version of the Codex App are you using?

The desktop app's About-dialog version was not independently verified. The installed Computer Use plugin bundle is 26.1103.32239; this is a plugin bundle version, not the desktop app version.

What subscription do you have?

Not included in this public report for privacy.

What platform is your computer?

Windows 11 x64, build 26300. Affected application: Internet Download Manager (IDM) 6.43.18.3, 32-bit. Historical hangs also occurred on IDM 6.43.16.3. Windows UIAutomationCore.dll: 7.2.26100.9949.

What issue are you seeing?

IDM's main window becomes unresponsive for tens of seconds during Codex Computer Use window enumeration. In the observed episode, IDM was idle and responsive beforehand; invoking sky.list_windows() timed out while IDM's main UI thread began consuming substantial CPU time.

The user also experiences IDM hangs after startup or while idle. We have not established that every historical hang shares the same cause.

This issue is specifically for IDM, whose captured busy paths involve tooltip text retrieval and common-control/list-view handling. Related Everything reports are linked below, but the internal defects have not been shown to be identical.

What steps can reproduce the bug?

Observed sequence on the affected machine:

  1. Leave IDM's main window open and idle with its existing download list.
  2. Establish a baseline: for over a minute, the window responds to 500 ms WM_NULL probes and process CPU time remains unchanged.
  3. Invoke sky.list_windows() through Codex's Windows Computer Use tool.
  4. The tool reports computer-use request timed out: list_windows. IDM stops responding to window probes for tens of seconds, while CPU time accumulates primarily on its main UI thread.
  5. A second enumeration also times out. Multiple local dumps captured during the affected interval contain the UIA/control-message evidence below.

No IDM configuration or download-list changes were made between baseline and this episode. This is an observed reproduction, not a claim that every enumeration hangs or that a clean installation has been tested. We have not yet completed a sustained helper-disabled/re-enabled A/B comparison.

What is the expected behavior?

Enumerating desktop windows should leave IDM responsive. Accessibility inspection should have bounded work and effective cancellation so that window discovery does not monopolize a target application's UI thread. Any persistent accessibility monitors should be scoped and cleaned up appropriately.

Additional information

Local diagnostic evidence

  • Two busy snapshots contain a long UIAutomationCore frame chain issuing synchronous window messages through user32!SendMessageW into IDM/common controls.
  • One snapshot contains TTM_GETTEXTW (0x438). The corresponding notification structure was independently checked: TTN_GETDISPINFOW (-530, 0xfffffdee). This supports tooltip text retrieval.
  • Microsoft symbols resolve common-control frames to: CLVReportView::XHitTest -> CLVReportView::v_ItemHitTest -> CListView::OnNotify -> CListView::WndProc. Together with the notification structure, this supports tooltip retrieval triggering list-view hit testing.
  • Another busy snapshot contains CCM_GETVERSION (0x2008) in the UIA message path. The observed activity is therefore not limited to one tooltip message.
  • Most increased CPU time belongs to the main UI thread. Wait Chain Traversal detected no cycle, which does not exclude unsupported waits or a busy-loop hang.

Analysis and recovery limits IDM private symbols were unavailable. Some frame unwinding beyond IDM carries warnings; these are not fully reliable end-to-end symbolic stacks. The repeated module/message paths, independently checked notification structure and Microsoft control symbols provide cross-support. Export names with large offsets were not treated as exact internal function names.

A later low-CPU timeout snapshot was in an IDM/GetMessageA message loop, not the same busy UIA chain. IDM eventually responded again. This does not establish durable recovery, the cause of every historical hang, or whether the final defect belongs to Codex, Windows or IDM.

Investigation request Please investigate whether window discovery or lingering accessibility subscriptions perform expensive synchronous work on IDM controls. Potential areas to examine include target-window scoping, enumeration/cache limits, cancellation, and regression tests for IDM tooltip/list-view controls. These are investigation hypotheses, not confirmed root causes.

Related reports

  • #45121 concerns Everything and is a related UI Automation interaction report, not a confirmed duplicate.
  • The IDM observations were initially posted in this comment. They are being tracked separately here so IDM-specific behavior can be found and investigated independently.
  • A sanitized report has also been successfully submitted to IDM's official support form.

Privacy Only sanitized technical observations are included. No raw logs, memory dumps, screenshots, download URLs or file names, local user paths, account/contact details, license keys, or chat/session identifiers are attached.

mrLuyao avatar Nov 08 '26 09:11 mrLuyao

Proposed remediation (investigation direction; not implemented)

The reported UIA path suggests that window enumeration can trigger expensive synchronous work inside a target application's control/provider path. A safer design would bound enumeration per target window and make it cancellable:

  • Run provider calls through a worker with a strict time budget.
  • Prefer targeted/cache UIA requests where supported; avoid unbounded tooltip/property retrieval and repeated list-view hit-testing.
  • Stop work on timeout and clean up temporary UIA subscriptions/handlers.
  • Report the target window and operation class while allowing unrelated window enumeration to continue.

Regression coverage: tooltip-heavy and large list-view windows, slow UIA providers, cancellation, repeated enumeration, and an unaffected-window control. This does not establish whether the defect lies in Codex, Windows UIA, or IDM; the proposal is intended to isolate the boundary.

Consolidated proposal index: https://github.com/openai/codex/issues/60227 (section 3).

secheverrianogal-beep avatar Nov 08 '26 10:11 secheverrianogal-beep

Duplicate assessment — not a duplicate; same defect family, group for investigation.

I read #60221 in full (body + the one comment) and checked the repo for matching reports. No other IDM report exists: an IDM search across openai/codex returns only this issue, #45121 (Everything), and #60227 (the remediation proposal index).

Closest match, #45121 — "Windows computer-use helper freezes Voidtools Everything while reading large UI Automation result lists" (open, Sep 12, 2026) — shares the defect family: Codex Computer Use's UI Automation work triggers expensive synchronous work on a target application's UI thread and freezes it. It is not the same defect report:

  • Different target app and control path. #45121: Voidtools Everything, frozen by a cross-process UIA bulk fetch of list-view subitems and bounding rectangles after a large result list populates. #60221: Internet Download Manager 6.43.18.3 (32-bit), frozen during sky.list_windows() enumeration, with busy snapshots showing a UIAutomationCore chain issuing synchronous SendMessageW into IDM/common controls, including TTM_GETTEXTW (0x438) tooltip text retrieval and a CLVReportView::XHitTest -> CListView::WndProc list-view hit-test chain, plus a CCM_GETVERSION (0x2008) frame.
  • Different trigger and control test. #45121 reproduces by displaying a large Everything result list, and resolves by stopping only codex-computer-use.exe. #60221 reproduces from an idle IDM window with a 500 ms WM_NULL-probe baseline, then list_windows() times out twice; no helper-disabled/re-enabled A/B comparison has been completed yet, and the reporter states plainly that the final defect has not been assigned to Codex, Windows UIA, or IDM.
  • Reporter already distinguished them. The body names #45121 as a related report, "not a confirmed duplicate", and notes the IDM observations were split out from a comment on #45121 so IDM-specific behavior can be investigated independently.

Other list_windows reports checked (#58952, #56196, #59210, #37427, #25314) are enumeration/capture failures — target not found, helper-side timeout, spawn EPERM — not a target application freezing during enumeration. Different signature, not duplicates.

Verdict: keep #60221 open as its own report, grouped with #45121 for investigation of the shared UIA-enumeration hazard. Remediation is design-only: the proposal in the comment above points to the consolidated index #60227 (section 3) — bounded per-window enumeration, cancellable provider calls, cleanup of temporary UIA subscriptions. No implementation exists yet.

— Muse

grtninja avatar Nov 08 '26 18:11 grtninja

Additional A/B reproduction: include_text=false still triggers the IDM main-window hang

Observed locally on 15 November 2026 during Codex-assisted troubleshooting.

Environment

  • Windows x64, build 26300.9974 (26H2).
  • Installed Codex desktop MSIX package: 26.1111.2228.0; this is the package version, not an independently checked About-dialog version.
  • Bundled @oai/sky: 0.7.21.
  • IDM executable: 6.43.18.2, 32-bit, with a valid Tonec signature.

Controlled comparisons

  1. With the computer-use helper stopped, IDM's main window opened with the complete existing download list and settled to an idle, responsive state.
  2. Starting a fresh helper and capturing IDM's main-window state caused it to become Not Responding. A five-second sample showed about 4.95 seconds of additional process CPU time.
  3. Stopping only the observed codex-computer-use.exe helper allowed the same IDM process to recover within several seconds, without restarting IDM.
  4. Re-enabling a fresh helper and capturing the main window reproduced the hang. Stopping the helper again restored responsiveness.
  5. A temporary smaller-history test still exhibited substantial stalls. The full original list was restored; a record-by-record comparison confirmed all 6,437 original records unchanged, with none missing.

Narrower trigger in a follow-up test

Unlike the enumeration trigger described in the original issue, sky.list_windows() alone remained healthy in this particular follow-up test: IDM was responsive and its CPU time did not increase over five seconds.

The subsequent request below did trigger the hang, using the returned window object directly, without a preceding get_window():

const candidates = (await sky.list_windows())
  .filter(w => w.app.includes("IDMan.exe"));
// After verifying there is exactly one intended IDM window:
await sky.get_window_state({
  window: candidates[0],
  include_screenshot: true,
  include_text: false
});

Thus, disabling returned accessibility text did not avoid the expensive interaction on this machine.

In a separate check while controlling Chrome and Explorer, the helper remained running and IDM's main window remained open and responsive, with zero additional IDM CPU time over a three-second sample. This is a short observation, not a claim that all unrelated-app interactions are safe.

Diagnostics and limits

Repeated native thread snapshots during affected periods contained long UIAutomationCore/USER32/common-control paths. Healthy snapshots returned to the normal message loop. These support an accessibility interaction, but private IDM symbols were unavailable and native unwinding was limited; this does not assign the internal defect exclusively to Codex, Windows, or IDM.

Please investigate implicit accessibility reads/subscriptions during screenshot requests even when include_text=false, including bounded/cancellable work and cleanup. A regression test should preserve a large IDM list and cover both repeated main-window capture and recovery after helper shutdown.

This report contains only sanitized technical observations. No raw dumps, screenshots, download URLs or filenames, registry exports, local user paths, credentials, license data, or chat identifiers are attached.

pijifx avatar Nov 14 '26 19:11 pijifx

Thanks for the controlled A/B; the distinction between sky.list_windows() and the subsequent get_window_state() request is useful.

One additional single-variable check could narrow the trigger: with the same IDM window reference and the helper still running, repeat the call using include_screenshot: false, include_text: false, then compare it with the reported include_screenshot: true, include_text: false call. Please keep the target window and other conditions unchanged.

  • If the no-screenshot call stays responsive, that would point toward the screenshot/capture path as the differentiating trigger.
  • If it still stalls, the remaining window-state/accessibility path would need investigation even without returned text or screenshot.

This is a diagnostic hypothesis, not a root-cause conclusion. The current evidence still does not assign ownership among Codex, Windows UI Automation, and IDM. The bounded/cancellable provider direction in #60227 section 3 remains a reasonable investigation path; this comparison could help identify which request path a regression test should exercise.

secheverrianogal-beep avatar Nov 14 '26 21:11 secheverrianogal-beep