Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.32.0 · 2026-11-20

- The page shown in the Browser pane is now sent only to the FormAT window. Other programs on your computer that ask for it are refused, as they already were for every change. Nothing changes in how you use the pane.
- Agents you connect over MCP or the command line work as before: they follow your Outside agents choice in Settings (Ask, Allowed or Blocked).
- Not checked for this version: nothing was run on macOS or Windows, and no packaged engine was built. The desktop app was not built on the build machine. No real agent program was run.
- Engine: no new commands (still 114; 115 MCP tools with `run_command`).

## 0.31.0 · 2026-11-20

- FormAT keeps its own chat-first look. Every name of the Form family's shared design vocabulary (the colour, size and layer names FormVis defines) now has a value in FormAT too, so a piece shared across the family finds what it looks for. Nothing you see changes: the window looks the same, pixel for pixel, in the dark and light themes.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</p>

<p align="center">
<img alt="version 0.31.0" src="https://img.shields.io/badge/version-0.31.0-eef0f4?style=flat-square">
<img alt="version 0.32.0" src="https://img.shields.io/badge/version-0.32.0-eef0f4?style=flat-square">
<img alt="TypeScript and Vite" src="https://img.shields.io/badge/TypeScript-Vite-3178c6?style=flat-square&logo=typescript&logoColor=white">
<img alt="Python and FastAPI" src="https://img.shields.io/badge/Python-FastAPI-009688?style=flat-square">
<img alt="macOS, Windows and Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
Expand Down
19 changes: 17 additions & 2 deletions backend/HASHOUT_LOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.31.0"
__version__ = "0.32.0"
9 changes: 8 additions & 1 deletion backend/app/core/window_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
READS = ("GET", "HEAD", "OPTIONS")
OPEN = ("/mcp", "/api/window/key")
OPEN_PREFIXES = ("/api/commands/",)
PRIVATE_READS = ("/api/browser/frame",)
KEY = secrets.token_urlsafe(32)
STATE = {"claimed": False, "secondClaim": False}
TICKETS: dict[str, float] = {}
Expand Down Expand Up @@ -65,12 +66,18 @@ def open_path(path: str) -> bool:
return path in OPEN or path.startswith(OPEN_PREFIXES)


def needs_key(method, path: str) -> bool:
if method in READS:
return path in PRIVATE_READS
return not open_path(path)


class WindowKeyGuard:
def __init__(self, app) -> None:
self.app = app

async def __call__(self, scope, receive, send) -> None:
if scope["type"] != "http" or scope.get("method") in READS or open_path(str(scope.get("path", ""))) or is_window(scope):
if scope["type"] != "http" or not needs_key(scope.get("method"), str(scope.get("path", ""))) or is_window(scope):
await self.app(scope, receive, send)
return
body = json.dumps({"detail": REFUSED}).encode("utf-8")
Expand Down
26 changes: 26 additions & 0 deletions backend/tests/test_window_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,32 @@ def test_every_write_route_refuses_a_call_without_the_window_key(app, bare):
assert found == []


PUBLIC_READS = {"/api/health", "/api/commands", "/api/commands/{cid}", "/api/voice", "/api/connectors/oauth/callback"}
ID_READS = {"/api/uploads/{fid}", "/api/chats/{cid}/files/{rel}", "/api/chats/{cid}/outputs.zip", "/api/artifacts/{aid}/v/{number}", "/api/artifacts/{aid}/v/{number}/source",
"/api/artifacts/{aid}/v/{number}/export/{fmt}", "/api/native/snapshots/{name}", "/s/{token}"}


def test_the_open_lists_are_exactly_the_named_routes():
assert set(window_key.OPEN) == {"/mcp", "/api/window/key"}
assert window_key.OPEN_PREFIXES == ("/api/commands/",)
assert set(window_key.PRIVATE_READS) == {"/api/browser/frame"}


def test_every_read_route_is_public_addressed_by_a_random_id_or_refused_without_the_window_key(app, bare):
reads = {path for path, item in app.openapi()["paths"].items() if "get" in item}
assert reads - PUBLIC_READS - ID_READS == set(window_key.PRIVATE_READS), f"read routes not classified: {sorted(reads - PUBLIC_READS - ID_READS - set(window_key.PRIVATE_READS))}"
for path in window_key.PRIVATE_READS:
r = bare.get(path)
assert r.status_code == 403 and r.json()["detail"] == window_key.REFUSED, path
r = bare.get(path, headers={window_key.HEADER: "not-the-key"})
assert r.status_code == 403 and window_key.KEY not in r.text, path


def test_the_window_reads_the_built_in_browser_frame_with_its_key(client, bare):
assert client.get("/api/browser/frame").status_code in (200, 204)
assert bare.get("/api/health").status_code == 200


def test_a_command_without_the_window_key_is_an_outside_agent(bare, client):
set_policy("blocked")
try:
Expand Down
11 changes: 9 additions & 2 deletions frontend/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Living log of all comment content, explainers, rationale, TODOs and removed code for the window. Source files stay comment-free (vendored family sheets keep their upstream headers); everything else they would have said lives here, indexed. Read this first, then edit code surgically.

Current build version: v0.31.0
Last updated: 2026-11-20 · v0.31.0: every FormVis token name resolves (src/styles/ft-tokens.css, seven names with FormVis Studio Dark's values; no value of FormAT's changed); 2026-11-20 · v0.30.1: no window change (the macOS engine list installs keyring; see the engine log's entry for 0.30.1); 2026-11-20 · v0.30.0: no window change (the shell's job object and wait, the Windows engine without a console, the connect command; see the engine log's entries after v0.29.0); 2026-11-19 · v0.29.0: no window change (the engine's start and stop and the shell's failure dialog; see the engine log's entries after v0.28.0); 2026-11-19 · v0.28.0: every command of the window waits for its key before it is sent (src/engine-client/window-key.ts, api.ts), and Settings, Outside agents names Antigravity; 2026-11-19 · v0.27.0: the window sends its key with every write and takes a one-time ticket for the events and terminal sockets (src/engine-client/window-key.ts), and Settings, Outside agents says when the saved choice was reset to Ask; 2026-11-15 · v0.26.3: the review's open list fixed in the window (a stopped engine is noticed within seconds and said on every view, deleting a project, a scheduled task or an artifact asks first, the composer's bottom row wraps in narrow containers, Projects page errors appear on that page, Settings names where keys are kept, View, Menus in Window on macOS applies at once, the demo list comes from `demo.list`, Outputs shows each file's caption and names Download all); v0.26.2: no window change (the desktop updater's address; see the engine log's entry for 0.26.2); v0.26.1: no window change (documents only: each Orrery map's credit line and source page, the community files, the release addresses; see the engine log's entry for 0.26.1); v0.26.0: a menu bar from one command registry (File, Edit, View, Go, Window, Help; in the macOS menu bar through the shell's injected API), settings as a window with a rail and a wire, the family look and the name FormAT, demo chats in their own sidebar group that open with their page beside them and at their start, the family splash and the `app_ready` call, and the review's window fixes (the reload loop at boot, focus after load, a failed send keeps its text, the terminal's toggle key and adopted shells, delete asks first, narrow windows); 2026-10-26 · v0.25.0: the window smoke and the splash mark's jump (v0.25.1 to v0.25.4: no window change beyond the icon and the README); 2026-10-25 · v0.24.5: markdown-it 15.0.3 and Vite 8.3.5; 2026-10-22 · v0.24.1: no window change (checks only, releases by formcompiler, version string); v0.24.0: the app icon redrawn as a smiling chat bubble with a sparkle (every Tauri size, the macOS .icns with its margin and shadow, favicon and splash), assets/icon_src to regenerate it, and the compact build's bloom kept; v0.23.0: attachment tiles with real previews (image, SVG, video frame and length, audio length, first lines of text) in the composer and on sent messages, and a full-screen viewer for every kind; v0.22.0: a run of the API's text blocks renders as one Markdown flow (a cited answer no longer breaks into a paragraph per claim), source chips after cited claims (web, document page, search result) live while streaming, punctuation kept before the chips, the caret only on the reply's last text, redacted thinking shown as nothing, KaTeX's operator and AMS faces preloaded; v0.21.1: a whole-app audit (no overflow, scrollbars or errors in 102 states) and five fixes: opening a chat moves the composer at the click, view tabs no longer reset each other, Skills Discover's empty line waits, a plugin connector chip holds still, Customize's message line keeps its height; v0.21.0: Discover for skills and connectors, Skill with Claude, a confirm for command plugins, private marketplace tokens, .plugin uploads; v0.20.0: Create a plugin (editor) and Create with Claude, /plugin:skill in the / menu; v0.19.0: Plugins with Your plugins and Discover, marketplaces with Check for updates and Sync automatically, a plugin page with Skills, Commands, Connectors and Agents tabs; v0.18.0: connector sign-in in the add form, on rows and pages, and the + menu's connector switches per chat; v0.17.0: Customize's list beside the open item on wide windows, Enabled switches, Delete and Remove in "..." menus with a confirm, skills grouped by where they came from; v0.16.0: a connector's page with status, Disconnect, the "..." menu and tool permissions; v0.15.0: the / menu, Customize with tabs, search, Add and a skill file browser; v0.14.1: zero horizontal overflow in the chat and the app at 360 to 1920 px, the streaming caret off its own line; v0.14.0: Allow for this chat on approval cards and in the permission menu, Always allow named for its kind of step; v0.13.0: files dropped anywhere on the chat, /skill in the composer, Allow all, a pinned follow of the reply, user messages on the right, edits as diffs, a quieter thinking row
Current build version: v0.32.0
Last updated: 2026-11-20 · v0.32.0: the Browser pane sends the window's key with each frame request (src/ui/browser-pane.ts); 2026-11-20 · v0.31.0: every FormVis token name resolves (src/styles/ft-tokens.css, seven names with FormVis Studio Dark's values; no value of FormAT's changed); 2026-11-20 · v0.30.1: no window change (the macOS engine list installs keyring; see the engine log's entry for 0.30.1); 2026-11-20 · v0.30.0: no window change (the shell's job object and wait, the Windows engine without a console, the connect command; see the engine log's entries after v0.29.0); 2026-11-19 · v0.29.0: no window change (the engine's start and stop and the shell's failure dialog; see the engine log's entries after v0.28.0); 2026-11-19 · v0.28.0: every command of the window waits for its key before it is sent (src/engine-client/window-key.ts, api.ts), and Settings, Outside agents names Antigravity; 2026-11-19 · v0.27.0: the window sends its key with every write and takes a one-time ticket for the events and terminal sockets (src/engine-client/window-key.ts), and Settings, Outside agents says when the saved choice was reset to Ask; 2026-11-15 · v0.26.3: the review's open list fixed in the window (a stopped engine is noticed within seconds and said on every view, deleting a project, a scheduled task or an artifact asks first, the composer's bottom row wraps in narrow containers, Projects page errors appear on that page, Settings names where keys are kept, View, Menus in Window on macOS applies at once, the demo list comes from `demo.list`, Outputs shows each file's caption and names Download all); v0.26.2: no window change (the desktop updater's address; see the engine log's entry for 0.26.2); v0.26.1: no window change (documents only: each Orrery map's credit line and source page, the community files, the release addresses; see the engine log's entry for 0.26.1); v0.26.0: a menu bar from one command registry (File, Edit, View, Go, Window, Help; in the macOS menu bar through the shell's injected API), settings as a window with a rail and a wire, the family look and the name FormAT, demo chats in their own sidebar group that open with their page beside them and at their start, the family splash and the `app_ready` call, and the review's window fixes (the reload loop at boot, focus after load, a failed send keeps its text, the terminal's toggle key and adopted shells, delete asks first, narrow windows); 2026-10-26 · v0.25.0: the window smoke and the splash mark's jump (v0.25.1 to v0.25.4: no window change beyond the icon and the README); 2026-10-25 · v0.24.5: markdown-it 15.0.3 and Vite 8.3.5; 2026-10-22 · v0.24.1: no window change (checks only, releases by formcompiler, version string); v0.24.0: the app icon redrawn as a smiling chat bubble with a sparkle (every Tauri size, the macOS .icns with its margin and shadow, favicon and splash), assets/icon_src to regenerate it, and the compact build's bloom kept; v0.23.0: attachment tiles with real previews (image, SVG, video frame and length, audio length, first lines of text) in the composer and on sent messages, and a full-screen viewer for every kind; v0.22.0: a run of the API's text blocks renders as one Markdown flow (a cited answer no longer breaks into a paragraph per claim), source chips after cited claims (web, document page, search result) live while streaming, punctuation kept before the chips, the caret only on the reply's last text, redacted thinking shown as nothing, KaTeX's operator and AMS faces preloaded; v0.21.1: a whole-app audit (no overflow, scrollbars or errors in 102 states) and five fixes: opening a chat moves the composer at the click, view tabs no longer reset each other, Skills Discover's empty line waits, a plugin connector chip holds still, Customize's message line keeps its height; v0.21.0: Discover for skills and connectors, Skill with Claude, a confirm for command plugins, private marketplace tokens, .plugin uploads; v0.20.0: Create a plugin (editor) and Create with Claude, /plugin:skill in the / menu; v0.19.0: Plugins with Your plugins and Discover, marketplaces with Check for updates and Sync automatically, a plugin page with Skills, Commands, Connectors and Agents tabs; v0.18.0: connector sign-in in the add form, on rows and pages, and the + menu's connector switches per chat; v0.17.0: Customize's list beside the open item on wide windows, Enabled switches, Delete and Remove in "..." menus with a confirm, skills grouped by where they came from; v0.16.0: a connector's page with status, Disconnect, the "..." menu and tool permissions; v0.15.0: the / menu, Customize with tabs, search, Add and a skill file browser; v0.14.1: zero horizontal overflow in the chat and the app at 360 to 1920 px, the streaming caret off its own line; v0.14.0: Allow for this chat on approval cards and in the permission menu, Always allow named for its kind of step; v0.13.0: files dropped anywhere on the chat, /skill in the composer, Allow all, a pinned follow of the reply, user messages on the right, edits as diffs, a quieter thinking row

---

Expand Down Expand Up @@ -1208,3 +1208,10 @@ src/main.ts builds the views (`new App(host)`) before it calls `loadWindowKey`,
- logged: v0.28.0 · 2026-11-19

The note under Settings, Outside agents listed "Claude Code, Codex, Cursor and other agents"; the family now offers four agent programs, so it reads "Claude Code, Codex, Cursor, Antigravity and other agents". One word in a sentence that already wraps; no element added. The window has no list or picker of agent programs (the terminal dock opens the person's shell and Claude's read-only tab, and chat chooses between the API key and Claude Code), so there was nothing else to extend: the four programs are reported by the engine's `claudecode.status` under `programs`, and nothing in the window shows that list yet. `tsc --noEmit` exit 0 in a scratch copy. Not looked at in a browser.

### src/ui/browser-pane.ts · the frame request carries the window's key
- refers-to: src/ui/browser-pane.ts :: loadFrame; src/engine-client/window-key.ts :: keyHeaders; backend/app/core/window_key.py :: PRIVATE_READS
- kind: fix
- logged: v0.32.0 · 2026-11-20

The engine now answers `GET /api/browser/frame` only to the window (see the engine log's entry for 0.32.0), so `loadFrame` sends `keyHeaders()` with it. The pane fetches frames only after the events socket has delivered a browser status, and that socket opens only with a ticket taken after `loadWindowKey` has settled, so the key is always there by then. Seen in Chromium with the built window and the real engine: the pane's own frame requests answered 200 image/jpeg; the same read from a local program without the key, 403.
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "format",
"private": true,
"version": "0.31.0",
"version": "0.32.0",
"description": "Format · A.T, the Agentic Terminal · a chat and agent workspace on the Claude API in the form family",
"license": "Apache-2.0",
"type": "module",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/ui/browser-pane.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { run } from '../engine-client/api';
import { keyHeaders } from '../engine-client/window-key';
import { el, q, setAttr, setText } from './dom';
import { ui } from './icons-ft';

Expand Down Expand Up @@ -159,7 +160,7 @@ export class BrowserPane {
this.loading = true;
const seq = this.wantSeq;
try {
const res = await fetch(`/api/browser/frame?s=${seq}`, { cache: 'no-store' });
const res = await fetch(`/api/browser/frame?s=${seq}`, { cache: 'no-store', headers: keyHeaders() });
if (res.status === 200) {
const url = URL.createObjectURL(await res.blob());
const pre = new Image();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.31.0';
export const VERSION = '0.32.0';
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "format"
version = "0.31.0"
version = "0.32.0"
description = "Format desktop shell"
authors = ["nodemode-ai"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schema.tauri.app/config/2",
"productName": "FormAT",
"mainBinaryName": "format",
"version": "0.31.0",
"version": "0.32.0",
"identifier": "ai.nodemode.format",
"build": {
"frontendDist": "../frontend/dist"
Expand Down
Loading