Skip to content

FormDesign 0.91.0: the Windows engine ends with the app and opens no console, and a failed start says what happened - #11

Merged
nodemode-ai merged 6 commits into
mainfrom
feat/sprint-finish-0.91.0
Nov 20, 2026
Merged

nodemode-ai merged 6 commits into
mainfrom
feat/sprint-finish-0.91.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormDesign 0.91.0: the Windows engine ends with the app and opens no console, and a failed start says what happened

FormDesign 0.90.0 could not be built on any system: one line of the desktop shell (src-tauri/src/main.rs) did not compile, because it returned a value that borrowed a piece of text that was thrown away on the same line. This version rewrites that part of the shell (commit a3407d9): the text is kept under a name before it is searched. The shell of this version is type-checked for Windows before it is handed over, and the type check passed with no error and no warning.

What a person now gets:

  • On Windows the engine ends with FormDesign however FormDesign ends, and it opens no console window of its own (FORMDESIGN_ENGINE_WINDOWED=0 at build time keeps the console for someone who wants it).
  • When FormDesign cannot start, the message shows the last lines the engine wrote, the code it stopped with and the full path of its log. The app waits at most 90 seconds for its engine's address and says so when that runs out.
  • On macOS, a leftover engine that has ended is no longer taken for one still running, so the next start is not refused.
  • The panel's guide names Codex, Cursor and Antigravity (the shared panel module 2.2.1).
  • The three browser demos are rebuilt with the current window.

Merge this pull request with a merge commit, so that each commit stays as it is.

Held

  • A Preferences field for where Codex, Cursor and Antigravity are: the Claude Code path is part of the sealed agent choice, so the three would need to go under the same seal, with new labels in every language table; not done in this session's time.
  • The demos show the version they were built with (0.90.0 in the page code) and the core version of their recordings; they were rebuilt before the version commit, which comes last.

Not run

  • Nothing ran on Windows or macOS. The desktop shell was not compiled or run; the Windows type check of the real shell is in the table below.
  • No Windows build has shown the engine without a console; the .bat was read, not run.
  • No real agent program; stand-ins only.
  • The layout core's cargo test --release --locked -p formdesign-engine: the core built, but its test build was still compiling at the stop time and was ended; nothing under native/ changed in this version but the version string.
  • Python 3.13 here; the workflow pins 3.12.

Checks rehearsed

Job Command Result
frontend npm ci --dry-run, npm audit --audit-level=low, npm run build (type check inside) exit 0, 0 vulnerabilities, built
frontend npx tsc --noEmit -p ../demo exit 0
backend python -m compileall -q app formdesign_engine.py, --selfcheck exit 0, exit 0
backend template library lint 71 templates, 0 with problems
backend python ../setup/agents.py sync --check in step
backend boot the engine on 8196 and probe health, capabilities, templates 200, 200, 200
layout layout core cargo build --release --locked -p formdesign-core built (11 min 35 s)
layout two ./formdesign make runs with the core and the font library newsletter.pdf, newsletter.fdes, flyer.png written, none empty
test python -m pytest tests -q with the layout core and fonts, on the release commit 313 passed, 0 failed
test cargo test --release --locked -p formdesign-engine not run to the end (see Not run)
window window_rehearsal.sh formdesign with the core and PRE installing the font library, on the release commit 3 passed in 30.7 s
shell scratch crate, cargo check for Windows msvc and gnu, cargo test exit 0, exit 0, 5 passed
shell cargo metadata --locked --offline in src-tauri exit 0
shell Windows type check of the real src-tauri (x86_64-pc-windows-gnu, cargo check --locked) on the release commit exit 0, 0 errors, 0 warnings
scripts bash -n loop, ./formdesign mcpb check, em dash and emoji check exit 0, valid, 0
demos each page from file:// in headless Chromium drew, 0 console errors (3 of 3)

…ed counts as gone on macOS

Ending a leftover engine waits until it is gone. On macOS a process that has
ended and that its parent has not collected still answers a signal, and there
is no /proc to tell it apart, so the wait ran out and the start was refused.
Where there is no /proc, the wait now asks ps for the process's state and
takes an ended one as gone. Linux and Windows are untouched. Carried by hand
from FormCut's fix, with a test that points the start-up file at a /proc that
does not exist. Not run on macOS.
…art says what the engine last wrote

On Windows the engine is put in a job object, taken by its process id since
the shell still starts it through the shell plugin, so it ends with the app
however the app ends. A failed start now shows the engine's last lines, its
exit code and the full path of its log in the dialog, before the last window
closes. The wait for the engine's address is limited to 90 seconds; the wait
for the window key stays at ten. windows-sys is named for Windows only and was
already in the lock file. Checked in a scratch crate for Windows targets, with
five tests for the plain functions; the shell itself was not compiled here.
Both freeze scripts now give PyInstaller --noconsole on Windows, so the engine
opens no console window of its own; FORMDESIGN_ENGINE_WINDOWED=0 leaves it out.
macOS and Linux builds are unchanged. The entry script already replaces missing
output streams, so the self-check after freezing still runs. The address wait
of 90 seconds came with the shell change before this one.
…dex, Cursor and Antigravity

The panel's folder is copied unchanged from FormVis 23b01889. Its guide, for a
computer that has Claude Code, now says that Codex, Cursor and Antigravity
each get a button of their own when they are installed. The manifest check
and the dock tests pass on the copy.
The pages now carry the current window, the shared panel 2.2.1 with its four
agent programs, and the black theme. The recordings are unchanged. Each page
was opened from file:// in headless Chromium: it drew and its console held no
error.
Version 0.91.0 in the fourteen places it is kept, and the changelog entry.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 20, 2026 11:25
@nodemode-ai
nodemode-ai merged commit 6fc73d8 into main Nov 20, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the feat/sprint-finish-0.91.0 branch November 20, 2026 22:13
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