Skip to content

fix(computer-use): synchronize standalone v0.7.59 - #1701

Merged
ilysenko merged 6 commits into
ilysenko:mainfrom
avifenesh:fix/cul-sync-0.7.57-upstream
Nov 21, 2026
Merged

ilysenko merged 6 commits into
ilysenko:mainfrom
avifenesh:fix/cul-sync-0.7.57-upstream

Conversation

@avifenesh

@avifenesh avifenesh commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling:
gh event listen --resource #1701 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1

  • It prints the first event as a JSON line on stdout and exits; run it again to wait for the next one.
  • Add --timeout to stop waiting after a while, for example --timeout 30m; it then exits with status 8.
  • Events carry no details; read the pull request to see what changed.
  • It misses changes made before it starts, so read the pull request once it is running.
  • See gh event listen --help for other event types.
  • Event subscriptions are in preview and may not be enabled for your account.
    hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling:
    gh event listen --resource fix(computer-use): synchronize standalone v0.7.59 #1701 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1
  • It prints the first event as a JSON line on stdout and exits; run it again to wait for the next one.
  • Add --timeout to stop waiting after a while, for example --timeout 30m; it then exits with status 8.
  • Events carry no details; read the pull request to see what changed.
  • It misses changes made before it starts, so read the pull request once it is running.
  • See gh event listen --help for other event types.
  • Event subscriptions are in preview and may not be enabled for your account.

Summary

Synchronize the embedded Computer Use backend with standalone agent-sh/computer-use-linux v0.7.57 through v0.7.59. The crate and the server.rs literal are 0.7.59, the standalone version. CHANGELOG.md, docs/linux-computer-use.md and the feature README name it.

v0.7.57

Standalone v0.7.57 (agent-sh/computer-use-linux#483, #485, #486) adds background delivery: input that reaches a target without moving the user's keyboard focus or pointer.

  • type_text and press_key take delivery: "background". An element from get_app_state takes text through AT-SPI EditableText, or the AT-SPI action a key means. A browser tab takes text and keys over DevTools when CODEX_COMPUTER_USE_DEVTOOLS (or the standalone COMPUTER_USE_LINUX_DEVTOOLS) names a loopback port or a DevToolsActivePort file. A terminal named by tty is reached through kitty remote control, wezterm cli, tmux, GNU screen, TIOCSTI or the pty master.
  • Where the desktop ships a second seat, a whole window takes keys through the agent's own seat: an XInput 2 master on X11, an ext-transient-seat-v1 seat on sway 1.10 and later, sendkeystate on Hyprland. click and scroll take delivery: "background" for the agent pointer on sway, and on X11 without a window manager. GNOME, KDE Plasma, COSMIC, niri, labwc and river run one seat and have no agent-seat route.
  • The first background call in a session that no route can serve sends nothing and explains why; repeating it uses normal focused input. doctor reports capabilities.background_input and capabilities.background_seat. press_key accepts KP_Enter.

The port is the standalone diff plus this crate's glue: the Codex variable name first with the standalone alias, the Codex name in the Hyprland background message, the X11 agent master named codex-computer-use-linux agent <id>, the codex-computer-use-linux test binary, and the agent-seat click and scroll success wrapped in pointer_action_result so the avatar cursor follows it. New dependencies: wayland-protocols-misc, and the x11rb xinput and xtest features.

The rust CI job now installs the tools the new X11 agent-seat fixture needs (xvfb, openbox, xterm, xinput, x11-utils, wmctrl, xdotool, tmux, screen, at-spi2-core, gir1.2-gtk-3.0). The fixture fails in CI when they are missing and skips elsewhere. The sway fixture skips without sway 1.10.

v0.7.58

Standalone v0.7.58 (agent-sh/computer-use-linux#489) adds a GNOME Wayland route for background pointer input. click, drag and scroll with delivery: "background" and a window target go through a uinput virtual pen and touchscreen, so the user's mouse pointer stays where it is. Left, right and middle clicks are a pen tap and the upper and lower barrel buttons, a drag is a pen stroke inside one window, a scroll is a one-finger touch pan. The point must be on the target window with no window above it, checked through the Codex GNOME Shell extension. A tap still focuses the window, and apps without tablet support never see the pen. drag takes delivery and a window target; doctor reports capabilities.background_pointer.

Glue: the pen and touch success goes through pointer_action_result, the devices are named codex-computer-use-linux virtual pen/touch, user-facing strings name the Codex extension, and the opt-in fixture uses [email protected]. The pen lock file keeps the standalone name so a standalone and an embedded server never drive the same pen at once. The crate and the server.rs literal are 0.7.58.

v0.7.59

Standalone v0.7.59 (agent-sh/computer-use-linux#493, #494) follows up on the virtual pen. On GNOME 48 and later a background right click arrived as a middle click and the other way round, because GNOME 48 changed the stylus button defaults; the server now sets the button actions for its own pen. A background scroll right after a background click or drag now pans: the pen leaves proximity at the end of each action instead of hovering for 8 seconds. KDE Plasma Wayland (KWin 6.3 and later) gets the pen and touch routes kwin-pen and kwin-touch, mapped through org.kde.KWin.InputDevice and checked against KWin's stacking order, with the kcminputrc entries removed once the devices are gone.

Glue: the indicator filter matches codex-computer-use-indicator, pen messages name the Codex GNOME Shell extension, the device names stay codex-computer-use-linux virtual pen/touch (so the kcminputrc group and its cleanup use them), and the opt-in KWin fixture looks for the Codex indicator binary. The crate and the server.rs literal are 0.7.59.

This branch carries only the crate sync. CI on it is also affected by the 26.1117.31558 official package drift (#1702), which is a separate change.

Validation

  • cargo fmt --check, cargo clippy -p codex-computer-use-linux --all-targets -- -D warnings.
  • cargo test -p codex-computer-use-linux --all-targets --no-fail-fast -- --test-threads=1: 852 unit tests pass (6 ignored), every integration test binary passes, the X11 agent-seat fixture included.

Checklist

  • This pull request is ready for review and is no longer a draft.
  • I followed CONTRIBUTING.md, kept the change focused, edited source files rather than generated output, and removed unrelated changes.
  • If this fixes upstream drift, it targets only the latest signed stable OpenAI Linux package and removes obsolete fallback code and tests. (Not upstream drift.)
  • I added or updated relevant tests, ran the validation listed above, and confirmed that required CI checks pass.
  • I reviewed the final diff with my coding agent using maximum reasoning effort, addressed all findings, and reran the relevant tests.

@avifenesh avifenesh changed the title fix(computer-use): synchronize standalone v0.7.57 fix(computer-use): synchronize standalone v0.7.58 Nov 20, 2026
@avifenesh avifenesh changed the title fix(computer-use): synchronize standalone v0.7.58 fix(computer-use): synchronize standalone v0.7.59 Nov 20, 2026

@ilysenko ilysenko left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Reviewed the current head against standalone v0.7.56..v0.7.59: the embedded crate matches upstream except for the expected Codex glue (env names with standalone aliases, device/master names, Codex GNOME extension wording, pointer_action_result wrapping). Earlier red checks came from the 26.1117 official package drift fixed on main in #1708; CI is green after updating the branch. Approving.

@ilysenko
ilysenko merged commit 7dbce8b into ilysenko:main Nov 21, 2026
14 checks passed
@avifenesh
avifenesh deleted the fix/cul-sync-0.7.57-upstream branch November 24, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants