Skip to content

Windows Computer Use overlay remains until entire agent turn ends #46675

Open

Description

@grandmaster451

Summary

On Windows, after Codex finishes its last native Computer Use action and moves
on to unrelated shell/Git work in the same agent turn, the full-screen border
and ChatGPT is using your computer banner remain visible until the entire
agent turn completes. Resetting the Node REPL kernel does not dismiss the
overlay. The user therefore sees a persistent takeover indicator even though no
more UI input is being issued.

The same user's macOS Computer Use experience releases cleanly; this report is
specific to the Windows native helper lifecycle.

Environment

  • Windows 11
  • ChatGPT/Codex desktop package: 26.915.4065.0
  • bundled Computer Use plugin: computer-use@openai-bundled 26.915.31945
  • bundled @oai/sky: 0.7.1

Reproduction

  1. Start a Codex turn that uses the bundled native Windows Computer Use plugin.
  2. Import sky through the documented Node REPL path.
  3. Launch Calculator, bind the uniquely returned Calculator window, and capture
    it.
  4. Click one Calculator button and capture again to verify the state change.
  5. Close only the Calculator window and confirm it is absent from
    sky.list_windows().
  6. Reset the Node REPL kernel.
  7. Continue non-UI work in the same Codex turn.

Observed: the full-screen Computer Use border and ChatGPT is using your computer banner remain until the whole agent turn ends.

Expected: once native Computer Use is explicitly finished, the Windows helper
should receive an end-of-use signal and the takeover overlay should disappear,
without requiring the agent to end all unrelated work in the turn.

Implementation evidence

The bundled Windows transport has lifecycle operations internally:

  • WindowsHelperTransport.close() sends close to the helper.
  • turn transitions send an internal end_turn request.
  • WindowsComputerUseClientBase exposes close() internally.

However, the documented Window2 sky surface exposes no end_turn, close,
release, or dispose method. The Node REPL service builds its callable method
list with Object.keys(client); the Windows client's close() is a prototype
method, so it is not included in the public RPC method list. js_reset clears
the JavaScript kernel but does not end the Windows helper's current turn scope.

This appears to make the overlay lifetime equal to the whole Codex turn rather
than the actual Computer Use phase.

Suggested fix

Expose a supported idempotent lifecycle method on the public sky surface,
such as end_turn() / release() / close(), and have Codex call it when the
agent leaves the Computer Use phase. Alternatively, make the Node REPL reset or
service teardown send the helper's existing end_turn signal before dropping
the client.

The method should:

  • stop accepting further input for the released scope;
  • dismiss the Windows overlay immediately;
  • preserve unrelated app windows;
  • be safe to call more than once;
  • remain distinct from the physical-Escape/user-stop path.

Additional distinction

This is separate from occasional model/backend {"detail":"Bad Request"}
turn failures. Native Calculator capture and input worked correctly in this
reproduction; the defect is cleanup/overlay lifecycle after successful input.

Activity

  1. added
    bug
    app
    windows-os
    on Sep 19, 2026
  2. moz65535 commented on Sep 30, 2026

    @moz65535

    I reproduced this on Windows 11 26H2 and found an additional OS-level side effect of the persistent Computer Use overlay/session.

    I measured SHQueryUserNotificationState once per second before, during, and after Codex Computer Use.

    Observed transition:

    21:11:12.748  5  QUNS_ACCEPTS_NOTIFICATIONS
    21:11:13.750  2  QUNS_BUSY
                   ... remained QUNS_BUSY during Computer Use ...
    21:13:16.775  2  QUNS_BUSY
    21:13:17.768  5  QUNS_ACCEPTS_NOTIFICATIONS
    21:13:40.773  5  QUNS_ACCEPTS_NOTIFICATIONS
    

    Reproduction details:

    • Before Computer Use, the system remained at QUNS_ACCEPTS_NOTIFICATIONS (5) for about 20 seconds.
    • As soon as Codex began native Computer Use, the state changed to QUNS_BUSY (2).
    • It remained QUNS_BUSY throughout the Computer Use session.
    • The last actual UI operation finished at approximately 21:12:09, but the system still remained in QUNS_BUSY.
    • At approximately 21:13:16, the Computer Use JavaScript execution session was released/reset.
    • On the next sample, Windows immediately returned to QUNS_ACCEPTS_NOTIFICATIONS (5).
    • It remained at 5 for at least another 23 seconds.

    No Windows notification settings, Do Not Disturb settings, or registry values were changed during this test.

    This means the persistent Computer Use lifecycle/overlay has an observable system-level consequence beyond the visual border/banner: Windows considers the user busy while the session remains active.

    In practice, this can suppress notification banners and can interfere with testing or using Windows notifications while Codex Computer Use is active.

    The important detail is that QUNS_BUSY persisted even after the final UI action had completed. It only cleared when the Computer Use execution session itself was released.

    Expected behavior would be for the Computer Use session/overlay to be released once native UI interaction has finished, so Windows returns to QUNS_ACCEPTS_NOTIFICATIONS without requiring the entire agent turn or execution session to remain active.

    For comparison, I independently observed the same 5 → 2 → 5 behavior with Claude Code's Computer Use on the same Windows machine, so this may also reflect how Windows reacts to this class of full-screen Computer Use overlay.

  3. joshross4 commented on Oct 14, 2026

    @joshross4

    Additional occurrence reported on 2026-10-14 with a newer Windows desktop package.

    Environment

    • Installed desktop package: OpenAI.Codex_26.1007.9446.0_x64, identified from the running ChatGPT executable's package path. The About dialog was not inspected.
    • OS: Microsoft Windows NT 10.0.26100.0 x64.
    • Bundled Computer Use documentation: computer-use/26.1007.71326, native Window2 @oai/sky API through Node REPL.

    Workflow and observed behavior

    1. The agent used native Windows Computer Use to submit a background job in a desktop application.
    2. After the job was accepted, it stopped issuing desktop input and continued checking the job through filesystem/native logs in the same agent turn.
    3. The user reported that the Computer Use session remained open after the UI task was complete, and that this happens repeatedly.
    4. The agent identified no documented release/close/end-of-use method on the available Window2 interface and instructed the user to use physical Escape.
    5. A later tool call returned: “Computer Use was stopped by the user with the physical Escape key.” It also instructed the agent to stop Computer Use for the rest of that turn and send a final response.

    This distinguishes stopping input from ending the control session. The user should be able to regain a clearly released desktop immediately after the UI phase, while the agent continues authorized non-UI work. Requiring physical Escape couples that handoff to the user-stop path.

    The currently installed docs/api.md lists window inventory, capture, input, launch and activation methods, but no supported release, close, dispose or end-of-use method. This confirms the documented API gap for this installed bundle; the internal lifecycle implementation/root cause was not independently inspected in this occurrence.

    Please provide a supported, idempotent end-of-use operation and have the agent invoke it when leaving the native UI phase. It should dismiss the takeover indication, preserve the target application and background job, and permit subsequent non-UI work without ending the whole agent turn.

    This is an existing-task report, not a new controlled reproduction run. Private workspace details, screenshots, logs and the session transcript are omitted.

  4. grandmaster451 commented on Oct 17, 2026

    @grandmaster451
    Author

    Follow-up reproduction on Windows desktop 26.1013.4894.0: phase-scoped release and first-use latency

    This issue still reproduces on the account owner's Windows installation with:

    • Desktop package: OpenAI.Codex 26.1013.4894.0, x64
    • Bundled computer-use plugin: 26.1013.40934
    • Bundled @oai/sky: 0.7.8

    All six installed plugin files matched the current app-generated bundled source by SHA-256. This reproduction does not require a modified plugin. No plugin/cache patches, custom cleanup hooks, watchdogs, or process-killing workarounds were applied.

    Observed on 17 October 2026, with the owner's explicit confirmation: the overlay and animated pointer remain after the UI phase while the agent continues non-UI work. They disappear once the final response finishes. This is distinct from an overlay stuck after the completed turn.

    In a successful turn with 14 completed node_repl calls:

    • The final UI call ended at 23:49:50.228 MSK.
    • The turn completed at 23:50:25.949 MSK.
    • There was therefore a 35.721-second interval after the final UI call before turn completion.

    The request is to release the desktop at the end of the actual Computer Use phase while permitting the same logical agent turn to continue shell/file work.

    Current lifecycle observations

    • The installed Desktop registers cleanup on turn/completed and closes the matching active helper transport.
    • The plugin also registers Stop/Interrupt/SubagentStop cleanup through node_repl.turn_ended.
    • In the installed @oai/sky service, the advertised RPC methods are collected from the client's own enumerable function properties. WindowsComputerUseClientBase.close() is a prototype method and is absent from that catalog and the documented Window2 API.
    • The setup has a valid turn-ended notify callback. The app's startup reconciliation ensures that callback itself; deleting it is not an appropriate fix.
    • In a controlled follow-up, js_reset cleared the JavaScript kernel but left the working native helper process alive. It is not a supported, verified phase-release mechanism.

    Proposed supported behavior

    Please provide a documented, idempotent release/end-of-use operation, integrated with the agent's transition out of the native UI phase. The exact method name is up to the implementation.

    It should:

    1. Finish or safely cancel in-flight input, release any held input state, dismiss the takeover overlay/cursor, and return control before acknowledging release.
    2. Preserve the target application and any work already submitted in it.
    3. Allow subsequent non-UI work and a fresh Computer Use acquisition within the same logical agent turn.
    4. Keep physical-Escape/user-stop latched for the logical turn; normal release must not bypass that stop or app approvals.
    5. Require refreshed window/state grounding after reacquisition, since the human can change the desktop while control is released.
    6. Handle errors, cancellation, repeated release and races with pending actions without leaving overlay or input ownership behind.

    First-use latency measured separately

    The original combined import + first list_windows call took 8,393 ms. A separate read-only probe in the same installed environment measured:

    Stage Duration
    Import @oai/sky 189 ms
    First list_windows 3,829 ms
    Subsequent list_windows 52 ms

    These are individual measurements, not a statistical benchmark. The first list call includes lazy helper startup/connection and enumeration; the existing data does not attribute all of that delay to any single stage. There is no evidence here of a fixed ten-second sleep. Model/network time between tool calls is a separate cost.

    Please consider separating a ready helper/transport from active desktop ownership. A supported warm-up could prepare the runtime without taking input control, showing a takeover overlay, capturing user content, or changing foreground focus. Releasing desktop ownership should not necessarily force a full cold start on the next acquisition. Any idle retention should be bounded and cleaned up with its owning task/app.

    Simply exposing a permanently closing client method may fix the overlay but introduce repeated cold starts or an unusable client. A phase-scoped release/reacquire contract would address both requirements together.

    Suggested acceptance checks

    • UI phase -> release -> extended shell/file phase: no takeover overlay and normal human input throughout the non-UI phase.
    • Reacquire in the same turn, refresh state, perform a harmless action, and release again.
    • Release twice, release after a failed action, and cancel during an in-flight action: no held input or leaked ownership.
    • Physical Escape prevents later reacquisition in that logical turn.
    • Warm-up itself does not acquire the desktop; cold, warm and reacquisition timings are recorded separately.

    The public repository's current contribution policy does not accept external PRs, and its pull_request_creation_policy is collaborators_only. The Windows helper/sky implementation involved here is not present in the inspected public openai/codex tree. Could maintainers implement the supported lifecycle API internally or identify a supported existing method and the appropriate contribution path?

    No private chat transcript, screenshots, workspace paths, raw logs, or credentials are attached. The lifecycle proposal and acceptance checks above have not been implemented or validated as a fix.

  5. grandmaster451 commented on Oct 17, 2026

    @grandmaster451
    Author

    Follow-up: a minimal local candidate now demonstrates early release during the same still-running Codex answer.

    Environment: Windows Codex Desktop 26.1013.4894.0, bundled Computer Use 26.1013.40934, @oai/sky 0.7.8.

    The candidate adds one enumerable constructor method, sky.release_control(), to WindowsComputerUseClientBase. It sends the already-existing native end_turn request through the original request/turn-metadata path. It does not close the JS client or its transport. Existing API methods are byte-for-byte unchanged.

    Use it at the end of a complete UI phase, after the final action and verification:

    try {
      // Normal observe -> act -> verify sequence.
    } finally {
      await sky.release_control();
    }
    // Continue shell/log analysis or answer generation.

    Live verification in Calculator:

    • Clicked 7, captured and verified 7, then released. The human confirmed that the frame disappeared and the normal mouse was free while this same answer continued.
    • Reacquired the same returned window, clicked 5, and verified 75. Repeated release worked.
    • Release calls took 651 ms and 643 ms. The second click itself took 165 ms.
    • Warm window rebind took 72 ms. However, the first new screenshot after release still took 3157 ms (3229 ms total rebind + capture). Avoiding explicit activate_window did not remove that cost.
    • The existing main native helper and JS session remained alive. The test-created Calculator was closed afterward.

    Important lifecycle detail: native end_turn invalidates window/screenshot bindings. Releasing after every individual API call breaks the observe/action sequence. Release must happen at a UI-phase boundary, and the next phase must acquire a fresh returned Window and observation.

    This is a version-pinned, reversible local experiment, not a supported public API or a complete startup-latency fix. Exact rollback of the vendor file and local caller instruction was tested, followed by reapplication. Mock transport checks preserved argument validation, original turn metadata, error propagation and close behavior; physical Escape was not regression-tested.

    Could upstream expose a supported release/reacquire boundary independently of turn/completed, and keep a non-interactive warm capture backend so that the next observation does not incur the remaining ~3.2 s startup? This would address both the prolonged mouse/frame ownership and most of the visible restart friction.

  6. dportela commented on Nov 3, 2026

    @dportela

    On Windows, we tested a temporary handoff for a workflow that needs native Computer Use to open Chrome, then scoped browser control for the rest of the task:

    1. Finish the native UI action and queue a continuation in the same chat with codex queue.
    2. End the current agent turn.
    3. In the continuation, verify that the Computer Use indicator has cleared before proceeding with scoped browser control.

    In one test, the queued continuation started and the user confirmed that the Windows control indicator had disappeared. The app's About screen reports Powered by Codex & OWL, version 26.1027.30824, released October 29, 2026. Windows reports the installed OpenAI.Codex package version as 26.1027.3384.0.

    We also reset the JavaScript kernel before ending the first turn, so this test does not isolate the effect of turn completion. Earlier, resetting the kernel alone had not reliably released control.

    This is a workaround, not a substitute for a supported in-turn release operation and a way to verify its result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcomputer-usewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions