Skip to content

feat(computers): take over an agent's computer and hand it back - #425

Merged
edenreich merged 1 commit into
mainfrom
feat/take-over-computer
Nov 5, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/take-over-computer

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

The Computers view was watch-only. This adds Take over: a person claims the screen of an agent's own computer, drives it with their mouse and keyboard - a login, a captcha, a dialog in the agent's way - and hands it back, after which the agent continues from what it sees. It is the desktop client for the take-over the infer daemon already ships (v0.245.0, inference-gateway/cli#1697), with no change to infer.

Closes #424

Changes

  • Take over button on every computer tile and in the composer of an agent chat that runs on its own computer. Hand back replaces it while the person holds the screen.
  • While held, the Computers view shows that screen live (polled every 300 ms) and sends clicks, double clicks, the wheel and keys to it, one input after the other. Esc twice hands back.
  • Backend: screen_control and screen_input commands send the daemon's frames of the same name and read its screen_result. screen_frame now also returns the frame's width and height, the space a pointer maps onto.
  • frontend/lib/screen-input.ts: pointer, key and wheel mapping, with unit tests.
  • e2e: tests/take-over.yaml covers take over and hand back in mock mode.
  • AGENTS.md adds Take over and Hand back to the DOM contract, and the README describes the feature.

Testing

  • task e2e -- tests/take-over.yaml and tests/agent-computers.yaml pass. The rest of the macOS e2e suite was not run.
  • Real run in task dev against the examples/computer-use cluster on ollama_cloud/glm-5.3-flash: took over the researcher computer from its chat, typed example.org and Enter into the held screen, handed back, and the agent ran a new turn and reported Firefox on example.org.
  • Mouse clicks and scrolling on a real held screen were not exercised - their mapping is unit-tested only. A held key does not repeat, the same as the CLI's web terminal.
  • Frontend build and unit tests, cargo fmt --check, clippy, backend tests and the e2e spec validation pass.

Take over on a computer tile or in the chat of an agent with a workspace claims that screen through the daemon's screen_control. The Computers view then shows it live and sends clicks, the wheel and keys as screen_input until Hand back or Esc twice releases it.

Closes #424
@edenreich
edenreich marked this pull request as ready for review November 5, 2026 15:10
@edenreich
edenreich merged commit f9179f8 into main Nov 5, 2026
1 check passed
@edenreich
edenreich deleted the feat/take-over-computer branch November 5, 2026 15:11
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.53.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Take over an agent's computer from the Computers view

1 participant