openai / openai/codex

[macOS] Computer Use get_app_state times out for Citrix Viewer with -10005 while other apps work

Open
#41,914 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug computer-use tool-calls
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Summary

On macOS, Codex Computer Use can enumerate a running Citrix Viewer instance but
cannot retrieve its application state. Every get_app_state request fails after
approximately 5.1 seconds with:

Computer Use server error -10005: timeoutReached

The same Computer Use session can retrieve Finder state successfully. A separate
local desktop-automation application can capture the same Citrix window, and
Citrix reports that screen-capture protection is disabled. This suggests a
Codex target-window, capture, or Accessibility traversal failure rather than a
global macOS permission or Citrix policy block.

Environment
  • ChatGPT desktop app: 26.825.51511 (build 7377)
  • Computer Use plugin: 1.0.1000919
  • macOS: 26.6.2 on Apple Silicon
  • Citrix Workspace / Viewer: 25.05.0.75
  • Display topology: two active displays; Citrix Viewer is on the secondary
    display
  • Citrix Viewer bundle identifier:
    com.citrix.receiver.icaviewer.mac
Steps to reproduce
  1. Open an active remote desktop session in Citrix Viewer on macOS.
  2. Grant the ChatGPT desktop app and its Computer Use helper the required Screen
    Recording and Accessibility permissions.
  3. Allow Computer Use to access Citrix Viewer.
  4. Verify that list_apps() reports Citrix Viewer as running.
  5. Request application state for Citrix Viewer by display name, bundle
    identifier, or application path.
  6. Observe that every request fails after approximately 5.1 seconds with error
    -10005: timeoutReached.
  7. Request application state for Finder and observe that it succeeds.
Actual behavior

Computer Use recognizes Citrix Viewer as a running application, but
get_app_state never returns a screenshot or application state. It consistently
times out after approximately 5.1 seconds.

Expected behavior

get_app_state should return the visible Citrix Viewer window state. If
Accessibility extraction cannot complete, Computer Use should fall back to a
bounded screenshot-only result instead of timing out the whole request.

Diagnostics already checked
  • Targeting Citrix Viewer by display name, bundle identifier, and application
    path produces the same timeout.
  • Finder state retrieval succeeds in the same Computer Use session.
  • Citrix Viewer access is explicitly allowed in the ChatGPT desktop app.
  • macOS Accessibility permission is enabled for Citrix Viewer and the Computer
    Use helper.
  • Citrix App Protection reports both anti-keylogging and anti-screen-capture as
    disabled.
  • Windowed mode, full-screen mode, window resizing, and display positioning do
    not change the result.
  • macOS exposes the outer Citrix window and menu controls through Accessibility,
    but Computer Use still does not return state.
  • No Computer Use helper crash report is generated; this is a timeout rather
    than an observed helper crash.
  • A separate local desktop-automation application can capture the same Citrix
    window.
Related issues
  • #32284 reports the same -10005: timeoutReached class and an external-display
    targeting problem, but for a different application type and display setup.
  • #41327 concerns Citrix Viewer on a similar app generation, but state retrieval
    succeeds there and a later click crashes the helper.
  • #33914 discusses synchronous Accessibility traversal stalls and a bounded or
    screenshot-only fallback.

This appears to be distinct because the failure occurs during state retrieval
for a normal windowed Citrix application, and the helper does not crash.

Requested improvement

Please investigate Citrix Viewer targeting on multi-display macOS setups and
ensure that Accessibility traversal cannot block the screenshot/state result.
A screenshot-only fallback with a diagnostic warning would make the target
usable even when the remote-session contents do not expose a full native
Accessibility tree.

Privacy note

No raw logs or screenshots are attached because they can contain remote-session
metadata. This report contains only generic product identifiers, versions, and
sanitized diagnostic observations.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the get_app_state and list_apps entry points, then compare Citrix Viewer targeting with the Finder case and the related issues #32284, #41327, and #33914. Done means Citrix state retrieval no longer times out, or returns a bounded screenshot-only result with a diagnostic warning when Accessibility traversal cannot complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.