Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/src/lib/copilot/computer-tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 " +
Expand Down
7 changes: 5 additions & 2 deletions app/src/lib/copilot/sign-in-tool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading