Repository navigation
A Bot uses its computer when the person asks, and a sign-in page goes to the private sign-in form - #2802
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 2, 2026 17:51
The computer guidance sent every sign-in to computer_request_help, so a Bot on a sign-in page had the person take over its browser and type their password into the page, and never offered the private form (computer_request_sign_in) with their saved logins. A sign-in page now calls computer_request_sign_in, which offers a saved login, typing one in once, or taking over. A take-over stays for CAPTCHAs, one-time codes, passkeys, and a person asking for the browser on a page that isn't a sign-in. The page's own computer_request_help description says the same.
davidmckayv
force-pushed
the
fix/bot-prompt-sign-in-request
branch
from
December 3, 2026 21:52
ffd4f3e to
7113c00
Compare
…'t be connected Asked to try with its computer after Gusto couldn't be connected, a Bot answered "I can't use the computer as a workaround for Gusto's app connection." The refusal came from our own instructions: every answer about an app ended "Do not browse to its website or ask them to sign in there", with no word for the person asking. Every Bot's working rules now say that when the person asks it to do something on its computer or in its browser, it does, including when an app could not be connected, and that an app switched off here is not a rule against its website. The safety rules stay: a sign-in stays the person's, done the way the computer guidance says and never as a password given in the conversation; OpenBot's approvals still ask; and what the deployment blocks in the browser stays blocked. A Bot may offer the browser once when a connection fails, without pressing it.
… Code The server's instructions fixture is rewritten with the new how_to_work paragraph, and the harness test checks Claude Code starts with it: asked by the person, a Bot uses its computer, also when an app could not be connected.
davidmckayv
force-pushed
the
fix/bot-prompt-sign-in-request
branch
from
December 3, 2026 22:03
1e2b36c to
35fb8e1
Compare
12 of 14 tasks
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.
What this changes
Two things a Bot is told about its computer, both found in real use.
1. A Bot uses its computer when the person asks, also when an app couldn't be connected. Found in dogfooding: Gusto couldn't be connected, so the person asked the Bot to try with its computer. The Bot answered "I can't use the computer as a workaround for Gusto's app connection." That came from our own instructions, not the model's caution: every answer about an app ended "Do not browse to its website or ask them to sign in there", with nothing about the person asking.
Every Bot's working rules (
how_to_work, the same for built-in Bots and Bots connected over plain AG-UI) now say:The server's answers about an app carry the same exception, in its own words ("unless the person asks you to use it").
2. A sign-in page goes to the private sign-in form, not a take-over. A Bot on a sign-in page now asks for the private sign-in form (
computer_request_sign_in), which offers the person a saved login, typing one in once, or taking over the browser. The computer guidance used to send every sign-in to a take-over (computer_request_help) and never named the form, so on OpenBot Cloud a Bot asked to open Fireflies had the person take its browser and type their password into the page, past their saved logins.shared/bot-prompt.ts: on a sign-in page, callcomputer_request_sign_in, also when the person says they will sign in themselves (the form lets them take over). A take-over stays for CAPTCHAs, one-time codes, passkeys, and a person asking for the browser on a page that isn't a sign-in. Without the sign-in tool, a sign-in still goes to a take-over.app/src/lib/copilot/computer-tools.tsx: the page's owncomputer_request_helpdescription says the same.Where it runs
Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json.Proof
shared/bot-prompt.test.ts, "asked by the person, a Bot uses its computer, also when an app could not be connected, within the safety rules", checks a built-in Bot and a connected one. Red on main:Expected to contain: "when you have a computer and the person asks you to do something on it or in its browser, do it that way, including when an app could not be connected or its connection did not work". Green here.shared/bot-prompt.test.ts: the sign-in rule and its order before the take-over. Red on main (4 failures), green here.agent-claude-sdk/tests/test_openbot_instructions.py: the stock Claude Agent SDK adapter starts Claude Code with the new rule, from the server's instructions fixture (rewritten here). Red on the old fixture (assert 'When you have a computer and the person asks you ...' in '<identity> You are Risk, ...'), green with it.gusto: Gusto switched off, "Try to use the computer. It doesn't let me connect for some reason."), openai/gpt-6.1-terra, 3 runs each: 0/3 on main (every run "I can't use the computer to bypass the Gusto connection"), 3/3 with this branch and the server's answers carrying the same exception (every run opens Gusto, then the private sign-in form).other-site: a site no app is for, "I'll sign in myself when it asks"), openai/gpt-6.1-terra, 3 runs each: 0/3 on main (every run a take-over), 3/3 here (every runcomputer_request_sign_in).bun test sharedgreen; biome clean.No screen changes: this is text the model reads, so there is nothing to screenshot.
Changelog
Bots.