Repository navigation
feat(computers): take over an agent's computer and hand it back - #425
Merged
Merged
Conversation
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
Contributor
|
🎉 This PR is included in version 0.53.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
inferdaemon already ships (v0.245.0, inference-gateway/cli#1697), with no change toinfer.Closes #424
Changes
Take overbutton on every computer tile and in the composer of an agent chat that runs on its own computer.Hand backreplaces it while the person holds the screen.screen_controlandscreen_inputcommands send the daemon's frames of the same name and read itsscreen_result.screen_framenow 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.tests/take-over.yamlcovers take over and hand back in mock mode.AGENTS.mdaddsTake overandHand backto the DOM contract, and the README describes the feature.Testing
task e2e -- tests/take-over.yamlandtests/agent-computers.yamlpass. The rest of the macOS e2e suite was not run.task devagainst theexamples/computer-usecluster onollama_cloud/glm-5.3-flash: took over theresearchercomputer from its chat, typedexample.organd Enter into the held screen, handed back, and the agent ran a new turn and reported Firefox on example.org.cargo fmt --check, clippy, backend tests and the e2e spec validation pass.