Skip to content

A Bot uses its computer when the person asks, and a sign-in page goes to the private sign-in form - #2802

Merged
davidmckayv merged 3 commits into
mainfrom
fix/bot-prompt-sign-in-request
Dec 3, 2026
Merged

davidmckayv merged 3 commits into
mainfrom
fix/bot-prompt-sign-in-request

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • When the person asks a Bot to do something on its computer or in its browser, it does, including when an app could not be connected or its connection failed.
  • A rule against browsing to an app's website covers what the Bot picks for itself. It is never a reason to refuse the person, and an app switched off here is not a rule against its website.
  • The safety rules don't change: a sign-in stays the person's (never a password given in the conversation), OpenBot's approvals still ask, and anything the deployment blocks in the browser stays blocked.
  • When a connection fails, the Bot may offer the browser once, without pressing it.

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, call computer_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 own computer_request_help description says the same.

Where it runs

  • New state that outlives a request? None. Prompt and tool-description text only.
  • What happens on the second replica? The same text on every replica.
  • Anything serialised? No.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row. (None added.)
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-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.
  • End to end with a stock AG-UI agent, an HTTP endpoint that knows nothing about OpenBot: built as a connected Bot, it is sent the new rule in its standing system message, the same words a built-in Bot is given. Red at this repository's main, green at this branch.
  • Real-model eval of the dogfooding conversation (case 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).
  • Real-model eval (case 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 run computer_request_sign_in).
  • bun test shared green; biome clean.

No screen changes: this is text the model reads, so there is nothing to screenshot.

Changelog

Bots.

  • Fixed: a Bot uses its computer when you ask. Asked to do something in its browser, including when an app couldn't be connected, a Bot now does it, within the usual safety rules.
  • Fixed: a sign-in page goes to the private sign-in form. A Bot that reaches a sign-in page asks for the private form, which offers a saved login, typing one in once, or taking over the browser, instead of handing the person the browser to type their password into the page.

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
davidmckayv force-pushed the fix/bot-prompt-sign-in-request branch from ffd4f3e to 7113c00 Compare December 3, 2026 21:52
@davidmckayv davidmckayv changed the title Send a sign-in page to the private sign-in form, not a take-over A Bot uses its computer when the person asks, and a sign-in page goes to the private sign-in form Dec 3, 2026
…'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
davidmckayv force-pushed the fix/bot-prompt-sign-in-request branch from 1e2b36c to 35fb8e1 Compare December 3, 2026 22:03
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit a3d9cc7 Dec 3, 2026
38 checks passed
@davidmckayv
davidmckayv deleted the fix/bot-prompt-sign-in-request branch December 3, 2026 23:51
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.

1 participant