# Turning features on by default without rewriting anyone's config (/blog/defaults-resolved-at-launch)

turno-browser 0.11.0 turned on features that identities had to opt into, without writing a value into an existing identity.json. Each default is worked out at every launch, a key the person set still wins, and show, status and doctor say where each value came from.

Published 2026-12-04 by William Monroy.

Before turno-browser 0.11.0, the live view, flow recording, human-like input and tab sharing were each off until someone set a key for them in the identity's `identity.json`. [turno-browser 0.11.0](/releases/browser/0-11-0), released on 2026-11-28 with [turno 0.6.2](/releases/cli/0-6-2), turned them on by default.

It did that without editing any existing `identity.json`. In the words of the changelog, the defaults are "worked out at every launch and never written into identity.json." An identity that nobody edited gets the new behavior at its next launch, and an identity whose owner had set a key keeps that key.

## Why the defaults are not written down [#why-the-defaults-are-not-written-down]

One setting already showed what happens when a default is stored. The vault index next to `identity.json` always carried a `submit` value, and wrote `confirm` when nobody chose. When 0.11.0 made `auto` the default, a stored `confirm` could mean a person's choice or no choice at all. The index now marks a choice apart:

```ts title="packages/browser/src/vault.ts"
interface VaultIndex {
  version: 1;
  /** What an older turno-browser reads; this one reads it only with `submitChosen`. */
  submit: SubmitPolicy;
  /** The person chose `submit` with `vault submit`; without it the default (`auto`) applies. */
  submitChosen?: boolean; // [!code highlight]
  sites: Record<string, Omit<VaultSite, "site">>;
}
```

Only a `vault submit` the person runs sets that mark, so the changelog asks for `vault submit <id> confirm` to be run again, "even if it was chosen before."

The other defaults avoid that. The comment at the top of `defaults.ts` gives the reason: a key that is not in the file takes the default again at the next launch, "so a change of default never needs a migration, and the file keeps saying only what the person chose." A test in `defaults.test.ts` checks that resolving the defaults leaves no new file behind and does not change an existing one, down to its modification time.

## The order of precedence [#the-order-of-precedence]

Every key is resolved the same way: a `turno-browser-mcp` flag first, then `identity.json`, then the default. A default can depend on the launch itself. The low-resource preset is one:

```ts title="packages/browser/src/defaults.ts"
function resources(
  s: IdentitySettings | undefined,
  ctx: DefaultsContext,
  f: DefaultsFlags,
): Effective<"normal" | "low"> {
  const asked = f.resources ?? s?.resources;
  if (asked === "normal" || asked === "low") return f.resources ? flag(asked) : file(asked);
  if (ctx.pressure === undefined) return atLaunch("the low-resource preset while memory is short"); // [!code highlight]
  return ctx.pressure === "normal" ? auto("normal", "no memory pressure") : auto("low", "memory pressure"); // [!code highlight]
}
```

Each value comes back with its origin, such as the file, a flag, a fixed default, or `auto` with the condition that decided it. When the pressure is not known, the value is left undefined and the origin carries the rule instead of a guess.

## What turned on [#what-turned-on]

The changelog entry of f717317 lists 11 changes for an identity nobody touched. Three other entries of 0.11.0 also turn something on: the last-click rule and system notifications, the `storage` tools, and natural language actions. The 11 changes of f717317, and how to keep each one from applying:

| Feature | Default since 0.11.0 | To pin it |
| --- | --- | --- |
| Live view | on; it opens only with `turno-browser live` | `--live false` |
| Flows and screenshots | recorded; screenshots under the 200MB cap, never of a page that shows a vault value | `--record-flows false`, `--record-screenshots false` |
| `vision`, `pdf`, `devtools`, `network` tools | listed when the server has no `--caps`; in attach mode, `devtools` and `network` are off since [0.14.0](/releases/browser/0-14-0#changed-behavior) | `--caps` on the server |
| `browser_login` | submits the form | `vault submit <id> confirm` |
| Low-resource preset | on under memory pressure | `--resources normal` |
| Human-like input | `auto` | `--humanize off` |
| Tab sharing | several sessions, each in its own tabs | `--sharing session` |
| Coherent user agent | in a headless Chrome, once `login` has read its client hints | `--user-agent off` |
| Background throttling | in a headless Chrome with the live view off | `--background-throttling false` |
| Locale | the system's, when `identity.json` names none | `--locale off` |
| Health check | the one `login` finds | `--health off` |

`vault submit` is a command of its own and `--caps` a flag of the server; the other flags go to `turno-browser set <id>`. The [upgrade notes of 0.11.0](/releases/browser/0-11-0#upgrade) list what changes for an existing identity. Other changes in the same release, and the side panel of 0.12.0, go through the same resolver, and the [Defaults](/docs/browser/identities#defaults) section of the docs keeps the current list.

## Saying where a value came from [#saying-where-a-value-came-from]

A setting that is not in the file has to be visible somewhere else. `show` prints the defaults under their own heading; the docs page shows a shortened example:

```text title="apps/docs/content/docs/browser/identities.mdx"
defaults (not in identity.json; decided at every launch):
  live: on (default)
  resources: auto (auto: the low-resource preset while memory is short)
  humanize: auto (default)
  sharing: tabs (default)
  ...
```

`status <id>` gives the same values on its `defaults` row. `show`, `status` and `doctor` never pass the memory pressure to the resolver, even while a server runs (`doctor` reads it only for its own memory check). So for an identity with no `resources` key, `show` prints the `resources: auto (...)` line above. `doctor`, when `identity.json` has no problems, adds an info line with only the values the context decides, starting with "decided at launch". At launch the host passes it and the resolver decides; the test expects `resources: low (auto: memory pressure)` under pressure, though nothing prints that line.

## Off, said out loud [#off-said-out-loud]

Leaving a key out now means "the default", so some keys needed a way to say "off". Format 14 of `identity.json`, new in 0.11.0, adds `false` for the keys that had no off value (`act`, `cache`, `captcha`, `proxy`, `health`, `userAgent` and `locale`), and `"auto"` as an explicit name for the default of four keys. A file is written as format 14 only when it uses one of these or sets `notify` or `lastClick` (and, since 0.12.0, `sidePanel`), so every other file keeps its format. turno-browser 0.10 refuses a format 14 file rather than read it wrong.

## Two values that are stored [#two-values-that-are-stored]

Two defaults do touch disk, each for a reason in the code. For a new identity, `add` writes `"keychain": "system"` into `identity.json` only at a terminal, on macOS, with Google Chrome detected, when no browser, engine, attach or keychain option is given, and not with `--dry-run`. As `defaults.ts` notes, an existing identity keeps what its cookies were encrypted with, so this choice is made once, when the identity is created. The health check that `login` finds is written to the identity's state folder, not to `identity.json`, so a check the person writes still wins and `health: false` still turns it off.

## What is still not solved [#what-is-still-not-solved]

A key left out follows the default of the turno-browser that runs. A later release can change what an identity does while its file stays the same. That shows in `show`, `status` and `doctor`, and in the changelog, not in the file.

Defaults in code also live in help text and docs, and those did not follow on their own. [turno-browser 0.11.1](/releases/browser/0-11-1) ([pull request 181](https://github.com/wimo-dev/turno/pull/181)) corrected the help of `vault submit`, `record` and `set`, and docs pages, which still described the old defaults.

Traces are the one recording that stayed off. `defaults.ts` keeps them off and gives the reason: tracing stops pages from loading images and frames of other sites.

## Sources [#sources]

The change itself is commit `f717317`.