codex icon indicating copy to clipboard operation
codex copied to clipboard

[Windows][26.1021.3705.0][Computer Use] System-wide UI lag persists after Computer Use; killing only codex-computer-use.exe fixes it immediately

Open scrudg opened this issue 1 month ago • 27 comments

What version of the Codex App are you using?

OpenAI.Codex 26.1021.3705.0 (Windows x64 MSIX)

Platform

Windows 11 x64.

What issue are you seeing?

After Codex Desktop uses Computer Use, the entire Windows graphical interface becomes severely sluggish. Window switching, moving windows, Start menu interaction, and general UI redraw/input develop approximately 1–2 second delays.

The slowdown persists after the Computer Use operation has finished.

A controlled A/B test strongly isolates the problem to codex-computer-use.exe: while the system-wide lag was present, I left Codex Desktop running and terminated only codex-computer-use.exe. Windows UI responsiveness returned to normal immediately. I did not restart Codex, stop codex.exe/app-server, restart DWM, or reboot Windows.

This appears to be a recurrence/regression of the behavior reported in #36091 on a much newer build. #36091 is currently closed as completed, but the same causal workaround reproduces on 26.1021.3705.0.

Reproduction

  1. Launch Codex Desktop normally.
  2. Run a task that invokes Computer Use.
  3. Allow Computer Use to perform its operations.
  4. After Computer Use has been used, continue interacting with Windows.
  5. Observe severe system-wide UI latency (approximately 1–2 seconds for actions/redraws).
  6. Confirm codex-computer-use.exe remains running.
  7. Terminate only that process, for example:
Get-Process codex-computer-use -ErrorAction SilentlyContinue | Stop-Process -Force
  1. Observe that Windows UI responsiveness returns to normal immediately while Codex Desktop remains open.

Process snapshot while the problem was occurring

Before terminating the helper:

Process CPU time Working set Private memory
codex-computer-use.exe (PID 38536) ~140 s ~277 MB ~285 MB
ChatGPT.exe renderer (PID 27456) ~170.7 s ~462 MB ~552 MB
codex.exe app-server (PID 27664) ~35.4 s ~171 MB ~150 MB

The Computer Use helper therefore did not show an obviously huge private-memory leak at the time of reproduction.

The process was launched from the bundled CUA runtime as a child of the main Codex Desktop process:

codex-computer-use.exe --parent-pid 13508

A separate codex-computer-use-swift.exe --parent-pid 13508 helper was also present. The A/B test terminated only codex-computer-use.exe; the Swift helper was intentionally left untouched.

Expected behavior

After Computer Use finishes, it should not leave Windows with system-wide input/rendering latency. Any screen-capture, UI Automation, graphics/compositor, overlay, or desktop-discovery resources that are no longer needed should become idle or be released.

Actual behavior

After Computer Use is exercised, codex-computer-use.exe remains active and Windows develops severe system-wide UI latency. Terminating only that process immediately removes the latency.

Why this looks related to #36091

#36091 previously isolated Windows desktop stutter to the same helper: stopping only codex-computer-use.exe eliminated the stutter while ordinary Codex work continued. A later comment there also reported that after Computer Use was exercised, the helper stayed resident and background stutter persisted even after agents completed.

The current reproduction is on 26.1021.3705.0, so this behavior appears to have returned or remained present in a substantially newer Windows Desktop build.

Possible area to investigate

The exact root cause is not established. Given that the lag disappears immediately when only codex-computer-use.exe is terminated, possible areas include the Computer Use screen-capture/compositing path, UI Automation subscriptions/event handling, overlay/input handling, or other desktop resources retained after a Computer Use session.

Please treat those as hypotheses; the confirmed observation is the controlled process-level A/B result above.

Temporary workaround

When the lag occurs, terminating only the helper restores normal Windows responsiveness:

Get-Process codex-computer-use -ErrorAction SilentlyContinue | Stop-Process -Force

This avoids restarting the entire Codex Desktop app, although Computer Use may be unavailable until its runtime is started again.

Related

  • #36091 — same codex-computer-use.exe A/B isolation on older Windows builds (currently closed/completed).
  • #41323 — Windows Computer Use performance/desktop capture concerns and proposal for window-scoped/background automation.
  • #52645 — reports long-lived/respawning Computer Use helpers and Windows performance problems under heavy load.

scrudg avatar Oct 25 '26 18:10 scrudg

Same issue here on 26.1021.3705.0 (Windows 11, Ryzen 7 H 260 / Radeon 780M).

Scrolling PDFs was choppy in every app I tried (Chrome, Obsidian). While scrolling, overall CPU/GPU stayed low, but the main process of Chrome/Obsidian was pinned at ~one full core, and codex-computer-use.exe kept using 10–49% CPU with no Computer Use task running.

Quitting the ChatGPT desktop app (which ended codex-computer-use.exe) fixed it immediately.

Lumo-sig avatar Oct 26 '26 07:10 Lumo-sig

Wir sind ebenfalls von diesem Problem betroffen.

  • Grafikkarte: NVIDIA GeForce RTX 5060
  • NVIDIA-Grafiktreiber: 591.74
  • Codex-Version (Windows-App): 26.1021.3705.0

We are affected by this issue too.

  • GPU: NVIDIA GeForce RTX 5060
  • NVIDIA graphics driver: 591.74
  • Codex version (Windows app): 26.1021.3705.0

flommmm avatar Oct 26 '26 16:10 flommmm

On Windows build 26200.9711 with Codex MSIX 26.1023.6123.0 and @oai/sky 0.7.13, I ran three short A/B/C/D cycles using a synthetic Tk window and fresh native helpers. After list_windows alone, helper read and write operation counters remained flat. After an accessibility-only get_window_state returned successfully, the helper continued averaging 12.3 to 34.6 percent of one logical core and approximately 6,000 to 15,000 combined process I/O operations per second over 19 to 23 seconds. Two threads accounted for roughly 98 to 99 percent of the observed helper CPU increase. These counters do not identify UI Automation calls or disk traffic.

An independent WM_NULL round-trip probe to the synthetic window did not show a consistent latency increase after the request followed by improvement after ending the helper. Post-request medians were 0.086 to 0.106 ms and p99 values 13.7 to 41.1 ms, with similar outliers in controls. This does not exclude delays in real apps, physical input or rendering, and I did not reproduce the reported 1 to 2 second lag.

In a further run, activity persisted for about 72 seconds after a successful accessibility-only request and for another 19 seconds after the synthetic target process was closed. After target closure the helper averaged about 22 percent of a core and 11,700 combined process I/O operations per second. Other desktop activity was not controlled, so the increase cannot be attributed to closing the target. UIAutomationCore.dll was loaded and the helper registered that ETW provider, but that does not prove it was issuing UI Automation calls.

This suggests a useful split for investigation: capture thread stacks or UI Automation and scheduling traces after a successful state request, then separately reproduce a workload that actually exhibits the user-visible latency. WPR CPU and a targeted UI Automation trace could not start under the available permissions. No causal subsystem is established by these counters.

mashingaan avatar Oct 28 '26 10:10 mashingaan

Follow-up with CPU-sampling evidence from the same Windows build, now on Codex MSIX 26.1023.6123.0 / @oai/sky 0.7.13.

In a fresh-helper accessibility-only run against a synthetic Tk window, get_window_state returned successfully with screenshots disabled. More than five seconds after the response, an elevated WPR CPU trace recorded 3,277 linked CPU-sample stacks for codex-computer-use.exe. UIAutomationCore.dll appeared somewhere in 2,857 of them and was the sampled leaf module in 442. A two-second list_windows-only control had two helper CPU samples and neither contained UI Automation frames.

Using the matching Microsoft public UIAutomationCore.pdb, inclusive post-response stacks contained paths including CAutomationElement::GetCurrentPatternAs, LocalUiaNodeProxy::CrossProcess_GetPatternProvider, CUIAutomation::ElementFromHandleBuildCache, UiaNodeTraverser::Traverse, BulkFetch::Fetch, ReadWriteChannelInfo::BlockingWrite, and ChannelBasedClientConnection::WaitForResponse.

This is evidence that Windows UI Automation code was still executing after the accessibility response. It suggests inspecting request completion and cancellation, provider-call lifetime, cache traversal, and UI Automation cleanup after the response.

Important limitations: the trace lost 132,782 system-wide events, this is one accessibility-only reproduction, and the overall Codex turn had not yet completed. My repeated synthetic GUI latency tests did not reproduce the reported 1–2 second system-wide lag. These results do not establish that UI Automation activity causes the lag or that a specific subscription or resource is leaking.

mashingaan avatar Oct 28 '26 13:10 mashingaan

I am seeing similar system-wide lag on Windows 11 with Codex desktop and Computer Use.

After using Computer Use to inspect and interact with desktop windows, codex-computer-use.exe remained running while no further Computer Use calls were being made. In short samples it used approximately 3.5–6% of one logical CPU and around 100–120 MB of working memory. Two helper processes appeared during a later session. Stopping the helpers removed those processes; they did not immediately reappear in the short follow-up check.

The UI also intermittently returned accessibility-state or foreground-process errors, and in one case a screenshot showed another window instead of the requested Sound dialog. I cannot establish that these symptoms share a root cause, or that stopping the helper alone eliminates all lag: Telegram was also using substantial CPU during the same period.

Environment: Windows 11 Pro Insider Preview, build 29695; Codex reports installed version 26.1023.51421 (production channel). The in-app update check reported up to date. These are short observations rather than a controlled reproduction or long-term fix.

bakhtiersizhaev avatar Oct 28 '26 21:10 bakhtiersizhaev

Additional evidence: newer Windows build, foreground UIA measurements, and parent/child cleanup-key mismatch

This supplements the existing lag report with measurements and a narrow lifecycle bookkeeping reproduction. The full causal chain is still unconfirmed. No working live fix is claimed.

Environment and symptoms

  • OS-reported platform: Microsoft Windows NT 10.0.26200.0 x64.
  • Windows desktop app product version 26.1023.51421, build 22530, prod; MSIX 26.1023.6621.0; bundled @oai/sky 0.7.13.
  • Typing, scrolling and switching conversations become very slow after the app has run for some time. It affects multiple conversations.
  • During a user-confirmed lag sample, the app was foreground for all 48 observations. The main UI thread consumed 77.19% of one logical core, and the native helper initiated 217,376 UI Automation calls to the app in about 12 seconds. A BulkFetch call took 981.3 ms. No trace events were lost.
  • The helper can also be present during a smooth period. Enabling Computer Use or merely having its process alive does not establish that lag is inevitable.

Narrow lifecycle bookkeeping reproduction

An independently completed diagnostic child was verified idle through the host thread API and a read-only database. Its helper event identity corresponded to the parent session ID plus the child turn ID. This is event-derived identity evidence, not a captured copy of a live broker request.

The installed main bundle's bookkeeping functions were extracted read-only and evaluated in a separate JavaScript VM with plain in-memory maps. No Electron, native helper, IPC socket, SDK initialization, input operation or network request was performed.

The exact installed registration and completion logic was exercised using these identities:

Case Registration Completion Result
Observed identity pairing parent-session + child-turn child-session + child-turn no match; registration remains
Same-session control parent-session + child-turn parent-session + child-turn match; cleanup stub called
Aligned-child control child-session + child-turn child-session + child-turn match; cleanup stub called

The installed completion handler passes the completing thread ID to a cleanup lookup keyed by session ID and turn ID. Thus the parent/child identity pairing above misses the registration. The installed cleanup path, when it matches, closes a shared helper transport. It is not established as an isolated per-observer release API.

The bundle member tested was .vite/build/main-CP9z2iYn.js, SHA256 9a4d60010bcceb6310ef6a357cae924db06df1babe3c4dd91310da2b5f39cf1f.

The local verifier Verify-InstalledLifecycle.cjs --expect-cleanup extracted the installed functions cc, lc, dc, uc, tue, nue, and the closeActiveTurn closure. It used event-derived identity fields from the previously verified diagnostic child, with all transport operations replaced by in-memory stubs. It returned exit 1 because the child completion left the registration behind; both aligned-identity controls matched. The local verifier and raw traces are not attached here.

The minimal bookkeeping pattern is shown below as equivalent pseudocode, not as a substitute for the installed-function test or a full live reproduction:

const key = (sessionId, turnId) => sessionId + "\0" + turnId;
const active = new Map();
active.set("diagnostic-socket", key("parent-session", "child-turn"));
const completion = { threadId: "child-session", turnId: "child-turn" };
const completionKey = key(completion.threadId, completion.turnId);
const matched = [...active.values()].includes(completionKey);
// matched === false: completion cannot find the registered parent-session key.
// Controls: aligned parent/parent or child/child identities both match.

This is a component bookkeeping failure, not a test proving that the full typing-lag cause has been isolated or repaired.

Live workarounds already rejected

  1. One exact, verified, naturally completed diagnostic turn received a minimal signed-helper turn-ended notification. The sender exited 0, but its target events remained and helper-to-app UIA traffic did not decrease (131,605 versus 133,458 starts over two 8-second windows). No replay was attempted.
  2. Resetting only that diagnostic child's JavaScript kernel did not stop the shared helper's ongoing text-selection/text-range reads.
  3. With explicit consent, a Codex-only deny policy was applied for 30.047 seconds through the versioned public config API, then restored. Other app rules and settings were preserved. The UI thread remained around 80% of one core during the restriction, BulkFetch remained near 1 second, and the user confirmed it was still very laggy. There was no acknowledgement that the already-running observer had hot-loaded the policy, so this does not establish behavior for cold-start rules or new actions.

No app restart, shared-helper termination, global close, program/SDK patch, other-task interruption or generic watchdog deployment was used in these tests.

Requested vendor investigation

Please trace the real native request metadata, lifecycle registration, completion notification and observer disposal across parent/child tasks. Keep the permission-root identity distinct from the execution-thread identity, and ensure the same lifecycle identity is used for registration and completion. Provide a supported way to dispose observers for a finished context without closing transports or invalidating in-flight work belonging to another context.

Acceptance requires sustained reduction of unintended UIA reads, smooth foreground typing/scrolling, and successful continuing desktop control from other active tasks. Notification exit status, a bookkeeping unit test, a low-CPU nonforeground sample or process replacement alone is insufficient.

Limits of this report

The parent/child bookkeeping mismatch is reproducible in isolated execution of the installed functions. The full live causal chain between that mismatch and all lag episodes still needs receiver-side lifecycle tracing. No working permanent or safe live repair is claimed.

Related lifecycle report: #57101 discusses a possible end-turn/outer-completion ordering gap with retained capture resources. This follow-up concerns foreground lag plus a separate parent/child identity-pairing mismatch; a common complete root cause has not been established.

Privacy: this comment excludes account data, business content, personal paths, real conversation identifiers, screenshots, databases and raw traces.

j2388018751-pixel avatar Oct 29 '26 08:10 j2388018751-pixel

Additional Windows performance observation on Codex Desktop 26.1027.3384.0, Computer Use plugin 26.1027.30824, Windows 11 build 26300:

After Computer Use inspected an application window, the user reported lag and the native codex-computer-use.exe helper remained running. A single process counter sample reported 43% of one logical CPU for the helper; the helper was then stopped. No controlled before/after frame-time measurements were collected, so this does not establish causation.

Please investigate whether completed capture and UI Automation work is released promptly, and provide a supported way to release resources for one completed session without interrupting other active sessions. The helper is proprietary, so no runtime patch is supplied.

grandmaster451 avatar Oct 31 '26 01:10 grandmaster451

Additional affected environment and before/after measurements, observed on 2026-10-31. This appears consistent with the same native Computer Use helper issue on a newer Windows app build.

Environment

  • Codex Windows app: 26.1027.3384.0 (x64 MSIX)
  • Computer Use package: @oai/sky 0.7.13
  • Windows 10 Pro for Workstations 22H2, build 19045.6466
  • AMD Ryzen 7 5700X; 32GB RAM
  • NVIDIA RTX 3060 Ti; driver 560.94

Observed sequence

  1. The user reported intermittent pointer freezes, several-second delays opening the desktop context menu, and delayed desktop icon interactions. Restarting Explorer alone had not resolved the problem. The exact initial trigger is unknown.
  2. During manual desktop interactions, Explorer's desktop thread became CPU-intensive and intermittently failed a WM_NULL responsiveness probe; the taskbar thread remained responsive. The native codex-computer-use.exe helper was already resident before these diagnostic Computer Use requests.
  3. The native helper and its same-named child process were stopped. The main Codex app/chat and codex-computer-use-swift.exe were left running. No registry or driver changes, DWM restart, or reboot were performed.
  4. The user repeated desktop context-menu and icon interactions and confirmed that the computer was noticeably smoother. The native helper remained absent at the final process check.

Measurements

The probe used a 50ms timeout. These probe values are capped responsiveness checks, not measurements of the full multi-second delays perceived by the user.

Measurement Before stopping native helper After stopping native helper
Samples / elapsed time 80 / 42.035s 55 / 27.682s
Desktop WM_NULL probe timeouts 21 / 80 0 / 55
Mean probe response 19.499ms 0.502ms
Desktop thread CPU time over sample period 18.875s 1.359s
Desktop thread CPU relative to one logical core 44.9% 4.9%

Initial system sampling showed approximately 24GB RAM available, modest total CPU utilization, and low disk activity; resource exhaustion was not evident.

Possible investigation area and limits

Busy samples included NtUserMessageCall / NtUserGetProp, and UI Automation / OLE accessibility code-pointer candidates appeared during some stalls. However, these were stack-memory code-pointer candidates, not a reliably unwound call stack. They do not establish a particular UIA subscription, synchronous-message loop, or responsible module.

This is a short, single-machine process-level before/after intervention. The exact internal cause is unproven, the manual workloads are not identical, and deterministic reproduction after restarting the helper has not been tested. WPR recording could not start because Windows rejected system-profiling policy activation; no ETW trace was obtained.

Subsequent cursor observation

Later in the same session, the pointer became invisible across the screen although clicking still worked. Windows reported CURSOR_SHOWING and the HID mouse device reported normal status. Reloading the system cursor scheme with SystemParametersInfo(SPI_SETCURSORS, 0, NULL, 0) returned success, and the user confirmed the pointer was visible again.

This is included as a follow-up observation only: a causal relationship with the helper termination has not been established.

Please investigate persistent desktop/accessibility interactions retained by the native helper after Computer Use, and whether abnormal helper shutdown can leave cursor state needing restoration.

Only this diagnostic summary is being shared; no personal paths, process IDs, raw stack addresses, screenshots, memory dumps, or unrelated application logs are attached.

QQ1273459693 avatar Oct 31 '26 06:10 QQ1273459693

Additional confirmed reproduction on 31 October 2026, with trace evidence pointing to the Windows computer-use helper's UI Automation traffic.

Environment and impact

  • Running desktop package observed: OpenAI.Codex 26.1027.3384.0, Windows x64.
  • Windows 11 25H2, build 26200.9711.
  • Helper from the bundled @oai/sky runtime: cua_node/5c41f77a7900391c.
  • Affected applications: FastSMRW's populated timeline/list window and Accessible HA's logbook.
  • Up/down navigation developed intermittent roughly 1–2+ second delays. The application's own selection sound was delayed too, so this was not simply speech-output latency.
  • Both NVDA 2026.3rc1 and JAWS 2025 were tried; neither consistently avoided the problem. Smaller thread windows could remain fast while the populated main window was slow.

Native and ETW evidence

A 20-second sample of FastSMRW's main UI thread, with its main window foregrounded throughout, contained UIAutomationCore.dll in 160 of 183 samples. Stacks included repeated Windows list-control/message processing, UI Automation, COM and RPC frames.

A separate 20-second ETW capture using Microsoft-Windows-UIAutomationCore was filtered to event IDs 509 and 510, extracting emitter PID, peer PID, method and duration:

Selected cross-process UIA event records Count
Total 9,081
Emitted by codex-computer-use.exe 8,941 (98.46%)
Emitted by NVDA 140

These are event records, not necessarily distinct calls; start/end records may both be included. The trace covered multiple applications, so the aggregate should not be interpreted as 8,941 requests specifically to FastSMRW.

Prominent helper-emitted methods included:

  • Static_ReleaseObject
  • UiaNode_GetPatternProvider
  • Static_GetNodeFromProviderEntryPoint
  • UiaNode_GetPropertyValues
  • UiaNode_BulkFetch

The helper had remained resident since the previous afternoon. The exact earlier sequence that put it into this state is unknown. Computer-use tools were also used during troubleshooting, so this is not a claim that every captured request occurred in a completely idle automation session.

Confirmed intervention

Terminated only the identified codex-computer-use.exe process, leaving the desktop app, screen reader and codex-computer-use-swift.exe running. No reboot, Python change or screen-reader setting change accompanied that intervention. Further computer-use calls were avoided during verification.

List navigation and selection sounds immediately returned to normal, and the user explicitly confirmed the problem was completely resolved.

Earlier tests with NVDA add-ons disabled, its built-in voice, its UI Automation support disabled, restarting the affected app, and temporarily stopping PowerToys had not resolved the lag. A short NVDA-off test also remained slow, although its injected helper DLL persisted inside the app, limiting that control. A system-performance sample did not show sustained CPU, memory, disk-queue or DPC overload.

Investigation request

Please investigate retained UIA subscriptions/references, repeated bulk/property/pattern fetches, and whether large native list windows are queried excessively after computer-use operations. This looks closely related to the large-list mechanism reported in #45121, as well as this issue's process-level A/B result.

The helper-level cause is strongly supported by the trace and successful intervention; the precise internal defect is not established.

This report was prepared from the local troubleshooting session with the user's authorization. Raw ETL files, screen-reader logs, UI contents, usernames, hostnames and personal filesystem paths are intentionally not attached.

kieranlittle667 avatar Oct 31 '26 08:10 kieranlittle667

Additional Windows 10 + Telegram Desktop reproduction, with WPR/ETW sampling and a user-confirmed process-only intervention (2026-11-01).

Environment

  • Windows 10 Pro 22H2, build 19045 (x64)
  • Codex/ChatGPT Windows app MSIX 26.1027.3384.0
  • Telegram Desktop 7.3.3.0 (Qt 6.11.2)
  • NVIDIA GeForce GTX 1080 Ti, driver 32.0.15.8266

What happened

The user reports declining a Computer Use/desktop-control operation. However, codex-computer-use.exe remained running as a child of ChatGPT.exe, while Telegram developed persistent periodic typing/scrolling stutters (roughly every 1.4–1.5 s). The helper was present for over an hour, consuming CPU time even when there was no requested Computer Use operation. Prior changes to NVIDIA Overlay and Virtual Desktop services did not provide a lasting fix.

WPR / ETW observations

A ~40.13 s GeneralProfile + GPU WPR trace was recorded during the problem and analyzed locally via the Microsoft TraceEvent parser:

  • 116,732 system-wide CPU samples, including 34,693 attributed to Telegram.
  • Telegram main thread: 24,654 samples; secondary thread: 6,412 samples.
  • 2,238 Telegram samples had their sampled instruction address in UIAutomationCore.dll (1,877 on the secondary thread).
  • codex-computer-use.exe: 7,644 CPU samples.
  • At 1-second aggregation, helper CPU-sample activity correlated with Telegram's secondary-thread activity at r ≈ +0.886, and with its main thread at r ≈ -0.971.
  • The secondary-thread activity showed 21 peaks, with 1.4 s median interpeak spacing (middle 50% ~1.2–1.6 s).

These are CPU sampling correlations, not evidence of the exact UIA methods invoked or a proven internal root cause. They nonetheless provide a closely time-matched signal worth investigating.

Intervention / outcome

With the stutter still present, we terminated only codex-computer-use.exe. We did not restart Telegram or ChatGPT, and did not change drivers/settings in that intervention. The helper did not immediately respawn. The user explicitly confirmed that Telegram became smooth again.

Request

Please investigate whether UI Automation subscriptions/requests or retained accessibility resources remain active after a declined/cancelled Computer Use workflow, and ensure helper cleanup or throttling cannot impair unrelated GUI processes. This is an additional Windows 10 affected environment, rather than a new separate issue.

I retained the 1.34 GB raw ETL privately because it includes system-wide diagnostic metadata and should not be posted publicly. A sanitized diagnostic summary is available; the raw trace could be shared only via an appropriate private secure channel if requested. No message contents, personal paths, or account data are included here.

Killya881 avatar Nov 01 '26 00:11 Killya881

Additional kernel-trace data on the same symptom, including what the helper was contending on and one A/B result that cuts the other way.

Environment: Codex MSIX 26.1027.3384.0, Windows 11 25H2 (build 26200), Ryzen 9 9950X3D, 64 GB RAM, about 450 running processes. On a second, slower PC of mine, typing also lags after Computer Use and closing the Codex processes fixes it, which matches this report. The data below is from the faster machine.

Method: I used Task Manager's process search box as a repeatable stress test, because it produces a lot of NotifyWinEvent traffic. A 250 ms WM_NULL probe tracked UI responsiveness, and WPR recorded CSwitch and ReadyThread events with stacks. There are no matching public symbols for this build, so sub_* names are RVAs and other names come from PE exports and imports. Disk was ruled out: C: latency stayed at 3 ms or less and no NTFS slow-I/O events were logged.

Where the time went

The trace below covers the first 10.5 s after Task Manager started, with codex-computer-use.exe resident. I did not deliberately trigger Computer Use during the test.

  • Task Manager's UI thread was switched out 35,520 times with wait reason WrResource, almost always for under 5 ms. The dominant stack is the global win32k USER lock: dui70!NotifyAccessibilityEvent -> user32!NotifyWinEvent -> NtUserNotifyWinEvent -> win32kbase!EnterSharedCrit -> ExAcquireFastResourceShared
  • Its CPU time was mostly kernel: in one 2.1 s hang it used 1.00 s kernel and 0.27 s user.
  • The helper was its top lock partner in both directions. Task Manager readied the helper's two busiest threads 7,406 times and they readied it 6,501 times. The helper also used the second-most CPU in that window (2.93 s, after Task Manager's 7.99 s).
  • Helper thread A resumed 35,499 times. It looks like a UIAutomationCore message-pump thread (UIAutomationCore.dll -> PeekMessageW). Its main stacks run through NtUserPeekMessage -> KeUserModeCallback, then back into win32k, all waiting on the same lock:
    • 22,697 in user32!GetClassNameW
    • 5,867 re-entering EnterCrit after the callback
    • 5,657 in SendMessageTimeoutW called from oleacc.dll
  • Helper thread B resumed 21,693 times. About 9,650 of those were in UIAutomationCore.dll -> user32!GetPropW, also waiting on that lock.

My reading, which is inference and not symbol-verified: the KeUserModeCallback path under PeekMessage (win32kfull!sub_178b0) is out-of-context WinEvent delivery. Stacks through it rose sharply across every listening process at once when Task Manager began firing events. The helper's pattern would then mean that each UI event in any application makes it take the global USER lock several more times. That would fit reports of lag across unrelated apps while overall CPU stays low. It would also fit an event subscription that outlives the Computer Use request, although this trace does not prove one.

The helper was not the only listener here

Stacks through that same path, per process, in the same 10.5 s:

Process Stacks
codex-computer-use.exe 42,087
10 other Chromium/Electron-based processes (browser, chat and editor apps) 25,600 to 34,800 each
nvcontainer.exe 22,741

A/B with Codex fully closed

This was one hand-driven run of each, so it is not a controlled comparison:

Helper running Codex fully closed
Observation window ~40 s ~75 s
UI hangs of 2 s or more 3 3
Longest hang 13.7 s* 9.9 s
Task Manager CPU, kernel / user 21.7 s / 5.2 s 19.4 s / 7.1 s

* This hang overlapped with WPR saving the trace, so it may be inflated.

In this workload, quitting Codex did not clearly fix the hangs. With Codex closed, the UI thread still had 37,674 WrResource switch-outs against the remaining listeners. So I would treat the helper as a heavy amplifier of a broader win32k contention pattern, at least on a machine with many WinEvent listeners, rather than the sole cause. That may be part of why some reports see a dramatic fix from killing it and others do not. Task Manager search may also be a worst case that behaves differently from everyday typing and scrolling.

Huorong antivirus was installed during both runs and has since been removed. Its drivers did not appear in the top Task Manager UI-thread stacks.

Suggestion

Please check whether UI Automation event handlers or WinEvent hooks stay registered after a Computer Use request completes. If they do, removing them when no session is active, and scoping them to the target process during a session, should reduce this contention. The per-event GetClassName, GetProp and SendMessageTimeout calls look worth avoiding for events from unrelated processes. This is a suggestion from the outside; I can't see the helper's code.

I can share further stack excerpts if useful. The raw ETLs contain private process and path data, so I'd rather not post them publicly.

LiuChang-ao avatar Nov 01 '26 09:11 LiuChang-ao

Additional Windows UI Automation profiling evidence (newer desktop build)

This may be related to #56941. The observations below narrow the hot path; they do not establish that every report has the same root cause.

Environment

  • Windows 11 x64, build 26300; 64 GB RAM, 32 logical processors.
  • App-reported version 26.1027.30824, build 22943, production.
  • Windows package version 26.1027.3384.0.
  • Bundled @oai/sky 0.7.13.
  • Evidence collected on 2026-11-01. These versions describe the affected capture, not a claim about the latest available release.

Symptom and capture

Severe mouse/typing and Codex UI stutter recurs during normal use while multiple browser-oriented tasks are open. A deterministic minimal reproduction has not yet been isolated.

The user explicitly confirmed noticeable stutter throughout a 15-second WPR CPU.Verbose capture. At a 1 ms sampling interval with 0 events lost, the Codex UI/main thread had 8,745 CPU samples; 6,220 (71.13%) contained UIAutomationCore frames. This is the fraction of that thread's CPU samples, not total machine CPU or a direct input-latency measurement.

A separate short measurement found the same UI thread using approximately 83% of one logical core. Overall CPU and available RAM did not suggest whole-machine CPU or memory saturation during that later episode.

Main-thread hot path

Caller-to-callee summary, with addresses and identifying details removed:

COM/RPC STA dispatch into the app UI thread
  RemoteUiaNodeStub::Incoming_BulkFetch
  UiaNode::CrossProcess_BulkFetch
  BulkFetch::Traverse
  UiaNodeTraverser::Traverse / GetNextSibling
  UiaNodeFactory::FromLocalProvider / ConstructUiaNode
  ComInvoker::Init
  CGIPTable::RegisterInterfaceInGlobalHlp
  CInternalPageAllocator::GetEntryIndex

Other stacks read properties through ProviderGetPropertyValue / GetPropertyValues. In parallel, codex-computer-use.exe stacks parse BulkFetchResponseMsg / CacheResponseElementMsg and release CAutomationElement / CCacheHandler / LocalUiaNodeProxy objects.

Native API attribution

A separate approximately 12-second Microsoft-Windows-UIAutomationCore Perf ETW capture also reported 0 events lost. It directly recorded one thread inside codex-computer-use.exe invoking:

  • CUIAutomation::ElementFromHandleBuildCache, including a paired start/stop lasting approximately 133 ms.
  • CUIAutomation::GetFocusedElementBuildCache, with a paired start/stop lasting approximately 23 ms.

The app main process simultaneously emitted many provider-callout and incoming-request events. Event counts include internal operations and start/stop pairs; they are not counts of complete desktop scans.

Attribution limits and prior mitigation

A review of 210 computer/browser tool calls across the latest two turns of four website chats found no explicit desktop-state/app-list/window-list calls in that reviewed subset. Most used browser DOM, locators, CDP or screenshots. This does not exclude indirect activation of a shared native monitor, other chats or earlier calls.

The local transport carries thread/turn/item metadata, but the captured Windows API events do not carry a corresponding chat/request ID. No single chat, public API call or background callback has been uniquely identified. The presence of an accessibility-monitor module in the native component is only a lead.

Reducing Git background contention did not eliminate user-confirmed stutter. Priority-only trials on the computer-use helper were previously ineffective. No binary patch, antivirus change or snapshot/undo disable was attempted.

Requested investigation

Please correlate native request IDs and chat/turn/item metadata with accessibility-monitor cycles and UIA calls; investigate traversal scope, cache allocation/lifetime, duplicate reads and synchronous provider work on the app UI thread. A supported way to bound unnecessary background UIA work without breaking active browser/computer tasks or snapshot/undo functionality would be valuable.

Privacy: this submission contains only manually reviewed diagnostic text. No full chats, raw logs, ETL/ETLX files, screenshots, page contents, account details, customer data, local paths, chat IDs or machine identifiers are attached. Raw evidence remains local and is not authorized for automatic upload.

greeceyou-sudo avatar Nov 01 '26 19:11 greeceyou-sudo

Additional confirmation — Windows 11, ChatGPT 26.1027.30824

I'm experiencing the same issue with the latest Windows desktop build installed on my system.

Environment:

  • OS: Windows 11
  • ChatGPT version: 26.1027.30824 (released October 29, 2026)
  • Application: ChatGPT — Powered by Codex & OWL

Observed behavior:

After using Computer Use, Windows responsiveness degrades noticeably, especially when typing in Telegram Desktop. Text input becomes choppy and animations are no longer smooth.

Interestingly, Task Manager shows no significant system load:

  • CPU usage: approximately 2%
  • RAM usage: approximately 40%
  • Disk usage: approximately 0%

Confirmed troubleshooting result:

I identified two running processes:

  • codex-computer-use.exe
  • codex-computer-use-swift.exe

While the lag was occurring, I manually terminated only codex-computer-use.exe, leaving the Swift helper and main ChatGPT application running.

Result: Telegram immediately returned to normal responsiveness. No application restart, Windows reboot, or driver changes were required.

This was a single successful before/after test, not yet a repeated controlled reproduction.

I also noticed occasional cursor flickering or disappearing while typing, although I haven't established whether this is related.

Request:

Could the team investigate why the Computer Use helper continues affecting Windows input responsiveness after its operations are completed?

A permanent fix would be greatly appreciated. Computer Use is an essential part of my daily development workflow, and manually terminating the helper after each session is not a practical long-term solution.

Thank you for looking into this issue!

romandemidchik avatar Nov 01 '26 23:11 romandemidchik

Additional report on Codex Windows app 26.1027.3384.0, observed on 2026-11-02 (UTC+08:00). This adds a Windows 10 case on a newer app build.

Environment

  • Windows 10 Pro 22H2, build 19045.6466, x64.
  • Codex MSIX package: OpenAI.Codex 26.1027.3384.0.
  • Ryzen 5 5600, 32 GB RAM, NVIDIA RTX 3060; NVIDIA driver 536.40.
  • Computer Use had been used earlier in the session. The helper remained running while the user was manually using other applications.

Symptoms and isolation

Steam scrolling was very sluggish when Steam was the foreground/active window, while scrolling the same window when it was not active was smooth. Scrolling an application-management page and switching Task Manager tabs were also slow.

We tried the following sequential comparisons, with the user checking responsiveness after each:

  1. Restored the original ActivityWatch AFK watcher, removing the custom low-level keyboard/mouse hooks: no improvement.
  2. Suspended ActivityWatch's foreground-window watcher: no improvement. It was subsequently resumed.
  3. Switched to the English keyboard layout: no improvement.
  4. Terminated only codex-computer-use.exe, leaving the Codex/ChatGPT app and the conversation running: the user immediately reported that Steam and the application-management page scrolled noticeably smoothly again. The separate codex-computer-use-swift.exe helper was not terminated.
  5. With the Computer Use helper still absent, restarted Task Manager: switching most tabs became noticeably faster. The Processes tab still had some delay, so we are not claiming every remaining Task Manager delay has the same cause.

The prior ActivityWatch filter/diagnostics were subsequently restored. The Computer Use helper was kept stopped, and the Computer Use session was reset. No reboot, display-driver change, or power-plan change was involved.

Resource observations

The system was not obviously saturated: total CPU approximately 14–17%, approximately 14 GB physical RAM free, no notable page-in activity, and disk queue length 0 during the snapshots. The RTX 3060 was approximately 39 C, approximately 11% utilized, with approximately 1.7 GB of 12 GB VRAM in use. A short process sample showed the Computer Use helper using approximately 2.2% of the whole 12-logical-CPU system.

UIAutomationCore.dll was loaded in the helper. UI Automation/event subscriptions or retained foreground-window resources are possible investigation areas, not a proven internal root cause; no call stacks or ETW trace were collected.

Windows also recorded a steamwebhelper.exe AppHangB1 event at approximately 18:54 local time, but we cannot establish whether that hang shares the same underlying mechanism.

Evidence limits / expected behavior

This is one naturally occurring incident with user-confirmed process-level comparisons, not a claim of deterministic reproduction on every fresh launch. We did not restart Computer Use to force another slowdown after the workaround succeeded.

A resident Computer Use helper should not degrade manual interaction with unrelated foreground applications after computer-control operations have finished. Please consider this additional version/platform confirmation of the helper-lifecycle/performance issue in this thread.

This report contains the environment and diagnostic summary only; no private conversation, raw activity history, screenshots of personal content, or memory dumps are included.

dunhao-raymond avatar Nov 02 '26 11:11 dunhao-raymond

Additional Edge reproduction on 26.1027.3384.0 — cross-chat helper lifetime, UIA ETW attribution, and single-process recovery

Summary

On 2 November 2026, an external Microsoft Edge window repeatedly stalled during ordinary wheel scrolling of an already loaded, mostly static article containing long tables. Native window-thread sampling and a 30-second UI Automation ETW capture identified codex-computer-use.exe as the requester. Terminating only the identified helper restored smooth scrolling in the user's original Edge page, without changing the article, frontend rendering, browser settings, or restarting Edge.

Retrospective transcript inspection found that this helper started immediately after Computer Use in a different chat, targeting an unrelated desktop application. That chat completed approximately 111 minutes before the ETW capture. This is an observed instance of cross-application interference after the originating Computer Use turn completed, rather than an assertion based only on a resident process or elevated CPU.

Environment

Component Observed value
Installed Windows MSIX package OpenAI.Codex 26.1027.3384.0, x64; About-dialog build not separately collected
Windows version/build 10.0.26100
UIAutomationCore.dll 7.2.26100.9949 (WinBuild.160101.0800)
Microsoft Edge 156.0.4314.58
@oai/sky / @oai/cua-repl 0.7.13 / 0.1.2
Unified Computer Use plugin 26.1027.30824
CUA runtime cache 5c41f77a7900391c
Runtime archive version 0.0.35/20261022235854-0e24579b4572
Native helper signature Valid, OpenAI OpCo, LLC
Native helper SHA-256 49c7f43da0c2a9dbcadfb0c993058147018bf7c1d0fde4360de11ace2c98f45d

All times below are Asia/Shanghai, UTC+08:00.

Reconstructed sequence

  1. At 20:08:29.250, another chat invoked mcp__cua_repl.js: await cua.computer.launch_app({app:'<unrelated desktop application>'}); await cua.listWindows(); The tool returned successfully. Call ID: call_6bd4d185df4b4f37930e28de68a8a343.
  2. At 20:08:29.291384, native helper PID 35500 was created as a child of the desktop main process, ChatGPT.exe PID 6696. The 41 ms timing match and executable provenance identify a strong startup association.
  3. That chat made its last CUA call at 20:14:24.997 and recorded task_complete at 20:16:09.160.
  4. The affected article was also tested in independent Edge profiles. The user repeatedly confirmed the same stalls. Disabling smooth scrolling did not help. The renderer accessibility switch also did not resolve the issue; this was not a complete disablement of browser/platform UIA.
  5. At 21:36, successful native-input sampling found repeated UIAutomationCore/UiaFind frames in the Edge window thread, before the UIA ETW capture.
  6. At 22:07:21–22:07:51, ETW attributed helper-to-Edge requests to PID 35500 and browser PID 2096. Provider execution occurred in Edge's window thread TID 2084.
  7. After validating the helper path, PID and parent, only PID 35500 was terminated. The action had returned by 22:14:11.071.
  8. At 22:16:15.555, the user explicitly confirmed that scrolling in the original Edge page was smooth again.

The user's initial complaint at 20:05 predates PID 35500; no trace identifies the requester for that earliest period. The same originating chat had used CUA at 18:33, but no historical PID ties that earlier helper to the initial complaint. The later repeated stalls and recovery are the period directly supported by process and trace evidence.

This investigation chat's first cua.getTab() attempt occurred only at 20:33 and failed with failed to write kernel assets: 系统找不到指定的路径。 (os error 3), including a retry after reset. It cannot explain the helper's earlier creation. The initialization error is a separate observation, not the established cause of the UIA activity.

Native and ETW evidence

Provider: Microsoft-Windows-UIAutomationCore, GUID {820A42D8-38C4-465D-B64E-D7D56EA1D612}, keywords 0x4000000000010000, level 5, 30 seconds.

Observed event records Count
544 ClientConnection_RequestWritten, PID 35500 → peer 2096 115,257
545 ServerConnection_RequestReceived, PID 2096 ← peer 35500 115,463
546 ServerConnection_ResponseWritten, PID 2096 → peer 35500 30,092
547 ClientConnection_ResponseReceived, PID 35500 ← peer 2096 30,092
517 GetPropertyValue start records emitted by Edge 1,129,519
517 Fragment::Navigate start records emitted by Edge 510,331
509 UiaNode_BulkFetch start records emitted by helper 14
509 UiaNode_GetPatternProvider start records emitted by helper 25,233

The ETL decoded 15,012,810 events and its final size is 2,259,378,176 bytes. The logfile header reports 492,524 events lost, zero buffers lost. These are incomplete observed record counts. RequestWritten records include low-level operations such as object release; they are not whole-tree scan counts. Start and stop events are not added together. Provider counts are not automatically attributed one-to-one to client requests. Tracing overhead affects rates and timing.

Independent native window-thread samples:

Sampling run Total samples Containing UIAutomationCore Containing UiaFind
21:36, before UIA ETW 399 196 164
22:07, during UIA ETW 399 244 206

Stacks contain repeated UIAutomationCore!UiaFind, UIA/COM/RPC and browser window-message processing. Sampling used periodic thread suspension and is diagnostic evidence, not an unbiased CPU percentage. Only module/export symbols were resolved; Edge-specific function names with large export offsets are not treated as precise functions.

Earlier Chromium traces showed repeated CrBrowserMain dispatch blocks around user stall markers, up to 2,849 ms, without matching renderer long tasks at those markers. Ordinary CDP-driven scrolling did not reproduce the same native-input symptoms. The later process attribution and single-helper intervention provide the causal evidence beyond those timing correlations.

Page workload

The local article was 556,497 HTML bytes, 11,512 runtime DOM elements, 26 tables and 2,186 table rows; the largest table had 655 rows. It was already loaded when repeated stalls occurred and was not continuously downloading the article. Initial layout cost, approximately 0.8 seconds in earlier controlled page tests, is separate from the recurring post-load freezes. This report does not claim that every long table or every Edge page reproduces the issue on a fresh helper.

Concrete installed-code cleanup path to investigate

Read-only inspection of the shipped desktop JavaScript and Windows SDK found this sequence:

  • The native-pipe broker records active ownership using session_id and turn_id.
  • After a successful SDK end_turn request, the broker removes the corresponding active entry; that branch does not close the helper transport.
  • The desktop turn/completed handler calls closeActiveTurn. That method returns false without closing the transport when the active entry is absent.
  • Closing the last pipe socket also closes the transport, but a persistent REPL connection need not disconnect at turn completion.

An isolated JavaScript VM check evaluated the actual extracted installed registration/lookup/close functions, with in-memory maps and a close stub. With ownership still registered, completion called the close stub once. After the end_turn bookkeeping step, completion returned false and called it zero times. No native helper, IPC, Electron, browser or UIA was started for this check.

This establishes a concrete bookkeeping path, not that this historical live session took it. Native end_turn behavior and the actual historical pipe messages were not captured. Please investigate both ownership/cleanup ordering and whether the native accessibility monitor truly idles after turn end, errors or cancellation even when its process remains resident. The binary retains src/accessibility/monitor.rs and accessibility refresh markers, but its implementation/source symbols were not available.

Expected result and requested investigation

Completed Computer Use should release or idle its UIA work, and should not keep traversing an unrelated foreground application's large control tree. Please inspect lifecycle cleanup across SDK end_turn, desktop turn/completed, persistent pipe connections and concurrent chats; constrain accessibility refreshes to required targets; bound/coalesce expensive traversal and event work. Please identify the first signed runtime release containing a fix.

Only stopping the identified helper is a confirmed recovery for this occurrence. No binary patch, registry change, page rewrite, GPU change, system accessibility disablement or permanent vendor fix is claimed.

Reproducible installed-code check result

The installed desktop bundle inspected was .vite/build/early-bootstrap-491-e75c34fa1b2c0832.js. The offsets below are string offsets in that extracted UTF-8 JavaScript file; the SHA-256 identifies the complete extracted file. These are results of an isolated bookkeeping check, not a recording of the historical live pipe traffic.

{
  "source": {
    "sha256": "db3fd1590ec3d3c621a85c2cf925785ea6d99df8bc4eaec8bc4b1e974758a8ab",
    "registrationOffset": 145757,
    "lookupOffset": 147724,
    "closeOffset": 143388
  },
  "cases": [
    {
      "endBeforeCompleted": false,
      "afterRegistration": 1,
      "beforeCompletion": 1,
      "result": true,
      "closeCalls": 1
    },
    {
      "endBeforeCompleted": true,
      "afterRegistration": 1,
      "beforeCompletion": 0,
      "result": false,
      "closeCalls": 0
    }
  ],
  "scope": "Actual installed registration and close functions evaluated with in-memory maps and a close stub. No Electron, helper, IPC, UI Automation, browser, or network was started. This proves a bookkeeping path, not that the historical live session took this path."
}

Retained evidence

The measurements above are included inline. Raw ETL, original native stacks/traces, sanitized JSON summaries, the isolated check script and transcript source locations are retained locally and can be reviewed for private support transfer if requested. No files are attached to this comment. Full conversations, local window titles, original article contents and extracted proprietary bundles are not being published.

Selected retained-file integrity metadata:

{
  "uia-rootcause-01/uia.etl": {
    "bytes": 2259378176,
    "sha256": "8bcd2e32725cdbcae8fafa57f850e15ea5267b5253df9cc163970d47a44167a5"
  },
  "uia-rootcause-01/uia-methods.json": {
    "bytes": 9346,
    "sha256": "307411438840151c29ea36d1836c44d3febd9ed1072d9bde6b88146e9a8f3de0"
  },
  "native-stacks-focused.json": {
    "bytes": 640216,
    "sha256": "caa85c26a821b862a31e1ae09df10a87c803e5e9dc8841d264af0f3e8a4ca6a6"
  },
  "native-stacks-etw.json": {
    "bytes": 713558,
    "sha256": "001e3b7da763ed29ed16c23161d81e453e171ada07e3de9c46cf84705a594c8b"
  }
}

No fresh-helper end-to-end recurrence was attempted after recovery. Please treat the proven UIA attribution/intervention separately from the still-unconfirmed native cleanup root cause.

CheshireMew avatar Nov 02 '26 15:11 CheshireMew

Additional user-confirmed reproduction on Windows 11 / Codex MSIX 26.1027.3384.0

Observed on 2026-11-02. Additional evidence for this issue.

Environment

  • Windows 11 Pro, x64.
  • Codex Windows MSIX package: OpenAI.Codex 26.1027.3384.0.
  • Installed Computer Use plugin: 26.1027.30824; Unified Computer Use was also enabled (its version was not independently verified).
  • AMD Ryzen 5 7600, 12 logical processors, 32 GB RAM.
  • NVIDIA GeForce RTX 3070 Ti, Windows driver version 32.0.16.2101.
  • Display: 2560x1440, approximately 165 Hz.

Symptoms

After Computer Use operations finish, manual desktop interaction remains sluggish. The user reports roughly one-second typing freezes followed by text catching up, particularly in Telegram Desktop and Viber, along with sluggish window switching and other applications. The user specifically associated recurrence with Computer Use, even after it appeared inactive.

Most informative intervention

A later lag episode had a resident codex-computer-use.exe running as a child of the main ChatGPT.exe/Codex process. Its creation time was 20:36 local; it remained resident at approximately 20:52 after the computer-use work had finished. The executable path was verified as the bundled OpenAI CUA runtime before stopping it.

At 20:52:51 only this identified native helper was terminated. The ChatGPT/Codex application and the separate codex-computer-use-swift.exe helper remained running. No reboot, display-driver change, registry change or restart of Telegram/Viber accompanied this intervention. The native helper remained absent throughout five checks spanning 20 seconds. The user then explicitly confirmed that responsiveness became smoother.

Resource observations

  • During the later lag snapshot, total system CPU was approximately 3%, with approximately 16.25 GB RAM available.
  • Earlier short samples showed 8–18% overall CPU, over 16 GB RAM available, low GPU utilization and negligible DPC/interrupt percentages.
  • A separate earlier eight-second D3DKMT vertical-blank sample collected 1,315 intervals: median 6.06 ms, p99 6.44 ms, maximum 8.16 ms, approximately 165 Hz. This was not recorded simultaneously with the successful 20:52 intervention and does not rule out application rendering/input issues.

Limits

Earlier helper-stop attempts were inconclusive or did not produce a clear user-reported improvement. The later successful intervention is one user-confirmed before/after observation, not a deterministic repeated laboratory reproduction. The native helper had returned after subsequent Computer Use; the separate Swift helper also restarted automatically after an earlier stop, but this does not establish that the Swift helper causes the lag. No ETW call attribution or source-level cause was established in this session.

Requested investigation

Please investigate the lifetime and cleanup of Windows UI Automation/event monitoring after Computer Use finishes, including shared helpers and concurrent chats. A supported way to release work belonging to a completed session without affecting active sessions would help. A permanent fix is preferable to repeatedly terminating the helper manually.

This report shares a reviewed diagnostic summary only, with the user's authorization. It excludes personal paths, machine/account identifiers, conversation contents, business files, screenshots, raw logs and dumps.

pahan0772-hub avatar Nov 02 '26 19:11 pahan0772-hub

Additional Windows reproduction with a lossless CPU/UIA trace, cross-chat origin correlation, and two user-confirmed helper-only recoveries. This report identifies an active Windows UIA path; it does not establish the precise native cancellation defect or claim a permanent fix.

Environment: Windows x64; Codex MSIX 26.1027.6604.0; bundled @oai/sky 0.7.13; Core Ultra 7 265K, 20 logical processors, 32 GB RAM, RTX 5080. The hardware description is context, not an attribution to a GPU-driver defect.

Observed sequence:

  1. The user reported whole-PC stutter, including pointer jumps, desktop animation and YouTube freezes. Stopping only codex-computer-use.exe restored responsiveness while the main desktop app and codex-computer-use-swift.exe remained running.
  2. The helper later restarted. A read-only transcript correlation found the originating operation in a different chat: @oai/sky was imported and list_apps called, followed by get_window and screenshot-oriented get_window_state against an isolated native test window. The native helper was created about 1.3 seconds after the first call, under the main desktop app rather than the test application's process Job.
  3. Roughly ten minutes later, a 40-second elevated WPR capture recorded CPU samples/stacks and UIAutomationCore events 509/510/544–547. The user confirmed noticeable stutter during this capture. An initial ~12.4-second portion preceded any native state query by the diagnostic chat; it already contained UIA calls from the helper to an unrelated desktop app.
  4. The diagnostic chat then performed a read-only application inventory and one accessibility query against an existing Explorer window. This is an important intervention/confound: the entire capture must not be described as an idle-only control.
  5. After the trace, the user reported continued stutter. Stopping only the identity-verified native helper again restored responsiveness. The main app and Swift helper remained running.

Trace analysis:

  • Complete ETL conversion/iteration: 4,500,958 events; EventsLost = 0, Truncated = false; 1 ms sampled-profile interval. The merged trace span was ~41.12 seconds, including capture boundaries.
  • 262,250 selected UIA event records. These include start, stop and transport events and must not be interpreted as 262,250 distinct calls.
  • The native helper emitted 58,519 event-509 call-start records. Of these, 58,499 targeted LINE Desktop; the largest one-second bucket contained 13,677 starts.
  • LINE-targeted starts included 45,407 Static_ReleaseObject, 4,662 UiaNode_BulkFetch, 3,989 UiaNode_GetPatternProvider, 3,139 UiaNode_GetPropertyValues, and 180 TextRange_GetText. Call counts are not screenshot counts. Event payloads used here identify methods/peers, not the returned application text.
  • CPU stacks were decoded with the matching Microsoft public UIAutomationCore.pdb (GUID 7eb15b84-7d3a-bfe3-e935-1438da8595c3, age 1). UIAutomationCore appeared in 7,806/8,806 helper CPU samples (88.64%), 13,225/18,845 LINE samples (70.18%), 2,881/3,373 Chrome-browser-process samples (85.41%), and 3,231/4,113 Explorer samples (78.56%). These percentages are inclusive fractions of each process's CPU samples, not whole-PC CPU percentages, elapsed waiting time or video-decoder utilization.
  • Helper stacks included CUIAutomation::GetFocusedElementBuildCache, CUIAutomation::ElementFromHandleBuildCache, BulkFetch::Fetch and UiaNodeTraverser::Traverse.
  • LINE stacks included RemoteUiaNodeStub::Incoming_BulkFetch, UiaNode::CrossProcess_BulkFetch, BulkFetch::Traverse and UiaNode::ProviderGetPropertyValue, with COM/RPC and Qt frames.

Lifecycle/scope concerns to investigate:

  • A native tool request against one test application can leave a helper whose active UIA work reaches unrelated applications during later manual use. Please investigate foreground/focus monitoring and cache-refresh scope, including refresh budgets, coalescing and cancellation after the actual native-tool phase has finished. A long-running Codex turn should not itself authorize continuous expensive accessibility traversal of unrelated foreground applications.
  • The originating test Job successfully cleaned up its own test app. That does not cover the helper owned by the desktop host. Request/phase ownership and shared transport lifetime need separate cleanup evidence.
  • A separate, disconnected VM probe of the installed desktop broker functions reproduced an ownership-ordering gap: successful SDK end_turn deletes its ownership ledger entry; a later outer closeActiveTurn sees no owner and skips transport closure. This probe did not start the helper or exercise UIA. It does not prove that the live lag episode used that order, that native end_turn failed to release resources, or that forced transport closure is the correct multi-chat fix. The captured lag also occurred while the originating chat was still working, so turn-end cleanup alone would not address all of this episode.
  • Please preserve another chat's active ownership when fixing cleanup. Unconditionally killing a shared helper on every turn completion could interrupt legitimate work.

Current mitigation: the originating project has paused new calls through this shared native helper, released its own REPL session at a safe point, and added separate tool-lifetime/cleanup requirements to its acceptance SOP. No app binary, driver, registry, graphics setting, or permanently enforced capability policy was modified. This is mitigation, not a claimed native fix.

The trace does not establish a hardware video-decoder failure or the exact global Windows input/compositor locking chain. The user-observed YouTube freezes may be downstream of UI/presentation contention; that remains distinct from proving decoder failure.

Raw ETL files, transcripts, private project names/paths, application text and screenshots are intentionally excluded from this draft. They remain local.

mishulantis avatar Nov 04 '26 10:11 mishulantis

Additional Windows/Chrome observation from November 2, 2026, on Codex MSIX 26.1027.3384.0: Chrome remained sluggish after native Computer Use. Disconnecting Chrome's automation/debugger connection did not help.

The native codex-computer-use helper was still running. Stopping only that helper removed the lag without restarting Chrome or Codex. This helped distinguish the native helper from the browser automation connection in this episode; it does not establish the internal root cause.

AlexWayfer avatar Nov 04 '26 16:11 AlexWayfer

Additional Windows 10 reproduction on 26.1029.7803.0 / @oai/sky 0.7.17: desktop click stalls, UIA BulkFetch attribution, and helper-only recovery

Observed on 5 November 2026, UTC+08:00. This adds a Windows 10 case with two Explorer hang snapshots, a correlated UI Automation ETW trace, and a user-confirmed intervention. Related: #36833, #36091, #58947.

Severity / user impact: The user reports at least four severe desktop-interaction failures today. In earlier episodes, recovery attempts progressed to an unresponsive desktop/Task Manager and forced power-off. Those earlier episodes were not traced, so this report does not attribute all four to one proven cause. During the episode investigated here, the user initially could contact the diagnostic agent only through an existing phone chat because the PC could not reliably switch windows or accept clicks. After the intervention, local desktop interaction and screenshot submission from the PC recovered.

Important environment caveat: This machine has a history of local compatibility workarounds to the Computer Use capture helper because Windows 10 screenshots repeatedly timed out. The helper examined here is unsigned and is identified below by its exact hash. We did not compare it with a pristine bundled binary during this investigation. Please do not treat this as a verified unmodified-stock-helper reproduction, or as proof that the local workaround caused the issue. The trace establishes which running process issued the calls, rather than the provenance or exact internal defect of that binary.

Environment and binary identity

  • Windows 10 Pro 22H2, build 19045.6466, x64; read from the local Windows version registry.
  • Running Codex MSIX package path: OpenAI.Codex_26.1029.7803.0_x64__2p2nqsd0c76g0. This is the package version observed in the running executable path, not a version copied from the About dialog.
  • Bundled package: @oai/sky 0.7.17, read from its package.json.
  • CUA runtime directory identifier: 9c26d707817e90a7; this is a directory identifier, not a semantic helper version.
  • Approximately 64 GiB RAM; NVIDIA GeForce RTX 4070 SUPER, Windows driver version 32.0.16.1742.
  • Native helper: codex-computer-use.exe, PID 16708, client thread 10912; child of the main desktop app. It had been running since approximately 11:24 UTC+08:00.
  • Helper length: 1,548,592 bytes; Authenticode result: NotSigned.
  • Helper SHA-256: 67b60c6a417b8e5dfb2713ba628c4e3c0205ef8a5bc195c033a569043a830475.
  • Explorer: PID 11640; desktop thread 11692.
  • A separate third-party Windows MCP channel was available as a fallback for diagnostics. No native Computer Use calls were deliberately made after the helper was stopped.

Symptoms and manual reproduction in the affected state

  1. With the native helper already resident, use the physical mouse to click an empty area of the desktop, open the desktop context menu, select Refresh, or switch applications.
  2. Some clicks respond normally; others take approximately 1-2 seconds, and an initial post-intervention click took approximately 5 seconds.
  3. Either left-clicking or right-clicking can trigger a brief desktop white flash / "Not responding" state. A left/right combination is not required. The user reports that clicking more than roughly five times per second made the white-screen symptom easier to trigger.
  4. The desktop sometimes recovers without further input. In worse prior episodes, Win+Tab/task-view interaction also became unusable.
  5. Throughout the reported episodes, the mouse pointer could still move. Background work, the clock, and Task Manager's changing numbers could continue while interaction failed.
  6. The user also reports repeated short beeps during severe failures. Their source was not instrumented, so they are included as a symptom only.
  7. Remote injected right-clicks through the fallback channel could open the context menu while physical clicks were unreliable. This difference was observed but not fully isolated.

The initial native Computer Use operation that left this helper active has not been traced back to a specific invocation. This is a reproduction of the affected resident-helper state, not a deterministic clean-launch recipe.

Resource checks before performance recording

  • Total CPU samples were approximately 7-15%; DPC and interrupt percentages were near zero in the short samples.
  • Approximately 41 GiB RAM was available while the user was already reporting the fault.
  • An existing independent watchdog log supplied 187 samples between 14:00 and 15:07, before WPR recording: minimum free memory 41.0 GiB, maximum Explorer working set 436 MiB, and Explorer handle counts 4,492-5,661.
  • GDI/USER checks did not indicate obvious quota exhaustion at that snapshot.

These observations do not support whole-machine memory/CPU exhaustion as the explanation for this episode. They do not rule out localized thread contention or brief spikes.

Physical mouse timing: distinguish low-level hooks from window-message/UIA processing

A separate, temporary WH_MOUSE_LL timing probe received 9,100 non-injected physical mouse events, including 10 button-related messages and 9,090 movement messages.

  • Maximum event arrival delay at that probe: 16 ms.
  • Downstream low-level mouse-hook time: median 0.142 ms, p95 0.447 ms, maximum 6.313 ms.
  • No downstream call exceeded the probe's slow-wait threshold.

Thus this sample did not reproduce a 1-2 second delay in the low-level mouse hook chain. It does not rule out later window-message hooks, UIA work, rendering delay, or intermittent behavior outside the sample.

Two Explorer snapshots identify the UIA request path

During physical desktop interaction, a WM_NULL response monitor detected desktop-thread timeouts and captured Explorer minidumps at approximately 15:23:06 and 15:34:24.

Both snapshots were unwound locally with DbgHelp using matching Microsoft public symbols. They show the desktop thread processing an incoming UI Automation bulk/property request, interleaved with the desktop list-view mouse/message path. Relevant frames include:

UIAutomationCore!ListViewItemProxy::GetPropertyValue
UIAutomationCore!UiaNode::ProviderGetPropertyValue
UIAutomationCore!InProcClientAPIStub::UiaNode_GetPropertyValues
UIAutomationCore!UiaNode::CrossProcess_GetPropertyValues
UIAutomationCore!FetchingVisitor::Enter
UIAutomationCore!UiaNodeTraverser::Traverse
UIAutomationCore!BulkFetch::Traverse
UIAutomationCore!InProcClientAPIStub::UiaNode_BulkFetch
UIAutomationCore!UiaNode::CrossProcess_BulkFetch
UIAutomationCore!RemoteUiaNodeStub::Incoming_BulkFetch
UIAutomationCore!ProcessIncomingRequest
UIAutomationCore!HookBasedServerConnectionManager::HookCallback
UIAutomationCore!HookUtil<...>::CallWndProc

The first snapshot also has the desktop input path below the incoming request:

comctl32!CheckForDragBeginEx
comctl32!CLVMouseManager::HandleMouse
comctl32!CLVMouseManager::OnButtonDown
...
shell32!CDesktopBrowser::_MessageLoop

These are unwound frames, not only code-pointer candidates found by scanning raw stack memory. Exact private implementation details are not inferred from public-symbol offsets.

ETW identifies the caller during the second desktop stall

A dedicated Microsoft-Windows-UIAutomationCore trace was recorded concurrently with the second Explorer response monitor. The recording used a circular file with a 32 MiB limit. The extracted relevant-event window was 15:34:02.552-15:34:25.553 UTC+08:00.

The client and provider events match on the method, target process, and object reference:

Local time, UTC+08:00 Observation
15:34:24.6443838 UIA event 509: codex-computer-use.exe PID 16708, TID 10912, starts UiaNode_BulkFetch targeting Explorer PID 11640, object reference 150992098.
15:34:24.6465191 UIA event 523: Explorer PID 11640, desktop TID 11692, starts handling UiaNode_BulkFetch for the same object reference 150992098.
15:34:24.892943 Desktop WorkerW WM_NULL probe returns a timeout after approximately 183 ms; the Explorer snapshot is initiated immediately afterward.
Snapshot Explorer's desktop thread is still in the incoming UIA bulk/property request path shown above.

Within that extracted trace window, the helper generated 1,078 request-start events targeting Explorer:

Method Start events
Static_ReleaseObject 827
UiaNode_GetPatternProvider 230
Static_GetNodeFromProviderEntryPoint 12
UiaNode_GetPropertyValues 6
UiaNode_BulkFetch 3

Do not interpret all 1,078 requests as heavy BulkFetch operations, or infer a fixed polling frequency from these counts. The last matched BulkFetch completion was not present before this recording ended; no full call duration is claimed.

360tray.exe was another UIA client in the same recording, mainly accessing Task Manager. Only PID 16708 was observed initiating the traced client calls targeting Explorer in this extracted window. This does not prove that all other contributors are excluded. Security-software settings/processes were left untouched.

Single-process intervention and observed recovery

At 15:40:03.568 UTC+08:00, with explicit user authorization and after checking the process's executable identity, only PID 16708, codex-computer-use.exe, was stopped.

The following were left running:

  • Codex/ChatGPT main desktop app, PID 31080.
  • Codex app-server / command backend, PID 25404.
  • Explorer, PID 11640.
  • The separate Swift helper and unrelated applications.

No Windows reboot, Explorer/DWM restart, executable replacement, registry edit, driver change, update-policy change, or security-software change was used for this intervention.

Recovery was not completely instantaneous: the user's first click still waited approximately five seconds. Afterward, the user explicitly retested repeated left/right clicks, combined clicks and Refresh, Win+Tab, and WorkBuddy, and reported that they were all normal. The user could then switch to this chat from the PC and upload a screenshot, rather than relying only on the phone connection.

The post-stop response monitor did detect one further approximately 181 ms timeout, so this is not a zero-timeout after-test. Its Explorer snapshot at 15:40:32 showed a different path: NtGdiCreateDIBSection -> CreateDIBSectionInternal -> CLVDrawItemManager -> OnPaint, without the earlier incoming UIA request in the fully unwound desktop stack. This does not establish why the user's first post-stop click took five seconds.

The native helper remained absent at subsequent checks. It was not deliberately restarted to provoke another failure, to preserve the recovered desktop and the working support connection.

Interpretation, limits, and requested investigation

The two Explorer snapshots, matched client/provider ETW events, and helper-only intervention strongly implicate the native helper's cross-process UIA integration in this episode. They do not identify an exact cancellation, subscription, reentrancy, cleanup, or native implementation defect, and do not establish that every related report has the same cause.

Additional limits:

  • One affected-state before/after intervention was performed; there was no clean repeated A/B/A trial.
  • Manual click workloads were not identical before and after.
  • WM_NULL probes used a 180 ms timeout, so those probe values do not measure the full user-perceived 1-5 second delays.
  • Response probing, ETW recording, and minidump capture can perturb timing. Dump-writing time must not be counted as the original UIA call's independently measured duration.
  • A separate broad WPR recording was collected earlier and temporarily added substantial memory/disk load; it was stopped. The resource-exhaustion assessment above uses the earlier watchdog/measurement interval, not that recording's temporary overhead. The exact-caller evidence comes from the targeted UIA trace and Explorer snapshots.
  • The current helper's local-workaround/provenance caveat above remains material. No clean stock-helper comparison was performed.
  • A phone new-chat no rollout found problem persisted after desktop recovery and is being treated separately, not included as a proven consequence of this UIA issue.

Please investigate:

  1. Why the native helper can remain active and issue foreground/desktop UIA requests long after its originating operation, and whether completed/cancelled work reliably releases subscriptions and outstanding calls.
  2. Whether desktop list-view/property/tooltip reads can synchronously occupy or reenter Explorer's input thread during ordinary physical clicks; whether traversal needs tighter scoping, coalescing, cancellation, or bounds.
  3. A supported way to stop/release the native helper for one completed session without closing chats or interrupting backend agents.
  4. A supported Windows 10 diagnostic/fix path for recurring FrameArrived capture timeouts, so users do not need local compatibility workarounds that complicate stock-build diagnosis.

The user has had repeated severe disruption and would appreciate a supported mitigation and a verifiable fixed build. The current helper-only workaround restored interaction but is not a permanent fix.

Raw ETLs, dumps, transcripts, screenshots, account identifiers, personal paths, and application content are not attached publicly. Sanitized event excerpts and symbolized stack frames are included above; raw diagnostics are retained locally for an appropriate private support channel if requested.

hongzhe2233-sudo avatar Nov 05 '26 08:11 hongzhe2233-sudo

Additional Windows report observed November 4–5, 2026: severe mouse/keyboard freezes after Computer Use; possible regression after an app update.

App package: OpenAI.Codex 26.1029.7803.0. Hardware: Intel Core Ultra 7 258V, 32 GB RAM; docked laptop with Logitech USB receiver.

Symptoms began November 4, around an app update and a Computer Use session. After control ended, the screen highlight remained until Windows was restarted. Subsequently, the mouse repeatedly froze for about a second and jumped; keyboard input also lagged.

Troubleshooting observations:

  • Moving the USB receiver and replacing batteries did not resolve it.
  • Temporarily stopping Logitech Options+ did not resolve it; the agent was restored.
  • Short CPU, memory and disk samples did not show resource exhaustion.
  • Stopping codex-computer-use-swift.exe gave user-reported temporary/partial relief, but it automatically restarted. This does not establish that the Swift helper was the cause.
  • codex-computer-use.exe was absent during a later lag episode.
  • Fully quitting ChatGPT initially helped, but a later test did not completely resolve the problem.
  • Turning Settings → Computer use → Any App off initially helped, but lag returned. The Swift helper remained running and respawned after termination despite this setting being off.
  • Restarting Windows with Any App still off has provided the most sustained recovery so far, with ChatGPT open. The user subsequently reported steady input. Duration is not yet sufficient to confirm a lasting fix; no deliberate re-enable/reproduction was attempted.

Please investigate Computer Use cleanup, the persistent screen highlight, and helper behavior after desktop control is disabled. The exact cause remains unconfirmed. Disabling desktop control limits functionality needed for ongoing work, so a supported permanent fix and identified fixed build would be valuable.

This report contains only the troubleshooting summary; no private chats, business files, account identifiers, personal paths, screenshots or raw logs are attached.

RyanWuensch avatar Nov 05 '26 23:11 RyanWuensch