From 23adf4a4240063e9e4c7fb60ebfdf49208e4edfd Mon Sep 17 00:00:00 2001 From: David McKay Date: Fri, 4 Dec 2026 08:35:56 -0800 Subject: [PATCH] Say the sign-in rule in the sign-in and secret tools' descriptions A Bot whose framework drops system messages sees only the tools, so the rule a built-in Bot reads in its computer guidance is said where every Bot gets it: the private sign-in form for every sign-in page, also when the username is known or the person will sign in themselves, and never the secret box for a sign-in's password. Matches the server's descriptions. --- app/src/lib/copilot/computer-tools.tsx | 4 +++- app/src/lib/copilot/sign-in-tool.tsx | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/lib/copilot/computer-tools.tsx b/app/src/lib/copilot/computer-tools.tsx index 1d720bfd47..3d9a139b2f 100644 --- a/app/src/lib/copilot/computer-tools.tsx +++ b/app/src/lib/copilot/computer-tools.tsx @@ -640,7 +640,9 @@ export function ComputerTools() { useFrontendTool({ name: "computer_request_secret", description: - "Ask the person for a single value you must not be told: a password, a one-time code, a card number. " + + "Ask the person for a single value you must not be told: a one-time code, a card number. " + + "Not for a sign-in's password: on a sign-in page call computer_request_sign_in instead, if you " + + "hold it. " + `${SECRET_FIELD_BY_REF} Add a short label for what you need. ` + "They type it into a masked box that goes straight to the page. " + "You will never see the value, and you must not ask for it any other way. Prefer this over a " + diff --git a/app/src/lib/copilot/sign-in-tool.tsx b/app/src/lib/copilot/sign-in-tool.tsx index 9b03663191..2b12d6ae6c 100644 --- a/app/src/lib/copilot/sign-in-tool.tsx +++ b/app/src/lib/copilot/sign-in-tool.tsx @@ -29,9 +29,12 @@ import { offeredBrowser } from "./computer-available"; const WAIT_MS = 15 * 60_000; const POLL_MS = 1_500; -/** Must match SIGN_IN_TOOL_DESCRIPTION in server/src/computer/headless-tools.ts. */ +/** + * Must match SIGN_IN_TOOL_DESCRIPTION on the server. Says the whole rule a built-in Bot reads in its + * computer guidance, because a connected Bot whose framework drops system messages sees only this. + */ const DESCRIPTION = - "Ask the person you work for to sign you in to a website. They get a private sign-in form outside this conversation (or take over the browser), and their login is typed straight into your browser by the computer. You never see the username, password or code, and must never ask for them any other way. Open the site's sign-in page first, then call this with the site's address. This turn pauses until they answer; you are then told only whether it worked."; + "Ask the person you work for to sign you in to a website. Call this on every sign-in page, also when you were given the username or email, and when the person says they will sign in themselves: do not fill in the sign-in fields yourself, and do not ask for the password with computer_request_secret or computer_request_help. They get a private sign-in form outside this conversation, where they can pick a saved login, type one in once, or take over the browser, and their login is typed straight into your browser by the computer. You never see the username, password or code, and must never ask for them any other way. Writing 'please sign in' in your answer asks nobody: call this instead. Open the site's sign-in page first, then call this with the site's address. This turn pauses until they answer; you are then told only whether it worked."; type Outcome = { ok?: boolean;