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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## v0.9.0 · 2026-11-20

The Windows engine opens no console window, the app waits a shorter time for its engine, and the terminal panel's guide names all four agent programs.

- **No console window on Windows:** the Windows engine is now built without a console window of its own. A build made with `FORMEXT_ENGINE_WINDOWED=0` keeps the console. macOS and Linux are unchanged.
- **Behaves differently:** the app now waits at most 90 seconds for its engine to come up, instead of 120, and then shows the dialog that says why.
- **Fixed on macOS:** an engine that was left behind and had just been ended could still be taken for running, and the next start was refused with "could not stop an engine that was left running". It now counts as gone.
- **The guide in the terminal panel:** when Claude Code is installed, the guide now also says that Codex, Cursor and Antigravity each get a button of their own when they are on this computer. The manual names all four programs where it says which of the Studio's own tabs are not asked.
- Checked here: on Linux, the Windows build script with stand-ins (the console switch on by default and off with `0`, never on Linux), the engine's self check with no output streams, the shell's start-up functions with the 90 second wait in a scratch build, the macOS fix with the Linux process folder hidden, the tests in `tests/` (41, none of which can start a real agent program), the agents check, the engine's self check, the hosts check and the frontend build as the repository's own checks run them.
- Not verified yet: anything on Windows or macOS. The desktop shell was not compiled on the build machine, so the release build is its first compile. No real agent program was run.

## v0.8.0 · 2026-11-19

form.ext starts and stops cleanly beside its engine, on Windows too, and a start that fails says why.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</p>

<p align="center">
<img alt="version 0.8.0" src="https://img.shields.io/badge/version-0.8.0-4f6bff?style=flat-square">
<img alt="version 0.9.0" src="https://img.shields.io/badge/version-0.9.0-4f6bff?style=flat-square">
<img alt="Python FastAPI engine" src="https://img.shields.io/badge/Python-FastAPI%20engine-3776ab?style=flat-square&logo=python&logoColor=white">
<img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-interface-3178c6?style=flat-square">
<img alt="Tauri 2" src="https://img.shields.io/badge/Tauri-2-24C8DB?style=flat-square">
Expand Down
16 changes: 16 additions & 0 deletions backend/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

The living log of the form.ext engine. Read it before editing `backend/`. Core files belong to the engine module; module routers and services (`routers/<module>.py`, `services/<module>.py`) keep their own notes in their own HASHOUT logs.

## v0.9.0: the Windows engine is packaged without a console window {#windowed}

- refers-to: ../setup/freeze_backend; formext_engine.py; ../src-tauri/HASHOUT_LOG.md#address-wait
- The owner's decision for the family: a Windows engine has no console window of its own, as FormWeb's has today. `setup/freeze_backend` gives PyInstaller `--noconsole` on Windows unless `FORMEXT_ENGINE_WINDOWED=0`; on macOS and Linux nothing changes and the variable is not read. The name follows the script's other variables (`FORMEXT_TARGET`). The shell already starts the engine with `CREATE_NO_WINDOW` and reads its standard output through a pipe.
- A windowed engine starts with `sys.stdout` and `sys.stderr` as None when no one hands it streams. The entry already puts the null device in their place (wave 4), so `--selfcheck` and the other modes that print still finish; the self check at the end of the freeze is judged by its exit code only.
- Seen on Linux: the script run with a stand-in Python and a stand-in `uname` that answers `MINGW64_NT-10.0`: Windows unset and `=1` give PyInstaller 43 arguments with one `--noconsole`, `=0` gives 42 and none; Linux gives 42 and none in all three. `bash -n` passes. `formext_engine.py --selfcheck >&- 2>&-` exits 0.
- Not run: no Windows build has shown it, and that the windowed engine's address line still reaches the shell through the pipe is for a Windows machine to show.

## v0.9.0: an engine that has ended but was not yet collected counts as gone on macOS {#ended-not-collected}

- refers-to: app/services/startup.py; ../tests/test_startup.py
- What was seen, in FormCut: the macOS job of its pull request failed with "could not stop an engine that was left running". `end` had ended the holder, but `gone_by` kept seeing it. `_alive_posix` asks `kill(pid, 0)`, which still answers for a process that has ended and that its parent has not collected, and it tells such a process apart only by reading `/proc`, which macOS does not have. form.ext carries the same file, so the same start would be refused here when the leftover engine's own parent is alive and slow to collect it.
- The change, as FormCut made it: `finished(pid)` asks `ps -o stat= -p <pid>` where there is no `/proc` (never on Windows, never on Linux) and answers true for a state that starts with `Z`. `gone_by` stops waiting when the process is not alive or is finished. `alive` is unchanged, so the two second watch on the app starts no program.
- Seen on Linux with `PROC` pointed at a folder that does not exist: with `finished` answering false, `claim` on a lock whose holder is a child of the caller and whose shell has gone waited ten seconds and raised "formext could not stop an engine that was left running on [folder]"; with the change the same `claim` returns the holder's process id in under five seconds. Test after: `test_a_holder_that_has_ended_and_was_not_collected_counts_as_gone_where_there_is_no_proc` in tests/test_startup.py (12 in the file now).
- Not run on macOS.

## v0.8.0: the engine starts and stops cleanly beside its app, on Windows too {#windows-start}

- refers-to: app/services/startup.py; app/services/runtime.py; formext_engine.py; ../tests/test_startup.py; ../src-tauri/HASHOUT_LOG.md#windows-start
Expand Down
2 changes: 1 addition & 1 deletion backend/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.0"
__version__ = "0.9.0"
19 changes: 18 additions & 1 deletion backend/app/services/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,26 @@ def same(pid: int, born: float) -> bool:
return alive(pid) and (not born or (seen > 0 and abs(seen - born) <= SLACK))


def finished(pid: int) -> bool:
if WINDOWS or os.path.isdir(PROC):
return False
try:
told = subprocess.run(
["ps", "-o", "stat=", "-p", str(pid)],
stdin=subprocess.DEVNULL,
capture_output=True,
text=True,
timeout=END_WAIT,
check=False,
)
except (OSError, subprocess.SubprocessError):
return False
return told.stdout.strip().startswith("Z")


def gone_by(pid: int, seconds: float) -> bool:
until = time.monotonic() + seconds
while alive(pid):
while alive(pid) and not finished(pid):
if time.monotonic() >= until:
return False
time.sleep(STEP)
Expand Down
2 changes: 1 addition & 1 deletion docs/MANUAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ The desktop app's frozen engine takes the same commands (`formext-engine cli ...

## Settings and the data folder

Settings (`settings.json` in the data folder, read and changed through the engine's `/api/settings`) hold the theme, your author name, the default publisher key, the default licence, the default app for New, FormPortal's folder, the editor's font size, tab size and wrapping, the Preview's theme and consent defaults, and the registry: `registry.url` (the index address), `registry.checkout` (a local clone for Submit to Registry's checks) and `registry.developer` (read an index without a trusted key; for development only). The outside-agents choice (`agent_access`, in Preferences under Developer, Outside agents) is Ask by default, Allowed or Blocked: it decides whether Claude Code, Codex, Cursor, Antigravity, any other MCP client and `./formext cli` may change anything, and only the form.ext window can change it (an agent, the command line or an edit of the file cannot; a hand edit puts it back to Ask). The Studio's own Claude Code and Chat tabs are not asked under Ask; Blocked stops their changes too. The host source settings (`sources.auto`, `sources.base`, `sources.local.[key]`) are described under [Host sources](#host-sources).
Settings (`settings.json` in the data folder, read and changed through the engine's `/api/settings`) hold the theme, your author name, the default publisher key, the default licence, the default app for New, FormPortal's folder, the editor's font size, tab size and wrapping, the Preview's theme and consent defaults, and the registry: `registry.url` (the index address), `registry.checkout` (a local clone for Submit to Registry's checks) and `registry.developer` (read an index without a trusted key; for development only). The outside-agents choice (`agent_access`, in Preferences under Developer, Outside agents) is Ask by default, Allowed or Blocked: it decides whether Claude Code, Codex, Cursor, Antigravity, any other MCP client and `./formext cli` may change anything, and only the form.ext window can change it (an agent, the command line or an edit of the file cannot; a hand edit puts it back to Ask). The Studio's own Claude Code, Codex, Cursor, Antigravity and Chat tabs are not asked under Ask; Blocked stops their changes too. The host source settings (`sources.auto`, `sources.base`, `sources.local.[key]`) are described under [Host sources](#host-sources).

form.ext keeps its projects and everything it makes in its data folder: `FORMEXT_HOME` when set, otherwise the OS app-data folder `ai.nodemode.formext` (macOS Application Support, Windows `%APPDATA%`, Linux `~/.local/share`).

Expand Down
12 changes: 10 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 for the interface: the shell, the shared styles and the build files. Source files stay comment-free; what they would have said lives here. Each pane keeps its own `src/panes/<name>/HASHOUT_LOG.md`.

Current build version: v0.8.0
Last updated: 2026-11-19 · v0.8.0 the version only. Before: v0.7.0 the shared panel at module 2.2.0 and Antigravity as the fourth agent tab (#panel-four). Before: v0.6.0 the Form family's shared terminal panel and its question for outside agents (#family-panel). Before: v0.5.0 the window key, the question for outside agents and AMOLED Black (#window-key, #agent-consent, #amoled). Before: v0.4.1 the demo's `engine/kit.ts` refuses an `entry.ui` ending in `/` (`demo/HASHOUT_LOG.md`). Before: v0.4.0 the host source row in the Studio and Open pull request in Publish (`panes/studio/HASHOUT_LOG.md#source`, `panes/publish/HASHOUT_LOG.md#pull-request`). Before: v0.3.1 the version only. Before: v0.3.0 the demo opens in the app (#in-app-demo). Before: v0.2.1 the README's screenshots and the community files
Current build version: v0.9.0
Last updated: 2026-11-20 · v0.9.0 the shared panel at module 2.2.1 (#panel-221). Before: v0.8.0 the version only. Before: v0.7.0 the shared panel at module 2.2.0 and Antigravity as the fourth agent tab (#panel-four). Before: v0.6.0 the Form family's shared terminal panel and its question for outside agents (#family-panel). Before: v0.5.0 the window key, the question for outside agents and AMOLED Black (#window-key, #agent-consent, #amoled). Before: v0.4.1 the demo's `engine/kit.ts` refuses an `entry.ui` ending in `/` (`demo/HASHOUT_LOG.md`). Before: v0.4.0 the host source row in the Studio and Open pull request in Publish (`panes/studio/HASHOUT_LOG.md#source`, `panes/publish/HASHOUT_LOG.md#pull-request`). Before: v0.3.1 the version only. Before: v0.3.0 the demo opens in the app (#in-app-demo). Before: v0.2.1 the README's screenshots and the community files

---

Expand Down Expand Up @@ -173,6 +173,14 @@ Sockets: the terminal stream and the Chat stream send `windowHello()` (`{"type":

Checked in headless Chrome against Vite and a running engine: the page boots (Home), claims the key once, `PUT /api/settings` and a terminal from the page succeed with the header, the terminal socket echoes a command after the hello, a reload writes with the stored key and claims nothing, and after the engine restarts the first write is refused, reclaimed and retried. Not checked: the packaged window (no shell build here).

## The shared panel at module 2.2.1 {#panel-221}

- refers-to: src/dock/ · ../setup/agents.py · ../tests/test_dock_module.py · ../docs/MANUAL.md
- kind: decision
- logged: v0.9.0 · 2026-11-20

`src/dock/` is module 2.2.1, every file of the folder copied unchanged from FormVis commit 23b01889 (`git show` per file, `MANIFEST.json` included); three files differ from 2.2.0: `strings.ts` (the guide's `tourInstalledBody` and `tourReadyBody` now end with "Codex, Cursor and Antigravity each get a button of their own here when they are on this computer."), `CONTRACT.md` and `MANIFEST.json`. `setup/agents.py` `DOCK_VERSION` says 2.2.1. The adapter needed no change. form.ext carries no translations of the panel's sentences, so there was nothing to translate. The manual's sentence about the Studio's own tabs under Ask now names all four programs, as the Preferences note already did. There is no Preferences field for where Claude Code is (the four programs are found by the shared finder, with `FORMEXT_CLAUDE_BIN`, `FORMEXT_CODEX_BIN`, `FORMEXT_CURSOR_BIN` and `FORMEXT_ANTIGRAVITY_BIN` already alike), so no program path was added.

## The shared panel at module 2.2.0, and Antigravity as the fourth agent tab {#panel-four}

- refers-to: src/dock/ · src/dock-adapter.ts · ../setup/agents.py · ../agents/manifest.json · ../tests/test_dock_module.py · ../backend/HASHOUT_LOG.md#antigravity-tab
Expand Down
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": "formext",
"private": true,
"version": "0.8.0",
"version": "0.9.0",
"description": "form.ext: the Form family's extension studio",
"license": "GPL-3.0-only",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/demo/engine/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function decodeFiles(rawFiles: Json): Record<string, Uint8Array> {
return out;
}

on('GET', '/api/health', () => ({ ok: true, app: 'formext', version: '0.8.0 in this page', api: '1', pid: 0, python: null, frozen: false, home: DATA, contract: 'bundled', uptime: Math.round(performance.now() / 100) / 10, live_clients: 0, routers: ['health', 'settings', 'projects', 'live', 'library', 'package', 'preview', 'publish', 'runapp', 'templates', 'validate'], router_errors: {}, frontend: 'demo', demo: true }));
on('GET', '/api/health', () => ({ ok: true, app: 'formext', version: '0.9.0 in this page', api: '1', pid: 0, python: null, frozen: false, home: DATA, contract: 'bundled', uptime: Math.round(performance.now() / 100) / 10, live_clients: 0, routers: ['health', 'settings', 'projects', 'live', 'library', 'package', 'preview', 'publish', 'runapp', 'templates', 'validate'], router_errors: {}, frontend: 'demo', demo: true }));
on('GET', '/api/settings', () => ({ ...settings.get(), home: DATA }));
on('PUT', '/api/settings', (_m, r) => {
const patch = { ...json(r) };
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/dock/CONTRACT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The dock's engine contract

Module version 2.2.0. This file travels with the shared dock folder and is the same in every app.
Module version 2.2.1. This file travels with the shared dock folder and is the same in every app.

The dock's frontend never talks to an engine. It calls the functions of `DockAdapter` (adapter.ts), and each app's adapter turns them into its engine's routes, sockets or event streams. This file says what an engine has to provide so that an adapter can deliver each function, in words that do not depend on the engine's language. Paths, header names and transports are each app's own. Where a clause says "the adapter", the engine may do the work instead; where it says "the engine", the adapter cannot make it up.

Expand Down Expand Up @@ -68,6 +68,10 @@ An adapter written for 2.1.0 compiles and behaves as before: copying the 2.2.0 f
- **Part names.** Every control of the module carries `data-dock-part`; the attribute and the names are `DOCK_PUBLIC.partAttribute`, `parts` and `partsByKind` (`launch.[kind]`, `menu.launch.[kind]`, `tab.[kind]`). Automation and command layers use these and no class name.
- **A status line for a tab.** A terminal record may carry `status`, and a channel may give `onStatus(handler)` and call the handler with new text ("reconnecting", an exit code). The text of the tab in front shows in the head between the tabs and the buttons, clipped; an empty string clears it.

## Module 2.2.1

The guide's two sentences for a computer that has Claude Code (`tourInstalledBody` and `tourReadyBody`) now end by naming the other three programs: "Codex, Cursor and Antigravity each get a button of their own here when they are on this computer." Nothing else in the folder changed, and an adapter written for 2.2.0 needs no change; an app that translates the module's sentences translates these two again.

## The manifest

`MANIFEST.json` in this folder lists the module version and the SHA-256 of every other file here, this one included. The source app (FormVis) writes it; every other app only checks it: read the file names and hashes from the manifest, hash each file's bytes, and fail naming any file that differs, is missing or is extra. The check is small enough to write in any language an app's tools use.
6 changes: 3 additions & 3 deletions frontend/src/dock/MANIFEST.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"module": "dock",
"version": "2.2.0",
"version": "2.2.1",
"files": {
"CONTRACT.md": "ccef67fcf0017569c0bf68df0eae2e1e3ddf376117ac929789b803713c427df6",
"CONTRACT.md": "9791fa9d5eb7ef7e09543d34c2d097cfe6559b7fa1792f251afb9abfa7ac0bd7",
"adapter.ts": "1128c16892424485fe68bb2bf92ebc7229a9c2ff749db2fcd2419662d9c3ada9",
"agents.ts": "db666d1042555f8bbda4a697dbfc475df23779d0c5a25abd532bcfa43ae81043",
"chat.ts": "994878030b9fbff729734d34e2baa5b018e7d0b8555c24bfb7c98962c50446fa",
Expand All @@ -14,7 +14,7 @@
"keys.ts": "1adfc7daefa35b0e6eb8957250dca3926ded1c59fd51db7d60da6346caf0d561",
"placement.ts": "0f7e03ef0b720af07995111f30dcb5ed124529d44cf5cb67ae4bfb1f96c7f880",
"state.ts": "bef508e8343737f67adfbd7ae8cb8efb446968dfd4e7e0aff37da11f996955d7",
"strings.ts": "19a6a32f235b61dfed6179e2271a6d599f4357c9a6b9c09118bb65990d1e114f",
"strings.ts": "3654a59c4d005125e248dd322f467d4ad3c513f4fd86f6dfe76f5565408ac50e",
"terminal.ts": "8bf886a7ad4dc69323e803acc13641a66e1d8614e9b85a6a60977fa30d8a56fc",
"tour.ts": "2f83994051f4370c5d1630a827b4539eb12fd50e7fe9531f5641a4bf75615782"
}
Expand Down
Loading
Loading