Skip to content

turno-browser 0.9.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 18:26
· 12 commits to main since this release
7d4e662

Every release of turno: https://turno.wimo.dev/docs/releases

Minor Changes

  • acb9cf6: New per-identity policy in identity.json (format 13), written only by the command line: turno-browser set <id> --policy-file <file> (or --allowed-domains, --disable, --auto-submit false, --no-policy), add with the same flags, and init --policy-file <file> for an onboarding without a terminal. allowedDomains (like example.com, *.example.com, localhost:*) checks every main-frame navigation of every tab: browser_navigate, browser_tabs new, links, forms, scripts and popups are stopped before they leave Chrome, and a redirect to another host is taken back when it commits; the call fails with an error that names the host and the allowed list. Scripts, images and data a page loads from other hosts are not checked. disabled removes features from the identity (act, captcha, login, totp, attach, evaluate, run_code, network): their tools are not listed and are refused, and the settings they need are refused. Any policy turns browser_run_code_unsafe off, allowedDomains turns the network routing tools off, a tool's file argument inside turno's own folders is refused, and the server refuses to start with a --caps whose tools the policy turns off. autoSubmit: false keeps browser_login from submitting whatever vault submit says. show --json and status --json show the policy. An older turno-browser refuses an identity.json with a policy.

  • 4088401: turno-browser init runs without a terminal. With --yes it now runs the agent's own mcp add command (for example claude mcp add --scope user browser-<id> ...) with its output captured, instead of only printing it; without --yes it still prints it. An agent that already has the identity's server is left as it is, so running init twice adds nothing and does not fail. --json prints one report of what was created, the sign-in step, and the agent's registration (the command it ran, its exit code and output), and never asks. init exits 1 when the agent's command fails and 127 when --yes names an agent whose program is not on the PATH. Each registration is recorded in the identity's state folder, so remove can take it out again.

  • aa6bfe2: What a person sees in the browser comes in Spanish when the identity's locale is Spanish (es, es-MX, es-419; else the first of languages): the live view page and its messages, the browser_request_human banner and its Done button, the agent cursor's badge and the welcome page of turno-browser login. Any other locale, or none, keeps English. Tool results, tool descriptions and CLI output stay in English. The live view now shows a person step's pause as "Paused (your turn)" instead of the tool name.

  • 6bf9b12: A low-resource preset for machines short of memory: turno-browser set <id> --resources low (identity.json "resources": "low", or turno-browser-mcp --resources low) keeps at most 2 tabs open, parks an unused tab after 2 minutes, closes Chrome after 5 minutes without a tool call and the background server after 5 minutes without a request, turns off Chrome's back/forward cache so a parked tab frees its memory at once, and adds a short note to tool results while the system reports memory pressure. A key set on its own (--tabs-max, TURNO_BROWSER_IDLE, --background-idle) still wins over the preset. turno-browser doctor shows the memory pressure. The memory pressure probe mcpd uses moved to turno-core/memory, so turno-browser reads the same level.

  • fb4c2e3: An identity can run on another Chromium-based browser than Google Chrome: turno-browser set <id> --browser chrome|edge|brave|chromium|chrome-for-testing|<path> (also on add; identity.json browser, format 13). Every command uses it: the agent's server, login, export and import, the background server and replay. A server's own --browser or --executable-path still wins over it. When Google Chrome is not installed, add and init pick the first browser they find and write it to identity.json, so a profile never changes browser by itself. Switching the browser of a profile another browser already opened is refused unless you pass --force, since the new browser rewrites the profile and, with keychain: "system", cannot read the old one's cookies.

    New turno-browser install-browser: for a machine without any Chromium-based browser and no admin password, it downloads Chrome for Testing into the user cache with the installer of the patchright-core turno-browser uses (about 190 MB, no system change). doctor lists every browser it finds (Chrome, Edge, Brave, Chromium, Chrome for Testing), starts the first one when Chrome is missing, says which browser each identity uses and whether it is installed, warns when a newer browser last opened a profile, and names install-browser when there is none. turno-cli needs turno-browser's API 1.14.

  • 0d9363d: A page's passkey prompt hands the browser to the person by itself. When a page starts a WebAuthn ceremony that puts up Chrome's passkey window (creating a passkey, or signing in with one), the agent's calls wait while a banner (in the identity's language, English or Spanish) asks the person to use their passkey there, and the step ends when the request settles, when the page navigates away from it, on Done or after 5 minutes. The call that started it (or the next one) says how it went, even when the identity's policy stopped a navigation during it: created, used, cancelled or timed out, left, or failed with the error's name, never credential data (turno.passkey in JSON). Passkey autofill (mediation: "conditional") never stops the agent. Passkeys need a visible Chrome window: the watch, a small script that wraps navigator.credentials, goes in only when someone can see the browser (a Chrome window, or the live view on), like the agent cursor's auto. With --headless and the live view on, the live view cannot show Chrome's passkey window, so the agent is told to ask the person for a browser with a window instead of waiting. In attach mode only the agent's own tabs count.

  • 4088401: Behavior change: turno-browser remove <id> (and turno browser remove, turno identity remove browser:<id>) now asks before it deletes anything, showing the list of what goes. --yes skips the question; without a terminal and without --yes it refuses with exit code 2 instead of deleting. It also removes what it used to leave behind: it stops the identity's background server, a Chrome on its profile and the turno-browser-mcp processes started for it (instead of refusing while they run); it takes the identity's MCP server out of each agent that has it with the agent's own command (claude mcp remove --scope user browser-<id>, codex mcp remove, copilot mcp remove, gemini mcp remove); it deletes the keychain: items identity.json references (proxy, act, captcha) unless another identity or turno's mcp.toml uses them, the vault's credentials even when the vault index is broken, and the session exports it wrote. Chrome's own cookie key ("keychain": "system") is shared with every Chrome profile and is kept. Afterwards it checks that nothing is left and exits 1 when something is. --json reports planned, deleted, failed, left (each with the step that removes it) and kept. destroy is another name for remove. turno identity remove browser:<id> passes --yes and --json on to turno-browser.

  • 4088401: New turno-browser status [<id>] [--json] (also turno browser status): each identity at a glance, read only. It shows the profile, a summary of identity.json (time zone, languages, engine, sharing, humanize, live view, recording, act, captcha, proxy), who holds it, the vault's sites and submit policy, the last sign-in by hand, the host names the profile holds cookies for (never their names or values; not read while Chrome has the profile open, and noted where Node has no node:sqlite), when it last served a tool call, and the agents whose config has it. A server now records the time of its last tool call (at most once a minute) in the identity's state folder, last-used.json. doctor checks that the secret store has an item for each vault credential (a lookup, never the value), and, run as turno-browser, which agents' configs have each identity: a server whose command is gone, one whose identity was deleted, a registration init made that the agent lost, and a config file that cannot be read. Only entries that run turno-browser-mcp count as turno's, so a server merely named browser-<something> is left alone by doctor and by remove.

  • 31dc9de: A person step no longer outlasts the agent's tool call. A browser_request_human call waits for the step at most waitMs (50 s by default, up to 4 minutes); if the person has not finished by then, the call returns a "still open" result with the step's id and the step goes on, with the banner up and every other call held. The agent calls browser_request_human with { "continue": true } (or the step's id) to keep waiting, and the step's timeout still counts from when it began. A call with a new instruction while a step is open is refused and names the open step. The click that starts a page's passkey prompt waits in the same pieces, and a cancelled call ends the step it asked for.

Patch Changes

  • f42408b: Attach mode no longer fails with "DevToolsActivePort is not a port and a path" when it reads the file while Chrome is still writing it, for example right after Chrome starts with remote debugging on. It now reads the file again for up to 5 seconds while it is missing, empty or partial, and only then says what to do. turno-browser doctor still checks it once, without waiting.
  • Updated dependencies [6bf9b12]
    • turno-core@0.4.0

A CycloneDX SBOM is attached.