Skip to content

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

Merged
nodemode-ai merged 17 commits into
mainfrom
feat/final-0.65.0
Nov 20, 2026
Merged

nodemode-ai merged 17 commits into
mainfrom
feat/final-0.65.0

Conversation

@nodemode-ai

@nodemode-ai nodemode-ai commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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 test job 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=0 keeps 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

  • The engine gives one key to FormSurface's window when it starts, and every change asks for it: saving, deleting and exporting projects, the terminals, Claude Code, Codex, Cursor, Antigravity and Chat, Preferences, the external editor and closing the engine. A request without it is answered "Only the formsurface window can do this".
  • The desktop app hands its window the key directly. A window opened from source asks the engine for it once, and the engine gives it to the first page only.
  • The editor's Agent link, the terminal tabs and the dock's event stream connect only from that window. Another program that tries to take over the Agent link is turned away, and the linked editor stays linked.
  • Pictures that Claude looked at, shown in a Chat reply, are now only given to FormSurface's own window.
  • Each Antigravity tab works in a folder of its own, so two Antigravity tabs open at once each keep their own connection, and closing one leaves the other connected.
  • Agents outside the app still reach the editor through ./formsurface mcp while Agent link is turned on, as before.
  • The README's status now says released, built and tested on macOS, Windows and Linux (the owner's statement).
  • The engine's start and stop rules were written and taken back out (a30b7af, reverted by 8eb3f84); they are back in daeb9b9.

How it was checked

  • Why the suite used to wait with the start and stop rules in place: terminal output went to the event loop that the last lifespan start recorded. The suite has two session test clients, each with its own lifespan, so after the first test that used the second client the terminal test's socket was on the other loop and its output never woke it; the test passed only when the shell's prompt was already in the scrollback when the socket connected, and the lock tests changed that timing. Seen: before the fix, the whole suite with the rules failed at the terminal test's new 20 second limit (1 failed, 284 passed) while test_engine_lock.py with that test alone passed; after it, the whole suite passed.
  • Backend suite on the final code, with stand-in agent programs and a stand-in shell first on PATH: 285 passed, three times in a row (28 s, 36 s, 35 s; the slowest test 8.5 s, so none came near the 20 second limit). test_engine_lock.py with the terminal socket test: 5 passed, three times.
  • Browser window check on the final code: 7 passed in 488 s.
  • Before the rules came back, on 872ef78: backend suite 281 passed; window check 7 passed in 805 s.
  • npm ci, npm audit 0 vulnerabilities, the type check passed with no errors, and the interface built (inside the window check).
  • The browser window check (frontend/tests/window): see the table below.
  • The Windows shell code: a scratch crate that takes src-tauri/src/engine_start.rs and src-tauri/src/win_job.rs by path passed cargo check --target x86_64-pc-windows-msvc (windows-sys 0.61.2), and the 3 unit tests of engine_start.rs passed (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).
  • The engine's entry, run with its output closed (>&-, >&- 2>&-, <&- >&- 2>&-), answered /api/health with 200 each time; the 0.65.0 entry stopped each time.
  • compileall, bash -n on 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

  • Nothing ran on Windows or macOS: not the job object, not the no-console engine, not the failure dialog's order against the loading window.
  • The desktop shell was not compiled on the machine that prepared this release; src-tauri/src/main.rs, src-tauri/src/engine_start.rs, src-tauri/src/win_job.rs, src-tauri/Cargo.toml and src-tauri/Cargo.lock changed. The orchestrator's Windows and macOS type check runs on these commits.
  • The agent panel was seen open by the interface session in its own working copy (the same interface code), in Studio Dark and Light under 4x CPU throttling: buttons for Claude Code, Codex, Cursor and Antigravity, at the bottom and at the right, no console error, nothing shifting on load or on its own. Not ruled out: a one-frame flash when the panel moves from the right back to the bottom; the frame sampling missed the moment of the click.
  • The real Claude Code, Codex, Cursor and Antigravity were not run (stand-ins only).
  • No native speaker has read the new sentences in the 23 translated tables.

Held

  • Nothing from this run's list.

Checks rehearsed

Job Command Result
test python -m pytest tests -q (backend) 285 passed, 0 failed, three runs in a row
frontend npm ci, npm audit, typecheck, build pass, 0 vulnerabilities (audit and type check on 872ef78; the build inside the window check on the final code)
window python -m pytest frontend/tests/window 7 passed, 0 failed (8 min 8 s)
scripts bash -n, no em dash, no emoji clean
agents ./formsurface agents check clean
desktop-shell cargo check --locked not run here (the orchestrator's check)

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.

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.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 20, 2026 19:57
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.
@nodemode-ai nodemode-ai changed the title FormSurface 0.65.0: only FormSurface's own window can change things, and a folder for each Antigravity tab 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 Nov 20, 2026
@nodemode-ai

Copy link
Copy Markdown
Collaborator Author

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 test job 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=0 keeps 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

  • The engine gives one key to FormSurface's window when it starts, and every change asks for it: saving, deleting and exporting projects, the terminals, Claude Code, Codex, Cursor, Antigravity and Chat, Preferences, the external editor and closing the engine. A request without it is answered "Only the formsurface window can do this".
  • The desktop app hands its window the key directly. A window opened from source asks the engine for it once, and the engine gives it to the first page only.
  • The editor's Agent link, the terminal tabs and the dock's event stream connect only from that window. Another program that tries to take over the Agent link is turned away, and the linked editor stays linked.
  • Pictures that Claude looked at, shown in a Chat reply, are now only given to FormSurface's own window.
  • Each Antigravity tab works in a folder of its own, so two Antigravity tabs open at once each keep their own connection, and closing one leaves the other connected.
  • Agents outside the app still reach the editor through ./formsurface mcp while Agent link is turned on, as before.
  • The README's status now says released, built and tested on macOS, Windows and Linux (the owner's statement).
  • The engine's start and stop rules were written and taken back out (a30b7af, reverted by 8eb3f84); they are back in daeb9b9.

How it was checked

  • Why the suite used to wait with the start and stop rules in place: terminal output went to the event loop that the last lifespan start recorded. The suite has two session test clients, each with its own lifespan, so after the first test that used the second client the terminal test's socket was on the other loop and its output never woke it; the test passed only when the shell's prompt was already in the scrollback when the socket connected, and the lock tests changed that timing. Seen: before the fix, the whole suite with the rules failed at the terminal test's new 20 second limit (1 failed, 284 passed) while test_engine_lock.py with that test alone passed; after it, the whole suite passed.
  • Backend suite on the final code, with stand-in agent programs and a stand-in shell first on PATH: 285 passed, three times in a row (28 s, 36 s, 35 s; the slowest test 8.5 s, so none came near the 20 second limit). test_engine_lock.py with the terminal socket test: 5 passed, three times.
  • Browser window check on the final code: 7 passed in 488 s.
  • Before the rules came back, on 872ef78: backend suite 281 passed; window check 7 passed in 805 s.
  • npm ci, npm audit 0 vulnerabilities, the type check passed with no errors, and the interface built (inside the window check).
  • The browser window check (frontend/tests/window): see the table below.
  • The Windows shell code: a scratch crate that takes src-tauri/src/engine_start.rs and src-tauri/src/win_job.rs by path passed cargo check --target x86_64-pc-windows-msvc (windows-sys 0.61.2), and the 3 unit tests of engine_start.rs passed (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).
  • The engine's entry, run with its output closed (>&-, >&- 2>&-, <&- >&- 2>&-), answered /api/health with 200 each time; the 0.65.0 entry stopped each time.
  • compileall, bash -n on 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

  • Nothing ran on Windows or macOS: not the job object, not the no-console engine, not the failure dialog's order against the loading window.
  • The desktop shell was not compiled on the machine that prepared this release; src-tauri/src/main.rs, src-tauri/src/engine_start.rs, src-tauri/src/win_job.rs, src-tauri/Cargo.toml and src-tauri/Cargo.lock changed. The orchestrator's Windows and macOS type check runs on these commits.
  • The agent panel was seen open by the interface session in its own working copy (the same interface code), in Studio Dark and Light under 4x CPU throttling: buttons for Claude Code, Codex, Cursor and Antigravity, at the bottom and at the right, no console error, nothing shifting on load or on its own. Not ruled out: a one-frame flash when the panel moves from the right back to the bottom; the frame sampling missed the moment of the click.
  • The real Claude Code, Codex, Cursor and Antigravity were not run (stand-ins only).
  • No native speaker has read the new sentences in the 23 translated tables.

Held

  • Nothing from this run's list.

Checks rehearsed

Job Command Result
test python -m pytest tests -q (backend) 285 passed, 0 failed, three runs in a row
frontend npm ci, npm audit, typecheck, build pass, 0 vulnerabilities (audit and type check on 872ef78; the build inside the window check on the final code)
window python -m pytest frontend/tests/window 7 passed, 0 failed (8 min 8 s)
scripts bash -n, no em dash, no emoji clean
agents ./formsurface agents check clean
desktop-shell cargo check --locked not run here (the orchestrator's check)

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.

@nodemode-ai nodemode-ai changed the title 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 FormSurface 0.67.0: only FormSurface's own window can change things, the engine starts and stops cleanly, and all four agent programs named Nov 20, 2026
@nodemode-ai
nodemode-ai merged commit ec44378 into main Nov 20, 2026
7 checks passed
@nodemode-ai
nodemode-ai deleted the feat/final-0.65.0 branch November 20, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant