codex icon indicating copy to clipboard operation
codex copied to clipboard

Windows Computer Use returns occluding app pixels for a selected Phone Link window

Open baklarrrr opened this issue 1 month ago • 5 comments

💬 For Bakar: I reported a screen-capture problem that can show another app while Computer Use still identifies the phone window as its target. Bringing the phone window forward produced the correct image. A vendor fix is unverified.

Observed on Windows on 31 October 2026 with bundled Computer Use plugin/skill 26.1027.30824. The exact active native helper build was not independently identified. Both the unified cua_repl facade and the documented node_repl/@oai/sky route showed this behavior.

A returned Phone Link app-stream window was selected by its exact current inventory title/id. With another production app covering that window, getAXStateAndScreenshot / get_window_state returned a bounded image matching the covering app's visible pixels, while the target binding/returned window metadata still identified Phone Link. Repeated fresh captures showed different covering-app content in the same bounded rectangle. No coordinate action was dispatched from a frame recognized as belonging to the covering app.

Activating the same returned Phone Link window and immediately capturing fresh state showed the correct phone app, including its native version/header and current content. This was observed more than once. No browser/app/workstation/automation-host restart was used. I am not asserting an internal capture-backend cause or that every occluded window behaves this way.

Expected: capture the selected window's actual surface when supported, or report that the selected surface could not be captured. An image of a different visible app should not be presented as the addressed target's screenshot, because it can mislead subsequent coordinate actions and include unrelated content.

Minimal reproduction to investigate:

  1. Open a Phone Link app-stream window and obtain its actual returned window object from inventory.
  2. Cover it with another app window.
  3. Capture the selected Phone Link window with the documented window API; compare the displayed content and returned target metadata.
  4. Activate the same returned window, refresh it and capture again.

Related but distinct observed recovery issue: #58489. This report concerns screenshot content when occluded, not the minimized-window activation/user-input loop.

No screenshots, private app content, personal paths, device addresses, account names, session identifiers, process commands or credentials are included.

baklarrrr avatar Oct 31 '26 06:10 baklarrrr

💬 For Bakar: The wrong-window capture problem reproduced again. I am keeping these frames out of phone verification and using exact native-device readbacks where available.

Additional bounded reproduction on2026-10-31 at05:41 Toronto(-04:00): the exact currently listed Phone Link Studio app-stream window initially returned a correct467x1038 phone UI, then later screenshots of the same window returned unrelated foreground browser/page pixels at that window's dimensions. A supported activate_window call followed by get_window_state also returned the unrelated foreground page, so activation did not establish capture identity in that check. No input was sent based on those wrong frames. Correct mirrored phone UI was observed in earlier frames, but no success is inferred for the later pending account check. Separately, a native Android development screenshot and display-scoped activity readback distinguished display0 from a separate virtual app display. No private screenshots, app contents, account identifiers or device serials are attached. Submitted by the assistant at the user's request.

baklarrrr avatar Oct 31 '26 09:10 baklarrrr

I observed a potentially related case on Windows build 26200.9711 with Codex MSIX 26.1027.3384.0 and Computer Use skill bundle 26.1027.30824.

In an interactive benchmark, I selected an exact returned window belonging to a disposable local Tk app. One screenshot request while the target was occluded returned the covering window's visible pixels in the selected window's rectangle. I sent no input based on that image. After explicitly activating the same target and requesting fresh state, the screenshot showed the Tk window correctly.

This was one observation, not a controlled repeated test. It does not establish the capture mechanism or imply that activation always fixes the symptom. No screenshot or unrelated window content is attached.

mashingaan avatar Nov 01 '26 09:11 mashingaan

Windows native Computer Use target/image mismatch. Installed Windows package observed:26.1029.7803.0. Available Computer Use skill:26.1029.61003; per-call native helper build unknown. The same documented @oai/sky route was used in successful morning deliveries and a later failed observation. A fresh unique WeChat window was selected using returned app/id values. Returned window metadata and accessibility text matched the intended app, but the displayed screenshot showed another app. A later minimized-window observation was followed by one bounded activate_window→get_window→get_window_state recovery; the target/image mismatch persisted. Inputs stopped, with no uploads or sends in the affected batch, and no in-flight native actions. No reset, restart, alternate executor, network/configuration change or policy bypass was used. Please provide a supported diagnostic to distinguish failed foreground restoration from capture routing and identify an applicable maintained fix or fixed build. No screenshots, raw logs, identifiers, contact information, account details, conversation transcripts, local paths, cookies or credentials are attached.

ailing137 avatar Nov 05 '26 07:11 ailing137

Additional Windows observation on 2026-11-07, using the bundled Computer Use runtime/skill version 26.1103.32239.

Observed mismatch

  • A cua_repl call selected an Antigravity window from the returned inventory.
  • The returned window/accessibility information identified Antigravity, but the accompanying screenshot showed the Codex chat window.
  • We inspected the original image saved with that tool response; this was a target/image mismatch in the recorded output, not merely the model misdescribing a correct screenshot.

Bounded follow-up Using the same window ID, the documented @oai/sky sequence activate_window → get_window → get_window_state produced one correct Antigravity screenshot with matching accessibility content. This follow-up involved activation and state capture only.

Important limitations The initial trace used an external DeepSeek model route and the cua_repl facade. The successful follow-up used a GPT model and the direct Sky interface, as well as explicitly bringing the target forward. This is therefore not a clean A/B isolating visibility, interface, or provider.

A local launcher/lifecycle shim was also enabled. The inspected customization forwards stdio and adjusts turn metadata/end-of-turn cleanup; it does not rewrite window IDs or image data. Nevertheless, we have not reproduced this on a completely unmodified installation and are not claiming a specific internal root cause.

There is also a documentation discrepancy: the installed Windows skill says screenshots work when windows are occluded, whereas the current Computer Use help requires the Windows target to be visible/in front. Clarifying that contract, and rejecting a capture when its pixels cannot be reliably associated with the selected window, would help prevent incorrect follow-up actions.

No screenshots, private app content, local paths, window/session identifiers, or raw logs are attached.

pingforya avatar Nov 07 '26 15:11 pingforya

Reproduced on November 21, 2026 with two small WPF test apps on Windows 10 Pro (19045.3803), using Codex desktop 26.1117.31558 (prod build 29513) and the bundled Computer Use plugin of the same version.

  1. Open a blue target window and an orange cover window in separate processes. Make the orange window fully cover the blue one.
  2. Select the blue window by its inventory ID and request its screenshot and accessibility tree. This reproduced through both cua_repl (getAXStateAndScreenshot()) and @oai/sky (get_window_state() with screenshot and text enabled).
  3. The accessibility tree still describes the blue target, but the screenshot shows the orange window. Bringing the blue target to the foreground and capturing again shows the blue window correctly.

When the selected window cannot be captured, an explicit error would prevent the screenshot from being mistaken for the target. A coordinate action based on that image could otherwise be aimed at the wrong control.

One separate observation from the same test: clicking the title-bar Close button by its fresh accessibility index returned coordinate input geometry is unavailable after an accessibility-only read. Refreshing both the screenshot and accessibility tree made that button clickable. An ordinary WPF button worked after an accessibility-only read.

mapmap5214 avatar Nov 20 '26 20:11 mapmap5214