diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0101796..be8bbb3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,31 @@
# Changelog
-## 0.15.0
+## 0.15.1
+
+FormLedger's window now matches the other Form apps at the top right, in Preferences and around the macOS traffic lights.
+
+### New
+- **Two buttons at the top right of the window:** the robot opens and closes the agent dock and stays lit while the dock is open, and the gear opens Preferences. They look and sit as they do in FormPortal.
+- **Antigravity in the agent dock:** a tab of its own next to Claude Code, Codex and Cursor when Antigravity's `agy` is installed on your computer, with its install line when it is not.
+
+### Changed
+- **Preferences is a floating dialog** over the dimmed window, not a page. Its sections (Appearance, Menus in Window on macOS, Agents and Security) sit in a rail at its left, a drawn line joins the chosen section to the panel, and one section shows at a time. Esc, Done, the close button or a click outside closes it, and Tab stays inside it while it is open. Every way in opens the dialog: the gear, Cmd or Ctrl plus comma, the Preferences menu item, the command palette, the Preferences button on Home and the item in the user menu. Every setting is where it was.
+- **On/off settings are toggle switches,** the same as in the other Form apps: Menus in Window, Show the agent dock and the app lock in Preferences, and the app lock on the Account page. The label sits on the left and the switch on the right. Clicking the label or pressing Space still turns it on or off.
+- **macOS:** the window has no grey title strip any more; the page runs to the top edge, as in the other Form apps. The traffic lights sit over the sidebar head, which starts 78 pixels in so the FormLedger name stays clear of them, and the sidebar is a little wider to keep the name and version whole. With Menus in Window on, the menu bar starts 78 pixels in instead. In full screen the inset goes away. The window is dragged by the top bar, the sidebar head or the menu bar.
+- **macOS:** the menu bar shown while the window first loads has Account, Agent Dock and Menus in Window, like the full menu bar that replaces it.
+
+### Fixed
+- The dock's tour named only Codex and Cursor as the other agent programs.
+
+### Known issues
+- macOS: none of the macOS changes were run on a Mac: the title bar, the traffic-light inset, dragging the window, full screen and the system menu. They were checked in a browser that pretends to be the macOS app.
+- Windows: the dock's tabs cannot open a terminal yet; the dock says so.
+- The rest of the 0.15.0 known issues still apply.
+
+### Under the hood
+- The dialog is a port of FormVis's Preferences dialog (`SettingsDialog` and its wire) through FormPortal's version of it, on a native `
-
+
@@ -94,9 +94,9 @@
-
+
- Preferences, from 0.15.0: theme, accent, the agent dock and the app lock.
+ Preferences, from 0.15.1 a floating dialog: theme, accent, the agent dock and the app lock.
Preferences
Dark, light or the system's theme, six accents that leave debit, credit and chart colours alone, the agent dock and the app lock.
@@ -106,7 +106,7 @@
-
Window
A list for every document type · one form with a line grid for sales and purchase documents · payments with allocation · setup lists · a dashboard of revenue, expenses, profit, cash and top customers by month · a command palette that reaches every screen · light, dark or system theme · from 0.15.0, a menu bar (in the window on Windows and Linux, the system menu on macOS), a Home start screen and Preferences (theme, accent, the agent dock and the app lock). See docs/window/
+
Window
A list for every document type · one form with a line grid for sales and purchase documents · payments with allocation · setup lists · a dashboard of revenue, expenses, profit, cash and top customers by month · a command palette that reaches every screen · light, dark or system theme · from 0.15.0, a menu bar (in the window on Windows and Linux, the system menu on macOS), a Home start screen and Preferences (theme, accent, the agent dock and the app lock), from 0.15.1 a floating dialog opened by the gear at the top right. See docs/window/
Reports
Trial balance · general ledger · profit and loss · balance sheet · receivables and payables aging · stock balance and value
Taking figures out
CSV of every list and report · PDF of quotes, orders, invoices, purchase documents and customer statements · a read-only SQLite snapshot of the books. See docs/EXPORT.md, docs/PRINT.md and docs/SNAPSHOT.md
@@ -124,7 +124,7 @@ The command line is a client of the running server; it never opens the database.
[`docs/ledger/cli.md`](docs/ledger/cli.md) walks from an empty company to a trial balance. What the app commits to do is listed in [`docs/BEHAVIOURS.md`](docs/BEHAVIOURS.md), and [`AGENTS.md`](AGENTS.md) is the guide for coding agents working on the repo.
-From 0.15.0 the window also has an agent dock, opened from View, Agent Dock or with Cmd or Ctrl plus J: a terminal panel beside the books with a shell tab and tabs for Claude Code, Codex and Cursor when they are installed on your computer. Only the owner of the books can open it, and only from this computer. On Windows its terminals do not open yet. FormLedger has no MCP server yet; an agent drives the books through the command line above.
+From 0.15.0 the window also has an agent dock, opened from View, Agent Dock, the robot button at the top right or with Cmd or Ctrl plus J: a terminal panel beside the books with a shell tab and tabs for Claude Code, Codex, Cursor and, from 0.15.1, Antigravity when they are installed on your computer. Only the owner of the books can open it, and only from this computer. On Windows its terminals do not open yet. FormLedger has no MCP server yet; an agent drives the books through the command line above.
## Network
diff --git a/assets/screens/preferences-light.webp b/assets/screens/preferences-light.webp
index 5896cc3..fe08a27 100644
Binary files a/assets/screens/preferences-light.webp and b/assets/screens/preferences-light.webp differ
diff --git a/assets/screens/preferences.webp b/assets/screens/preferences.webp
index 8ef4fe2..7d7e2d2 100644
Binary files a/assets/screens/preferences.webp and b/assets/screens/preferences.webp differ
diff --git a/cmd/HASHOUT_LOG.md b/cmd/HASHOUT_LOG.md
index a3a86a0..563aa65 100644
--- a/cmd/HASHOUT_LOG.md
+++ b/cmd/HASHOUT_LOG.md
@@ -2,7 +2,7 @@
Living log of all comment content, explainers, rationale, TODOs, & removed (hashed-out) code for the entry point, `embed.go`, `internal/server`, `internal/static` and `internal/startup`. Source files stay comment-free per dev-rules `sub-skills/hashout-log/SUB-SKILL.md`; everything they would have said lives here, indexed. Read it first, then edit code surgically.
-Current build version: v0.15.0
+Current build version: v0.15.1
Last updated: 2026-11-26 (US Eastern) · skeleton port from form.md
---
diff --git a/internal/HASHOUT_LOG.md b/internal/HASHOUT_LOG.md
index 36df965..1a9e325 100644
--- a/internal/HASHOUT_LOG.md
+++ b/internal/HASHOUT_LOG.md
@@ -2,7 +2,7 @@
Living log of comment content, rationale and removed code for the core skeleton packages under `internal/`. Source files stay comment-free; what they would have said lives here, indexed. Read it first, then edit code surgically. Covers the packages ported in the core slice only; `internal/server`, `internal/static` and `internal/startup` are logged by their own slice.
-Current build version: v0.15.0
+Current build version: v0.15.1
Last updated: 2026-11-27 (US Eastern) · profit and loss and the balance sheet
---
@@ -1951,3 +1951,10 @@ RFC 6455 server side only: the handshake through `http.ResponseController.Hijack
- logged: v0.15.0 · 2026-12-01 (EST)
`GET /api/terminal` (`{terminals: [{id,title,cwd,alive,kind}]}`), `POST /api/terminal` (shell, `{cols,rows}`), `POST /api/terminal/claude` (`{cols,rows,prompt?,resume?}`), `POST /api/terminal/agent` (`{kind: codex|cursor, cols, rows}`), `POST /api/terminal/{id}/resize`, `POST /api/terminal/{id}/restart`, `DELETE /api/terminal/{id}`, `GET /api/terminal/{id}/stream` (WebSocket), `GET /api/agent/status` (`{claude,codex,cursor}` each `{installed,version,install,signedIn,said?,title}`, FormDeck's shape). A missing program answers 409 `program_missing`, which the adapter maps to `notInstalled`. Shells and programs start in the user's home folder (the data folder if there is none), never in the data folder's books.
+
+### internal/dock/programs.go, internal/dock/module.go · Antigravity as the fourth agent program
+- refers-to: internal/dock/programs.go :: programs; internal/dock/module.go :: openAgent
+- kind: rationale, removed-code
+- logged: v0.15.1 · 2026-12-01 (EST)
+
+The Form shell standard, line 3, lists Claude Code, Codex, Cursor and Antigravity tabs when installed. FormLedger 0.15.0 had the first three only. Antigravity is FormVis's fourth program (`backend/app/services/agent_lookup.py`): the executable `agy`, the install line `curl -fsSL https://antigravity.google/cli/install.sh | bash`. It joins `programs`, so `/api/agent/status` now answers `{claude,codex,cursor,antigravity}` and `POST /api/terminal/agent` takes `kind: antigravity`. It is looked for on `PATH` and the same install folders as the others and has no sign-in probe, so `signedIn` is null ("cannot tell"). FormVis writes an MCP entry into Antigravity's own folder for its tab; FormLedger has no MCP server, so nothing is written, as for the other programs. Removed: the refusal text `"the agent program must be codex or cursor"`, now `"the agent program must be codex, cursor or antigravity"`.
diff --git a/internal/app/version.go b/internal/app/version.go
index 4c590fe..bf7d754 100644
--- a/internal/app/version.go
+++ b/internal/app/version.go
@@ -1,5 +1,5 @@
package app
-var Version = "v0.15.0"
+var Version = "v0.15.1"
const Product = "FormLedger"
diff --git a/internal/dock/module.go b/internal/dock/module.go
index 6499571..ea8cd4a 100644
--- a/internal/dock/module.go
+++ b/internal/dock/module.go
@@ -179,7 +179,7 @@ func (m *module) openAgent(w http.ResponseWriter, r *http.Request, p *policy.Pri
}
prog, ok := programFor(b.Kind)
if !ok || prog.kind == "claude" {
- return httpx.Fail(http.StatusBadRequest, "bad_kind", "the agent program must be codex or cursor")
+ return httpx.Fail(http.StatusBadRequest, "bad_kind", "the agent program must be codex, cursor or antigravity")
}
return m.openProgram(w, r, p, prog, nil, b.Cols, b.Rows)
}
diff --git a/internal/dock/programs.go b/internal/dock/programs.go
index 8eff580..42b2f83 100644
--- a/internal/dock/programs.go
+++ b/internal/dock/programs.go
@@ -30,6 +30,7 @@ var programs = []program{
{kind: "claude", bin: "claude", title: "Claude Code", install: "npm install -g @anthropic-ai/claude-code"},
{kind: "codex", bin: "codex", title: "Codex", install: "npm install -g @openai/codex"},
{kind: "cursor", bin: "cursor-agent", title: "Cursor", install: "curl https://cursor.com/install -fsS | bash"},
+ {kind: "antigravity", bin: "agy", title: "Antigravity", install: "curl -fsSL https://antigravity.google/cli/install.sh | bash"},
}
func programFor(kind string) (program, bool) {
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index ab4b8d9..f1800c4 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -1106,7 +1106,7 @@ dependencies = [
[[package]]
name = "formledger-desktop"
-version = "0.15.0"
+version = "0.15.1"
dependencies = [
"objc2",
"objc2-app-kit",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 67a63a9..66e35df 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "formledger-desktop"
-version = "0.15.0"
+version = "0.15.1"
description = "FormLedger desktop app"
authors = ["NodeAgentc, Inc."]
license = "Apache-2.0"
diff --git a/src-tauri/HASHOUT_LOG.md b/src-tauri/HASHOUT_LOG.md
index 0337d8c..c51d0e8 100644
--- a/src-tauri/HASHOUT_LOG.md
+++ b/src-tauri/HASHOUT_LOG.md
@@ -2,7 +2,7 @@
Living log of all comment content, explainers, rationale, TODOs, & removed (hashed-out) code for the Tauri 2 desktop shell (`src-tauri`). Source files stay comment-free per dev-rules `sub-skills/hashout-log/SUB-SKILL.md`; everything they would have said lives here, indexed. This file is also the compressed contextual map of the shell: read it first, then edit code surgically.
-Current build version: v0.15.0
+Current build version: v0.15.1
Last updated: 2026-11-26 (US Eastern) · the shell ported from form.md's src-tauri and renamed for FormLedger
---
@@ -353,3 +353,23 @@ Edits, one hand edit per region, removed lines quoted:
- main.rs: `generate_handler![reveal::app_ready]` became `generate_handler![reveal::app_ready, menu::zoom]`.
- build.rs: the app manifest's commands `&["app_ready"]` became `&["app_ready", "zoom"]`, which makes the `allow-zoom` permission.
- capabilities/main.json (the remote capability for `http://127.0.0.1:*`): `"permissions": ["allow-app-ready"]` became `allow-app-ready`, `allow-zoom`, `core:menu:default` (build and set the app menu, set enabled and checked), and `core:window:allow-minimize`, `allow-toggle-maximize`, `allow-set-fullscreen`, `allow-is-fullscreen`, `allow-close` for the in-window Window menu and File > Close Window. The description says the same.
+
+### src/main.rs, capabilities/main.json · the overlay title bar on macOS
+- refers-to: src/main.rs :: open_main (the `WebviewWindowBuilder` chain); capabilities/main.json :: main-ready
+- kind: rationale, removed-code, warning-context
+- logged: v0.15.1 · 2026-12-01 (EST)
+
+The Form shell standard, line 5: on macOS the top-left content starts right of the traffic lights, 78 px in, set before first paint and dropped in full screen. FormVis, FormPortal and FormCite draw their own top row under the lights with `TitleBarStyle::Overlay` and `hidden_title(true)`; FormLedger 0.15.0 kept the system title bar, so its window had a grey title strip above the page that no other Form app has. The builder is now bound to `builder`, and under `#[cfg(target_os = "macos")]` it gets the overlay style and a hidden title before `build()`. Windows and Linux are unchanged. The page's side is in `web/HASHOUT_LOG.md`: the pre-paint `data-fl-lights` attribute, the 78 px inset, and `data-tauri-drag-region` on the top bar, the sidebar head and the in-window menu bar.
+
+The window can only be moved by those drag regions now, so the remote capability gains `core:window:allow-start-dragging` (the drag) and `core:window:allow-internal-toggle-maximize` (Tauri's drag script zooms the window on a double click). `allow-is-fullscreen` was already there and is what the page asks on resize to drop the inset in full screen.
+
+Not ported: FormVis's `traffic_lights.rs`, which moves the lights with AppKit so they sit centred in its 38 px title row. Without it the lights keep AppKit's overlay position, near the top left of FormLedger's 44 px sidebar head, which the 78 px inset clears whatever their height. Verified: `cargo check` on Linux after the change (the macOS lines are not compiled there). Not verified: a macOS build and launch.
+
+Removed: `let window = WebviewWindowBuilder::new(handle, "main", WebviewUrl::External(url))` (now `let builder = ...`) and the chain's closing `.build()?;`, now `let window = builder.build()?;` after the macOS line.
+
+### src/menu.rs · the first menu bar matches the page's list
+- refers-to: src/menu.rs :: build
+- kind: rationale
+- logged: v0.15.1 · 2026-12-01 (EST)
+
+`menu::build` is the macOS menu bar from launch until the page has built its own from `web/src/ui/menus.ts` (`MENUS`, through `NativeMenus.build` and `setAsAppMenu`), and the one left if that build fails. It lacked three items the page's list has: FormLedger > Account (`cmd:nav.account`), View > Agent Dock (`cmd:view.dock`, Cmd+J) and View > Menus in Window (`cmd:view.menus-in-window`). They are added in the page's order and run through `window.__formledgerRun` like every other `cmd:` item. Menus in Window is a plain item here, not a check item, because the shell cannot read the page's `localStorage` choice; the page's menu, which replaces this one, shows the check. Checked with `cargo check` on Linux. The page's own build was checked in a stand-in macOS shell: 7 menus (FormLedger, File, Edit, View, Go, Window, Help), the 5 Go submenus, 55 command items and the predefined items, set as the app menu once.
diff --git a/src-tauri/capabilities/main.json b/src-tauri/capabilities/main.json
index 2a84b18..38a2e59 100644
--- a/src-tauri/capabilities/main.json
+++ b/src-tauri/capabilities/main.json
@@ -1,7 +1,7 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "main-ready",
- "description": "The main window shows the page the bundled server serves on 127.0.0.1, a remote origin to Tauri. It may call app_ready, which tells the shell the page has drawn its first content, and zoom, which steps the window's zoom for the View menu. It may build the macOS menu bar from the page's menu list (core:menu:default) and, for the in-window Window menu, minimize, maximize, go full screen and close its own window.",
+ "description": "The main window shows the page the bundled server serves on 127.0.0.1, a remote origin to Tauri. It may call app_ready, which tells the shell the page has drawn its first content, and zoom, which steps the window's zoom for the View menu. It may build the macOS menu bar from the page's menu list (core:menu:default) and, for the in-window Window menu, minimize, maximize, go full screen and close its own window. On macOS the title bar is an overlay, so the top bar, the sidebar head and the in-window menu bar are drag regions: the page may start a window drag and toggle maximize on a double click, and it asks whether the window is full screen to drop the traffic-light inset.",
"windows": ["main"],
"remote": { "urls": ["http://127.0.0.1:*"] },
"permissions": [
@@ -12,6 +12,8 @@
"core:window:allow-toggle-maximize",
"core:window:allow-set-fullscreen",
"core:window:allow-is-fullscreen",
- "core:window:allow-close"
+ "core:window:allow-close",
+ "core:window:allow-start-dragging",
+ "core:window:allow-internal-toggle-maximize"
]
}
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 19ff8cc..f61dea2 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -137,7 +137,7 @@ fn open_main(handle: &AppHandle, port: u16, key: &str) -> tauri::Result<()> {
.download_dir()
.unwrap_or_else(|_| data_dir(handle));
let finished = handle.clone();
- let window = WebviewWindowBuilder::new(handle, "main", WebviewUrl::External(url))
+ let builder = WebviewWindowBuilder::new(handle, "main", WebviewUrl::External(url))
.title("FormLedger")
.inner_size(width, height)
.min_inner_size(MIN_LOGICAL.0, MIN_LOGICAL.1)
@@ -176,8 +176,10 @@ fn open_main(handle: &AppHandle, port: u16, key: &str) -> tauri::Result<()> {
true
}
_ => true,
- })
- .build()?;
+ });
+ #[cfg(target_os = "macos")]
+ let builder = builder.title_bar_style(tauri::TitleBarStyle::Overlay).hidden_title(true);
+ let window = builder.build()?;
reveal::conceal(&window);
Ok(())
}
diff --git a/src-tauri/src/menu.rs b/src-tauri/src/menu.rs
index bb310a0..7344414 100644
--- a/src-tauri/src/menu.rs
+++ b/src-tauri/src/menu.rs
@@ -60,6 +60,7 @@ pub fn build(app: &AppHandle) -> tauri::Result