codex icon indicating copy to clipboard operation
codex copied to clipboard

[macOS Desktop] Computer Use leaves floating cursor overlays after tasks finish

Open cyberxz2077 opened this issue 2 months ago • 14 comments

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

Installed desktop app bundle: 26.915.31029 (build 9771). The About dialog was not inspected.

What subscription do you have?

Not included.

What platform is your computer?

macOS 26.6.2, Apple Silicon (arm64).

What issue are you seeing?

After a Codex Computer Use task finishes, its visible floating/virtual mouse cursor can remain on the desktop instead of disappearing. The user has repeatedly seen this and has observed as many as three leftover floating cursors at once after Computer Use sessions.

The report concerns extra on-screen Computer Use cursor visuals, not the ordinary macOS system pointer and not merely a status icon inside Codex. Multiple stale pointers make it unclear whether Computer Use has really stopped and add distracting overlays to normal desktop work.

This is a user-observed recurring symptom. No screenshot, exact task IDs, cursor coordinates, controlled minimal reproduction, or evidence of post-completion input was captured for this report. We do not claim the stale visuals prove that an agent can still click or type. The cause could be overlay cleanup, session teardown, or another lifecycle component; it is not yet established.

What steps can reproduce the bug?

Observed pattern (not independently re-run in a controlled test):

  1. On macOS, let a Codex Desktop task use Computer Use so its virtual/floating cursor becomes visible.
  2. Allow the task to finish and return to the idle state.
  3. Inspect the desktop for a cursor overlay that remains after the task has ended.
  4. Repeat Computer Use tasks; up to three leftover floating cursors have been observed concurrently.

A maintainer test could compare successful completion, interruption, and failure, and check whether each session removes only its own cursor overlay while preserving other active sessions.

What is the expected behavior?

When a Computer Use session ends, its virtual cursor/overlay should disappear promptly and deterministically. Active concurrent sessions, if any, should remain distinguishable and unaffected. If the agent is still operating, the app should show that clearly rather than appearing finished.

Additional information

The official Computer Use documentation describes desktop interaction but does not explain lingering virtual-cursor overlays after task completion.

Related but distinct: #33748 reports a Computer Use icon in the app remaining while idle; #41868 reports a Chrome-tab control indicator remaining; #36958 reports a cursor remaining alongside continued external app input. This report is limited to multiple visible floating cursors after apparently completed tasks, without evidence of continued input.

No screenshots, private application content, task history, or logs are attached.

cyberxz2077 avatar Sep 20 '26 16:09 cyberxz2077

Additional macOS observation on 2026-10-02, with two details that may help investigate this:

  • After a local Computer Use task completed and stopped, a small extra control cursor remained above a tab in a native application's window. The task was confirmed complete, but the cursor stayed visible.
  • Starting a macOS screenshot made the cursor disappear, so a phone photo was needed to capture it.
  • Fully quitting the Codex desktop app made the lingering cursor disappear. This was directly checked and confirmed.

Observed sequence: run a local Computer Use task, let it finish, then return to the affected application. The extra cursor remains until Codex is fully quit. This describes the observed incident; reproduction frequency is unknown and a controlled reproduction has not been run.

Environment: MacBook Air, macOS, Codex desktop. Exact macOS and Codex app versions were not collected.

Expected behavior: the task's cursor overlay should be removed when the Computer Use task ends, with a clear indication that control has been released.

The residual cursor makes the control state unclear. We have no evidence of continued mouse or keyboard input after task completion, and the underlying cause is unconfirmed.

No logs, session identifiers, or private application content are included. A phone photo exists; if needed, please point to an official private feedback channel where it can be reviewed/redacted before sharing.

ScottSiu1983 avatar Oct 02 '26 11:10 ScottSiu1983

Additional macOS observation (2026-10-03, JST): I see this almost every time I finish a Computer Use task, and have seen about four floating cursors left behind at once. Fully restarting the ChatGPT desktop app clears them. I have no evidence that the cursors continue to control the desktop after the task ends.

nnbo avatar Oct 03 '26 14:10 nnbo

I've noticed this twice now since using computer use on macOS. Most recently today (Oct 9), the overlay stayed visible after the task had finished. Fully restarting the ChatGPT desktop app cleared it.

The latest task was in Dia, though I'm not sure the overlay was specific to that app. The previous occurrence seemed limited to Proton Mail, if I remember correctly. I'm also able to take a macOS screenshot with the cursor still visible in it.

Environment: ChatGPT desktop 26.1002.52244; macOS 26.6.2 (25G83).

Diagnostic detail: resetting the tool session with mcp__cua_repl.js_reset returned js kernel reset, but the visible overlay remained. No relevant teardown error was found in the app logs inspected for 17:22–17:26 UTC. This doesn't establish the cause.

wevial avatar Oct 09 '26 17:10 wevial

Adding a concrete instance with diagnostics captured while the cursor was still stuck, since the original report notes that no logs or task details were captured.

Environment

  • ChatGPT desktop 26.1007.30912 (build 20156), bundled codex-cli 0.162.0-alpha.17.2
  • Computer Use helper (Codex Computer Use.app) 26.1005.1001425, unified-computer-use plugin 26.1007.30912
  • macOS 27.0.1 (26A434), Apple Silicon

Timeline (local time, from the desktop log and the process list)

Time Event
10:36:51 A new thread starts. It runs on the hosted app-server (hostId=durable in the desktop log) with this Mac attached as its environment through codex exec-server --remote.
10:37:02 First cua_repl call. The helper spawns CUALockScreenGuardian and puts up its Software Cursor window (layer 102, 126×126).
10:41:22 The hosted app-server websocket closes (code=1006) and reconnects about 1 s later. A new cua_repl process starts at 10:41:27, and the one that began the session no longer exists.
10:49:31 Desktop log: [desktop-notifications] received turn-complete for that thread and turn.
11:08 19 minutes later the Software Cursor window is still on screen and CUALockScreenGuardian is still running.

State of SkyComputerUseService while stuck (from sample and the window list)

  • 10–20% CPU with no task running.
  • It still has AX notification observers and two event taps on the app it had been attached to (Google Chrome), a "Window Bounds Observer" thread, and live ScreenCaptureKit / CoreMedia capture threads.

So this is more than a leftover overlay: the helper still treats the session as active.

What did not clear it

Running the helper's own notifier by hand with the stuck turn's IDs:

SkyComputerUseClient turn-ended '{"type":"agent-turn-complete","thread-id":"…","turn-id":"…"}'

It exited 0 and nothing changed. I took the payload keys from the legacy notify format, so the shape may not be exactly what the helper expects.

What cleared it

kill -TERM on SkyComputerUseService. The cursor window disappeared and the guardian exited, without quitting the desktop app. For anyone else hitting this, pkill -TERM -x SkyComputerUseService is a lighter workaround than restarting the whole app.

Possibly relevant, from the shipped plugin and JS files (inference, not source)

  • The unified-computer-use plugin's Stop / Interrupt / SubagentStop hooks call cua_repl.turn_ended. In the bundled @oai/sky macOS client (targets/mac/client.js), the only request types sent to the helper are AppPolicy, AppStart, AppGetSkyshot, AppPerformAction, ListApps and Start/StopAudioRecording. The helper binary defines ComputerUseIPCCodexTurnEndedRequest, but neither the bundled JS under cua_node/lib/node_modules nor the desktop app bundle references it; the only sender I can find is the SkyComputerUseClient turn-ended CLI. The Windows helper transport does have an end_turn call. So on macOS I can't find a path from cua_repl.turn_ended to the native helper.
  • The notify = [SkyComputerUseClient, "turn-ended"] entry in config.toml can only fire for turns that the local core owns. This turn was owned by the hosted app-server.
  • For this thread the desktop app logged thread/read → -32003 thread access denied (source=thread_hydration) five times, the first of them before the turn completed. The helper appears to learn about turn completion by following thread streams over the desktop IPC socket (CodexAppServerThreadEventObserver, thread-stream-state-changed, turn/completed). If the desktop app could not hydrate the hosted thread, the helper may never have seen it complete. I have not confirmed this.

This instance involved a hosted thread and a mid-turn reconnect. I don't know whether the purely local cases reported above share the same cause.

Suggestion

Whatever signal was missed, the helper could release a session (cursor, guardian, event taps, capture stream) when the client process that started it exits, or after a period with no requests for that turn.

I have the thread and turn IDs and the helper sample output if they would help; I left them out of a public comment.

davidyen1124 avatar Oct 11 '26 18:10 davidyen1124

A third-party-host POC added some boundary evidence for this cleanup problem.

Environment: Paseo 0.11.4 driving Codex CLI 0.162.1, Computer Use helper 26.1013.1001501, macOS 27.0.

I tried to determine whether a host could clean up the cursor by invoking the helper's turn-ended path directly:

  • Direct @oai/sky native-pipe client: connection established, then the helper closed it before the ping completed.
  • Official SkyComputerUseClient mcp: initialize and tools/list worked, but list_apps returned bootstrapTimedOut, including after setting CODEX_HOME and SKY_CUA_SERVICE_PATH.
  • No Software Cursor window was created, so turn-ended cleanup could not be validated.
  • No helper termination or production-code change was made.

This does not establish that turn-ended is ineffective. It shows that a standalone client cannot bootstrap the helper without the trusted Codex host/session context.

For a robust fix I would still key cursor ownership to the helper session and its owning process, so client exit or missed turn events cannot leave the overlay behind.

SiyXo511 avatar Oct 19 '26 08:10 SiyXo511

Retest on ChatGPT desktop 26.1021.31345 (build 21828), Computer Use helper 26.1021.1001631, macOS 27.0.1. The cursor overlay was cleaned up every time (window list sampled once per second, local time):

Run Overlay shown Turn ended Overlay gone
Calculator, normal finish 14:36:44 14:36:46 14:36:47
Calculator, interrupted with Stop mid-task 14:37:20 14:38:08 14:38:09
Chrome via computer use 14:38:33 14:38:36 14:38:37

Each time the helper's 126×126 cursor window disappeared about 1 s after the turn ended, SkyComputerUseService went back to 0% CPU, and no CUALockScreenGuardian stayed running. An earlier Calculator run in the same app session was also clean 12 minutes later.

These were all local threads. My Oct 11 case was a hosted thread with a mid-turn reconnect, which I haven't been able to retest.

davidyen1124 avatar Oct 24 '26 21:10 davidyen1124

Observed again on November 1, 2026.

Environment: ChatGPT/Codex desktop 26.1027.51404 (build 23880), Computer Use helper 26.1022.1001641 (build 1001641), bundled CLI 0.166.0-alpha.5.1, macOS 27.0.1 (26A434), arm64. Versions read from installed bundle metadata.

A floating arrow remained after earlier desktop work. We verified:

  • CGWindowListCopyWindowInfo listed two windows named Software Cursor, owned by ChatGPT Computer Use / SkyComputerUseService. One was on-screen at layer 26; both were 126×126.
  • Sending SIGTERM to that specific owning PID removed them. A second window-list query returned zero Software Cursor windows; ChatGPT stayed open.

The latest recorded CUA session was a local T3/Codex session whose final System Settings call failed, followed by thread completion. We have not proven that failure caused the stale cursor or captured the missing teardown event. Earlier chat history contains repeated user reports of the same symptom.

Please include failed-call and client-disconnect paths in cursor teardown tests. This confirms recurrence on the above versions, not continued input after completion.

GPT 6.1 sol on behalf of Aritra

Techie5879 avatar Nov 01 '26 19:11 Techie5879

Recurring Computer Use software-cursor overlay accumulation in ChatGPT Work, observed again on 2 November 2026.

Environment

  • ChatGPT desktop / Work: 26.1027.51404
  • Platform: macOS 27.0.1 (26A434).

Observed behavior

Multiple arrow-shaped Computer Use overlays with dark/glowing halos remain visible simultaneously at different screen positions. They overlap application content, including the regular Chat message composer, and obscure normal interaction.

This has occurred several times. Other Work tasks were still running during the reported occurrence, so restarting the desktop app or terminating the Computer Use helper would interrupt ongoing work.

Observed sequence

  1. Run ChatGPT Work tasks that use Computer Use.
  2. Return to the regular Chat view while Work tasks continue.
  3. Observe multiple persistent cursor overlays distributed across the window.

This is an intermittent user-observed sequence, not a controlled minimal reproduction. The number of active Computer Use sessions and the lifecycle state of the session responsible for each overlay were not recorded.

Expected lifecycle behavior

Cursor overlays should reflect current session activity. Obsolete overlays should be disposed of promptly, while overlays belonging to active sessions remain accurate and unaffected. Cleanup should not require restarting the app or terminating unrelated tasks.

Investigation / regression coverage

Please check per-session ownership and disposal of cursor overlay windows, including:

  • Normal completion, cancellation/interruption, failed Computer Use calls, and client disconnect/reconnect.
  • Concurrent sessions: ending one session should remove only its own overlay.
  • Late asynchronous cursor updates: updates arriving after session teardown should not recreate an orphaned overlay.

These are investigation targets, not an established root cause. No process/window ownership inspection, teardown trace, or evidence of continued mouse/keyboard input was collected for this occurrence. The screenshot alone does not establish whether every overlay is stale.

No screenshots, logs, or private application content are attached.

stijnhanegraaf avatar Nov 02 '26 06:11 stijnhanegraaf

I’m seeing this again on November 3, 2026. After asking the assistant to stop all computer use, a floating arrow-shaped cursor was still visible. This has happened to me more than once.

I haven’t confirmed whether the session was still active or if this was only a leftover visual. I have no evidence of continued mouse or keyboard input.

Expected: the cursor overlay should disappear promptly when computer use stops, so it’s clear that control has been released.

iamhectorlopez avatar Nov 03 '26 14:11 iamhectorlopez

Reproduced on ChatGPT Desktop 26.1103.60933, macOS 27.3 (26C5035r), Apple silicon (arm64).

After the Computer Use task ended, its white floating cursor remained visible over Chrome. Resetting the Computer Use session did not clear it. The cursor was still visible in a user screenshot after the reset.

In Activity Monitor, I selected ChatGPT Computer Use and chose Quit. The native connection closed, and a separate process lookup confirmed that the original helper process had exited. The ChatGPT desktop app remained open.

Expected behavior: the floating cursor disappears when the Computer Use session ends. The underlying trigger was not established in this case.

adrienyang666 avatar Nov 11 '26 13:11 adrienyang666

On Nov 19, around 20:02 (UTC+8), I used Computer Use for a local task in the ChatGPT macOS app. I manually stopped Computer Use and released the window from the macOS menu bar. The translucent cursor remained visible and kept moving, including over another app. It only disappeared after I fully quit ChatGPT. I can confirm the visible cursor persisted, but not whether the app was still sending input. Could you also check cursor cleanup for the manual menu-bar release path?

chenglade4-ctrl avatar Nov 19 '26 12:11 chenglade4-ctrl

Additional macOS reproduction on ChatGPT desktop 26.1111.71025, Computer Use helper 26.1111.1001923, macOS 27.0 (Apple silicon).

  • macOS listed 15 Software Cursor windows owned by a single SkyComputerUseService process. Moving 14 of them off-screen via Accessibility cleared the desktop clutter, but the user still saw all 14 in Alt-Tab. The windows were still open.
  • Quitting only SkyComputerUseService removed every cursor window from the macOS window list while ChatGPT stayed open. That is a shared-process reset and could interrupt another agent’s live Computer Use session.
  • The installed plugin already declares per-agent end-of-turn notifications for normal completion, interruption, and subagent completion. We did not trace whether each lingering window’s session received its notification.

Could you make the helper close the actual cursor window for each finished agent, so it disappears from both the desktop and Alt-Tab without disturbing other agents? A regression test could run two concurrent sessions, end one, and verify its window is gone while the second session can still operate. Please cover normal completion, cancellation, failure, and disconnect.

sree-akkineni avatar Nov 19 '26 18:11 sree-akkineni

Additional report from a Mac user running ChatGPT desktop 26.1117.41037 (29803), with Computer Use helper 26.1116.1001980, on macOS 27.2.1 (26B131), Apple silicon. These are the installed versions at the time of reporting.

The user reports that after a Computer Use task delivers its final reply, the separate floating pointer continues moving around the desktop. They estimate this happens after almost every Computer Use session. The movement makes it difficult to tell when control of the Mac has been released. Continued clicks or keystrokes have not been verified.

Please test several consecutive sessions through the normal final-reply path. After each task ends, please verify that its cursor disappears and its input stops, including when a second Computer Use session is running.

rguntrip avatar Nov 23 '26 02:11 rguntrip

I hit this on macOS too. The white arrow with a dark glow stayed fixed in one spot and appeared on top of every app I switched to. It was persistent enough that really didn't know what was going on. Running pkill -TERM -x SkyComputerUseService cleared it immediately.

DanPete avatar Nov 29 '26 21:11 DanPete