diff options
| author | Igor Soarez <igor@soarez.org> | 2026-07-28 22:09:36 +0100 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-10-14 12:17:59 +0100 |
| commit | 6eda4b9cce4b2ae7003ccd7429e3f3aad7c04b66 (patch) | |
| tree | dcaf567d5eaa495fdfc38aed039eeeb5ea99a0ff /FORK.md | |
| parent | 95ff5e8eaefb35d79109f7ddfa1de5bf45a8daff (diff) | |
docs: castle is now the default; document the override table
BU_CDP_HTTP is an override rather than a requirement, and /browser-status
explains the lazy connection instead of showing a bare red light.
Diffstat (limited to 'FORK.md')
| -rw-r--r-- | FORK.md | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -45,11 +45,25 @@ same identifier works on macOS and Linux, which a local-path install could not do — pi records those by resolved absolute path, and `settings.json` is shared across hosts via the dotfiles symlink. -Then point it at the browser: +Nothing else to configure: castle is the built-in default +(`DEFAULT_REMOTE_CDP` in `src/cdp/endpoint.ts`). -``` -export BU_CDP_HTTP=10.88.0.25:9223 -``` +## Choosing a browser + +| `BU_CDP_HTTP` | behaviour | +|---|---| +| unset | castle, falling back to this machine's browser if unreachable | +| `host:port` | that endpoint; **unreachable is a hard error** | +| `local` (also `localhost`, `off`, `none`, `0`, `no`) | upstream behaviour — this machine's own browser | + +The asymmetry is deliberate. An explicit endpoint is an instruction, so failing +to reach it must not quietly automate a different browser — that would drive +your own signed-in Chrome instead of the shared one. The default is only a +preference, so a laptop away from the wire network still gets the local browser. + +`/browser-status` names the resolved target and whether it is reachable. Note +the connection is **lazy**: nothing dials the browser until the first `browser_*` +tool runs, so a fresh session reports "not connected yet" rather than an error. `pi update` reconciles the clone to the configured ref rather than pulling stock from npm, so the patch cannot be silently reverted — which is exactly what the |
