Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

docs(mac): updating is a button on Overview now, and how the app replaces itself

Shahriar0783a46defa2
diff --git a/docs/guide/mac-app.md b/docs/guide/mac-app.md
index b04db1f..2272b65 100644
--- a/docs/guide/mac-app.md
+++ b/docs/guide/mac-app.md
@@ -88,10 +88,16 @@ not two that can drift apart.
## Updating
-Settings shows a banner when a newer release is out. Run the install line again — it replaces the
-app and opens it: the first screen notices the command and the extension are older than the ones it carries,
-and **Set up everything** replaces both and restarts the daemon. Then press ↻ on the Browsentic card
-at `chrome://extensions`, which is the one step no installer can do for you.
+The app asks GitHub and npm for a newer release when it opens and every few hours after. When one
+is out, a card appears at the top of **Overview** (and in Settings) with **Update now**: it downloads
+the release, checks its signature and that it is the version it claims to be, replaces the app and
+reopens it, and the new app replaces the command and the extension and restarts the daemon. Then
+press ↻ on the Browsentic card at `chrome://extensions`, which is the one step no installer can do
+for you. **Check for updates** on the same card asks again on the spot.
+
+A release reaches npm a few minutes before its Mac build is attached; until then the card says so
+and offers **Check again** instead. If an update fails nothing is changed, and the card hands you
+the install line, which installs the same release from a terminal.
`browsentic update` does not replace an install the app made; it says so and points back here.
diff --git a/docs/internals/mac-app.md b/docs/internals/mac-app.md
index 35946e4..59c86fe 100644
--- a/docs/internals/mac-app.md
+++ b/docs/internals/mac-app.md
@@ -72,6 +72,17 @@ quarantine to everything its children write, and the app then arrives flagged an
redirect, verifies the signature, and copies the app into Applications. It depends on the release
asset being named `Browsentic-<version>.dmg`.
+The app updates itself along the same path (`Core/Updater.swift`). `UpdateFeed` takes the newer of
+GitHub's `releases/latest` tag and npm's `latest` version, then asks with a `HEAD` whether that
+release's DMG exists yet, because the `mac` job attaches it after the npm publish. `AppUpdater`
+downloads the image, mounts it, verifies the signature, refuses a bundle whose identifier or version
+is not the one offered, and copies it beside the running bundle as `.Browsentic-<version>.app`. A
+running app cannot replace itself, so a detached `sh` waits for the process to exit, renames the old
+bundle aside, renames the new one in, puts the old one back if that fails, and reopens it. A
+translocated copy is not replaced where it runs; the new app goes to Applications instead. The
+`finishUpdateOnLaunch` default tells the next launch to replace the command and the extension
+without waiting for **Set up everything**. It too depends on the asset name.
+
CI builds and tests it on `macos-15`; the release workflow’s `mac` job attaches the DMG to the
GitHub release after the npm publish. Colours in
[Theme.swift](../../src/mac/Sources/Browsentic/Theme/Theme.swift) are Ember and Daylight from