Repository navigation
FormSurface 0.67.0: only FormSurface's own window can change things, the engine starts and stops cleanly, and all four agent programs named - #9
Conversation
The engine makes one key per start and gives it to the first page that claims it, or to the desktop shell on its own output. Every request that writes or runs something, the editor's live link, the terminal streams and the event stream need it; outside agents keep reaching the editor through the MCP relay while Agent link is on. The window claims the key before its first request and sends it on every call. Tests: tests/test_window_key.py (13, including a real engine started here telling the window, a program without the key, an agent tab and a wrong key apart); backend suite 278 passed.
Version sites: VERSION, README.md badge, formsurface launcher banner, backend/app/main.py, frontend/package.json, frontend/package-lock.json (two fields), frontend/src/version.ts, native/Cargo.toml, native/Cargo.lock (fs-core, fs-engine), src-tauri/Cargo.toml, src-tauri/Cargo.lock, src-tauri/tauri.conf.json, SECURITY.md, the two skills in .claude and .agents and both tools.md headings. CHANGELOG entry for 0.64.0. Run: backend suite 278 passed on the feature commit; version tests 5 passed; agents check clean.
…ives it The window check opens a new browser context per test against one engine. The fixtures claim the key once and hand it to every page through an init script, as the shell does, so no page needs to claim it again.
…window GET /api/chat/image now needs the window key header or a one-time ticket, the same check as the event stream. The window asks for a ticket for each picture before it sets the picture's source, since an image element cannot send a header. Seen: tests/test_window_key.py chat picture test passed (no key, a wrong key, a tab header and a spent ticket each refused; the key and a fresh ticket served the file); tsc --noEmit exit 0.
Antigravity reads its MCP servers from its working folder, so every tab now works in its own folder inside the data folder, removed when the tab closes. Two tabs open at once each keep their own entry; closing one leaves the other's. Seen: tests/test_agent_tabs.py 2 passed with a stand-in agy.
…dows and Linux The status badge now says released, and the status line says that FormSurface is built and bundled for macOS, Windows and Linux and has been tested on all three, on the owner's statement. The link to the coverage table stays. Seen: tests/test_f4_versions.py (reads the README's version badge) 3 passed.
The engine replaces missing output streams before it prints anything, keeps a log in the data folder's Logs, and keeps its errors there when there is no console. It records itself in engine.lock: a second start on the same data folder is refused with "formsurface is already running on [folder] (engine process N)." and exit 2, and an engine left running by an app that is gone is stopped and replaced. It stops when the app that started it ends (FORMSURFACE_SHELL_PID, or FORMSURFACE_PARENT_PID from today's app). A frozen engine opened on its own opens FormSurface instead. Run here on Linux: tests/test_engine_lock.py and test_start_and_stop.py passed (second start refused with exit 2, the watch under both variable names, a leftover engine replaced, a damaged lock replaced, selfcheck with its streams closed).
With tests/test_engine_lock.py in the whole backend suite, a later test (the terminal socket test in tests/test_window_key.py) waited for ever, in three runs out of three; without that file the suite passed (281 in 29 s). The cause was not found in time, so the change goes back to the next release whole, with its test.
…gs, and a folder for each Antigravity tab Replaces the 0.64.0 release that was not handed out. Version sites: VERSION, README.md badge, formsurface launcher banner, backend/app/main.py, frontend/package.json, frontend/package-lock.json (two fields), frontend/src/version.ts, native/Cargo.toml, native/Cargo.lock (fs-core, fs-engine), src-tauri/Cargo.toml, src-tauri/Cargo.lock, src-tauri/tauri.conf.json, SECURITY.md, the two skills in .claude and .agents and both tools.md headings. CHANGELOG entry for 0.65.0 covering everything since origin/main. Run: backend suite 281 passed; browser window check 7 passed in 10 min 13 s on a30b7af (same window and served code as this tip); version tests 5 passed; agents check clean.
On Windows the engine runs inside a job object, so it ends with the app however the app ends. The app waits at most 90 seconds for the engine's address. When the engine cannot start, the dialog gives the reason, the engine's last lines, its exit code and where its log is, and it appears before the splash closes. The Windows engine is built without a console window (FORMSURFACE_ENGINE_WINDOWED=0 keeps one), in setup/freeze_backend and in its formsurface.bat twin, and the engine's entry replaces missing standard streams so a windowed engine still serves. The engine is still started through the shell plugin's sidecar; win_job.rs is FormVis's file unchanged; windows-sys 0.61 is a Windows-only dependency, already in Cargo.lock through Tauri. Run here: the scratch crate's Windows type check and the 3 unit tests of engine_start.rs; bash -n setup/freeze_backend; the entry served with its streams closed. The shell itself was not compiled here.
The live client and terminal socket tests waited for a message with no limit, so a terminal that never answered held the whole suite. Each wait now ends after 20 seconds with a failure. test_window_key.py: 14 passed.
…Cursor and Antigravity CONTRACT.md, MANIFEST.json and strings.ts are copied unchanged from FormVis commit 23b01889; every file of frontend/src/dock now has the bytes it has there. The first-run guide's two sentences for a computer with Claude Code now say that Codex, Cursor and Antigravity each get a button of their own when they are on this computer. The adapter and the engine keep their 2.2.0 handshake, which 2.2.1 leaves as it was. Ran: setup/agents.py check, clean (the folder matches its manifest).
…de Code, Codex, Cursor and Antigravity The Connect an Outside Agent dialog, Home's Agents entry and the Agent link button's tooltip name all four programs, in that order. The dialog sentence and the tooltip are lookup keys, so strings.json and all 23 language tables that carry them changed together, translated. No native speaker has read the new translations. Ran: every table parses as JSON; a search for three-program lists in frontend/src and index.html finds none left.
…s, and refuses to start otherwise conftest.py writes stand-ins for claude, codex, cursor-agent, agent and agy and a stand-in login shell into its sandbox, puts them first on PATH, and takes every PATH folder that holds one of those names out. Before the first test it asks the finder where each program would be found: on PATH and in every install folder the finder knows (npm, pnpm, Volta, bun and the system folders). If any answer is not one of the stand-ins, or SHELL is not the stand-in shell, the suite stops with exit code 4 and names what it found. Only this file changed in the backend; the reasons are here because it is the one file this change may touch. Ran: the whole backend suite with the decoy prefix, 281 passed in 21 s; with BUN_INSTALL pointing at a folder holding a program named claude, the suite stops with exit code 4 and names it; with /opt/node22/bin (which holds a real claude) on PATH, the conftest's PATH finds the stand-in and the finder check finds nothing (checked without starting any program).
… a start failed, and every list of agent programs names all four Replaces 0.65.0 and 0.64.0, which were not handed out. Version sites as in cf70556; the CHANGELOG entry covers everything since origin/main. Gate on 872ef78: backend suite 281 passed; npm audit 0 vulnerabilities; type check clean; browser window check 7 passed in 805 s; agents check clean; version tests 5 passed after the version change.
…t reaches the window that asked for it The start and stop rules of a30b7af are back: the engine keeps a log in the data folder's Logs, records itself in engine.lock, refuses a second start on the same data folder with exit 2, replaces an engine left by an app that is gone, stops when its app ends, and opens FormSurface when it is opened on its own. Terminal output is now handed to each terminal socket on the event loop that socket runs on. Before, it went to the loop of the last lifespan start; with two test clients that was the other client's loop, and the terminal test waited for output that never came. Run here: the whole backend suite with the rules, 285 passed.
…ows app holds its engine and says why a start failed, and every list of agent programs names all four Replaces 0.66.0, 0.65.0 and 0.64.0, which were not handed out. Version sites as in 29c28a8; the CHANGELOG entry covers everything since origin/main. Gate on f499c09: backend suite 285 passed three times in a row; the old pair (test_engine_lock.py and the terminal socket test) 5 passed three times; browser window check 7 passed; agents check clean; version tests 5 passed after the version change. Unchanged since 872ef78 and gated there: npm audit 0 vulnerabilities, type check clean.
FormSurface 0.67.0: only FormSurface's own window can change things, the engine starts and stops cleanly, the Windows app holds its engine and says why a start failed, and all four agent programs namedThese eight commits go onto the pull request already open for 0.65.0. They also end that pull request's What changes for people
0.64.0, 0.65.0 and 0.66.0 were not handed out; this release replaces them and carries all of them. Also in this pull request: 0.65.0
How it was checked
Not run
Held
Checks rehearsed
The 0.64.0, 0.65.0 and 0.66.0 release commits are in this pull request but are not the last commit; the 0.67.0 release commit is. MergeMerge with a merge commit. Do not squash and do not rebase-merge. |
FormSurface 0.67.0: only FormSurface's own window can change things, the engine starts and stops cleanly, the Windows app holds its engine and says why a start failed, and all four agent programs named
These eight commits go onto the pull request already open for 0.65.0. They also end that pull request's
testjob timing out: in 0.65.0 one terminal test waited for output with no time limit, and whether the output arrived depended on timing. The cause is fixed here (each terminal socket gets its output on its own loop) and every socket wait now stops after 20 seconds, so the suite either passes in about a minute or fails with a name.What changes for people
The engine keeps a log in the data folder's
Logs. A second start on the same data folder is refused with "formsurface is already running on [folder] (engine process N)." and exit code 2; an engine left running by an app that is gone is stopped and replaced; the engine stops when the app that started it ends; and the engine opened on its own opens FormSurface instead.A terminal's output now always reaches the terminal tab that is showing it: each terminal socket gets its lines on the event loop it runs on, not on the loop of the last start.
On Windows the engine runs inside a job object, so it ends with the app however the app ends, and everything it started ends with it.
The app waits at most 90 seconds for its engine (it was two minutes). When the engine cannot start, the message says why, shows the engine's last lines, its exit code and where its log is, and it appears before the loading window closes. A main window that cannot open now says so instead of closing without a word.
The Windows engine is built with no console window;
FORMSURFACE_ENGINE_WINDOWED=0keeps one. The engine now runs with no standard output or error at all (before, it stopped with "Unable to configure formatter 'default'").The Connect an Outside Agent dialog, Home's Agents entry, the Agent link button's tooltip and the first-run guide name Claude Code, Codex, Cursor and Antigravity. The shared panel module is 2.2.1 (FormVis's files, unchanged); the adapter and the engine keep their 2.2.0 handshake, which 2.2.1 leaves as it was.
The backend test suite refuses to start unless the agent programs on its PATH are stand-ins, and the socket tests give up after 20 seconds instead of waiting for ever.
0.64.0, 0.65.0 and 0.66.0 were not handed out; this release replaces them and carries all of them.
Also in this pull request: 0.65.0
./formsurface mcpwhile Agent link is turned on, as before.How it was checked
test_engine_lock.pywith that test alone passed; after it, the whole suite passed.test_engine_lock.pywith the terminal socket test: 5 passed, three times.npm ci,npm audit0 vulnerabilities, the type check passed with no errors, and the interface built (inside the window check).frontend/tests/window): see the table below.src-tauri/src/engine_start.rsandsrc-tauri/src/win_job.rsby path passedcargo check --target x86_64-pc-windows-msvc(windows-sys 0.61.2), and the 3 unit tests ofengine_start.rspassed (the tail never keeps the window key line, every failure's sentence with the last lines and the log, the log path the engine uses).>&-,>&- 2>&-,<&- >&- 2>&-), answered/api/healthwith 200 each time; the 0.65.0 entry stopped each time.compileall,bash -non every shell script, the em dash and emoji check on tracked markdown, and./formsurface agents check(clean). The version tests passed after the version change.Not run
src-tauri/src/main.rs,src-tauri/src/engine_start.rs,src-tauri/src/win_job.rs,src-tauri/Cargo.tomlandsrc-tauri/Cargo.lockchanged. The orchestrator's Windows and macOS type check runs on these commits.Held
Checks rehearsed
The 0.64.0, 0.65.0 and 0.66.0 release commits are in this pull request but are not the last commit; the 0.67.0 release commit is.
Merge
Merge with a merge commit. Do not squash and do not rebase-merge.