Skip to content

fix(computer-use): synchronize standalone v0.7.61 and deliver in-app clicks in the background - #71

Merged
avifenesh merged 19 commits into
mainfrom
fix/cul-sync-0.7.61
Nov 24, 2026
Merged

avifenesh merged 19 commits into
mainfrom
fix/cul-sync-0.7.61

Conversation

@avifenesh

@avifenesh avifenesh commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Synchronize the embedded Computer Use backend to standalone v0.7.61 (from v0.7.59; covers v0.7.60), move the in-app adapter's clicks and scrolls to background delivery, merge current upstream main for the 26.1117.41037 package, and repair the 26.1120.41243 drift in the fork (upstream has not repaired it yet).

Sync (agent-sh/computer-use-linux#504, ilysenko#505, ilysenko#506, ilysenko#507 and the v0.7.60 KWin fix):

  • tree_detail, max_tree_bytes, get_tree_page search (query, role, within), and accessibility_tree_partial.
  • Background click and scroll accept relative: true with a window target.
  • run_batch, and the opt-in js/js_reset REPL with its Node worker (src/repl.rs, src/repl_worker.mjs, included at build time). Codex-first env names: CODEX_COMPUTER_USE_ENABLE_REPL, CODEX_COMPUTER_USE_REPL_ONLY, CODEX_COMPUTER_USE_NODE_BIN; the standalone COMPUTER_USE_LINUX_* names apply only when the Codex name is unset. Never registered over HTTP.
  • The server version now comes from the crate (get_info), so server.rs has no literal; the server name stays codex-computer-use-linux and the Codex instructions keep their wording plus the partial-tree sentence.
  • Crate and Cargo.lock at 0.7.61; CHANGELOG, docs/linux-computer-use.md and the feature README updated. The standalone CI apt line matches the fork's rust job.

In-app adapter (agent-sh/computer-use-linux#480):

  • app.click and app.scroll send delivery: "background" with relative: true. GNOME and KDE Plasma Wayland use the virtual pen and touchscreen, X11 and sway the agent seat; the user's pointer stays where it is.
  • Where no route exists, the backend's one-time notice (ok: false, background.retry_to_continue: true, nothing sent) becomes an error that names the reason and tells the agent to repeat the call. The adapter does not replay it; the repeat, and later no-route calls, use normal focused input.
  • A background route can also refuse a call on every attempt (covered point, locked screen, KWin Show Desktop or a full-screen effect, scroll on a rotated output, pan bounds), and an app without pen or touch support can ignore the input. click and scroll take background: false for normal focused input, and a background refusal says so.
  • The host validator accepts delivery: "background" on click and scroll only. Tests cover the parameters, the validator and the notice-then-repeat path through client and host service.

Plugin cache: the unified plugin version suffix goes to -linux-native.9, so existing profiles pick up the changed bridge scripts.

26.1120.41243 drift (fe9e272): Nix pins refreshed with scripts/ci/update-nix-hashes.sh write, ELF semantic inventory counts and digests updated (validate-upstream, fix and audit pass for amd64 and arm64 on the dev box). Six features repaired for the new bundle, current shape only: computer-use-linux (config builder now takes confirmationPolicyConfig/sharedPlugin; one .mcp.json writer serves plugin sync and executor copies, and the trusted root reaches it from sync, from the executor's final directory and from resumed threads), chatgpt-dots-any-country (personalization gate removed upstream, so its patch is dropped), directory-only-working-tree-watch (worker host class moved into a module), remote-mobile-control (hydration discovery guard reshaped), usage-limit-send-attempt (usage reason moved to the shared account usage module), wayland-global-shortcuts (Pet callback). Dev box against the signed amd64 bundle: verify-official-linux-features.js passes all 54 scenarios, the signed feature tests pass (77), run-node-checks.sh all 2062 pass, 0 fail, validate-nix-pins.sh passes.

Upstream merge: the fork repaired 26.1117.31558 itself (b416936); upstream then repaired 26.1117.41037 (ilysenko#1708). None of the 68 files the fork repair touched carries other fork-only content, so they take upstream's version. The crate, its docs and the changelog keep the fork side.

Local (dev box): cargo fmt --check and cargo clippy -p codex-computer-use-linux --all-targets -- -D warnings clean; cargo test -p codex-computer-use-linux --no-fail-fast: 917 lib tests pass (6 ignored), every bin and integration binary passes. MCP smoke: name codex-computer-use-linux, version 0.7.61, 20 tools by default, js with either REPL name, a Codex 0 wins over the standalone 1, REPL-only lists 2 tools. scripts/ci/run-node-checks.sh all: 2059 pass; one upstream test (remote mobile cold-start hook removes dead pid files ...) failed once under the parallel run and passed 3 of 3 alone. cargo test -p codex-update-manager: 133 pass.

Closes agent-sh/computer-use-linux#500
Closes agent-sh/computer-use-linux#502
Closes agent-sh/computer-use-linux#509

avifenesh and others added 16 commits November 19, 2026 21:33
Standalone v0.7.56 captures every output on Umbriel with `dms
screenshot all` when DMS is installed, falling back to the portal, and
reports Umbriel window bounds on multi-output layouts while captures
cover every output. The uinput pointer covers the whole output layout
when a capture is one output of several, offsetting coordinates by the
captured output's position, so clicks on stacked outputs land on target.
The port is the standalone diff with the embedded crate::screenshot
module path, the Codex-named screenshot backend variable (the dms value
works through both names) and the extra gnome-extension route kept in
the forced-backend error. The crate and the server.rs literal move to
0.7.56.
* Repair official Linux package drift

Official-Linux-Release-ID: 12a8f364da51da586483346ca7f7292e1aa32d6617ea6bd30ec8ca0f01b24054
Watchdog-Action: source-repair

* Repair official Linux package drift

Official-Linux-Release-ID: 12a8f364da51da586483346ca7f7292e1aa32d6617ea6bd30ec8ca0f01b24054
Watchdog-Action: source-repair

* Repair official Linux package drift

Official-Linux-Release-ID: 12a8f364da51da586483346ca7f7292e1aa32d6617ea6bd30ec8ca0f01b24054
Watchdog-Action: source-repair

* Repair official Linux package drift

Official-Linux-Release-ID: 12a8f364da51da586483346ca7f7292e1aa32d6617ea6bd30ec8ca0f01b24054
Watchdog-Action: source-repair

* Repair official Linux package drift

Official-Linux-Release-ID: 12a8f364da51da586483346ca7f7292e1aa32d6617ea6bd30ec8ca0f01b24054
Watchdog-Action: source-repair

* Repair official Linux package drift

Official-Linux-Release-ID: 12a8f364da51da586483346ca7f7292e1aa32d6617ea6bd30ec8ca0f01b24054
Watchdog-Action: source-repair

* fix(official-linux): ship 26.1117.41037 with remote-control-ui composition fix

Carry the approved watchdog repair for 26.1117.31558 (campaign
12a8f364da51) forward to signed release 26.1117.41037, whose bundle
layout is unchanged.

remote-mobile-control (order 20118) gates the shared
features.remote_connections resolver on Linux before remote-control-ui
(order 20500) runs, so remote-connections-visibility warned in every
chunk of the maximal Nix profiles. Accept exactly one resolver that
already carries the remote-mobile-control Linux early return.

Refresh Nix pins with scripts/ci/update-nix-hashes.sh write.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
…pstream

fix(computer-use): synchronize standalone v0.7.59
…ilysenko#1710)

* fix(account-switcher): support async utility-process connection proxy

* fix(account-switcher): remove obsolete clearAuthTokenCache fallback

* fix(account-switcher): remove obsolete native probe
Port standalone computer-use-linux v0.7.59..v0.7.61 into the embedded crate:
tree_detail, max_tree_bytes and get_tree_page search, relative background
click and scroll, run_batch, the opt-in js REPL (Codex-first env names:
CODEX_COMPUTER_USE_ENABLE_REPL, CODEX_COMPUTER_USE_REPL_ONLY,
CODEX_COMPUTER_USE_NODE_BIN), accessibility_tree_partial, and the v0.7.60
KWin tablet environment fix. The server version now comes from the crate.
The in-app adapter now sends click and scroll with delivery "background", so
they go through the backend's own pointer (virtual pen and touchscreen on
GNOME and KDE Plasma Wayland, the agent seat on X11 and sway) and leave the
user's pointer alone. The backend's one-time no-route notice reaches the
agent as an error with nothing sent or replayed; repeating the call uses
normal focused input. The host validator accepts delivery "background" only.
Upstream repaired the 26.1117.41037 drift (ilysenko#1708) after the fork repaired
26.1117.31558 itself; conflicting drift hunks take upstream's side. The
embedded Computer Use crate, its docs and the changelog keep the fork side,
which already holds v0.7.61.
…a background refusal

A background route can refuse a click or scroll on every attempt (covered
point, locked screen, KWin Show Desktop or a full-screen effect, rotated
output, pan bounds), and an app without pen or touch support can ignore the
input. click and scroll take background: false for normal focused input, and
a background refusal says so. The notice names the call, not the desktop.
@avifenesh

Copy link
Copy Markdown
Owner Author

Independent review (fresh-context subagent) of 0f071c9 and c66fce2; the merge commit was out of scope.

Port (0f071c9): no findings. lib.rs, tree_encoding.rs and virtual_pen.rs match standalone exactly; the remaining differences are the intended fork glue (Codex-first REPL env names with the standalone fallback, Codex server name, Codex instruction wording plus the partial-tree sentence, version from the crate).

Adapter (c66fce2):

  1. bug: pen-route refusals that do not depend on the point (KWin Show Desktop or effects, scroll on a rotated output, pan bounds) fail on every call and never get the notice, so with background forced the agent had no way to fall back. Fixed in 8f8c495: click and scroll take background: false for focused input, and a background refusal says so.
  2. should-fix: apps without pen or touch support can ignore background input while the call reports success. Documented in the README and the adapter help; background: false covers it.
  3. should-fix: README overstated when focused fallback happens. Rewritten to separate the one-time no-route notice from refusals.
  4. nit: the notice said "on this desktop" for reasons about the call (no window target, unsupported button). Now "for this call".
  5. nit: tests for a repeated refusal and the scroll notice. Added.

Follow-up for standalone (not in this sync): the backend could treat the KWin blockers and the rotated-output scroll as no-route (notice, then focused) instead of a hard refusal.

The app reuses bundled plugin caches by version, so the native bridge scripts
changed in this series only reach existing profiles under a new plugin version
suffix (-linux-native.9).
Refresh the Nix pins (scripts/ci/update-nix-hashes.sh write) and the ELF
semantic inventory counts and digests for both architectures. Repair the
features whose anchors moved:

- computer-use-linux: the CUA config builder takes confirmationPolicyConfig
  and sharedPlugin, and one .mcp.json writer serves plugin sync and executor
  copies; the trusted root now reaches the builder from sync, from the
  executor copy (its final directory, not the staging one) and from resumed
  threads.
- chatgpt-dots-any-country: the personalization country gate is gone;
  remove that patch and assert a single remaining tbo_available gate.
- directory-only-working-tree-watch: the worker host class moved into its
  own module; resolve the route's constructor through its module binding.
- remote-mobile-control: discovery now checks the host list first and
  beginDiscovery refuses known threads; anchor the hydration patch on that.
- usage-limit-send-attempt: the usage-limit reason moved from each composer
  into the shared account usage module.
- wayland-global-shortcuts: the Pet callback lost its idle-state check;
  anchor it on its log message.
…reasons

The 26.1120 repair moved the patch to the account usage module, whose list
two more local-host surfaces read besides the composers. Document that reach,
report every reader that passes the atom to a reader call, and pin the four
readers in the signed test. Note at the plugin version suffix that executor
copies are keyed by it too.
@avifenesh

Copy link
Copy Markdown
Owner Author

Independent review (fresh-context subagent) of fe9e272, the 26.1120.41243 drift repair.

  1. should-fix: usage-limit-send-attempt now clears the usage-limit entry in the account usage module's shared list, which two more local-host surfaces read besides the two composers (a submit check and a disabled state), and nothing said so. Fixed: the README states the wider reach, the patch reports every reader that passes the atom to a reader call, and the signed test pins the four readers so a new one shows up as a test failure.
  2. nit: the module header regex could also match ordinary code between the header and the list; that only turns into a fail-closed drift skip. Left as is.
  3. nit: the resume guard check is a substring check in the owning function; the builder throws without a root, so it stays fail-closed. Left as is.
  4. nit: executor copies are keyed by the plugin version, so the -linux-native suffix must move whenever the staged scripts or injected config change. Added a comment at the suffix.

computer-use-linux unified.js checked against the current bundle: the writer has exactly the sync and executor callers, the executor passes its final directory, the sync root is published on the cached selection, and the resume call reads it behind the CUA-enabled check. No old-shape code left.

Dev box after the fixes: signed feature tests and the official bundle audit pass for usage-limit-send-attempt and computer-use-linux.

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

Labels

None yet

Projects

None yet

4 participants