Skip to content

FormTxt 0.37.0: the engine ends with the app on Windows, a failed start says why - #14

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

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

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormTxt 0.37.0: the engine ends with the app on Windows, a failed start says why

What a person now gets:

  • On Windows the engine ends with FormTxt however FormTxt ends, Task Manager included, and everything it started goes with it.
  • When the engine cannot start, the message says what happened, shows the engine's last lines and its exit code, and names the log. A second copy of FormTxt on the same folder shows the engine's own line saying FormTxt is already running there.
  • FormTxt waits at most 90 seconds for its engine, then says so. A missing or unstartable engine program is a message too, where the app used to close without a word.
  • The Windows engine is built with no console window; FORMTXT_ENGINE_WINDOWED=0 gives the old console build.
  • On macOS, a leftover engine that has already ended counts as gone, so the next start is not refused.
  • Preferences names Antigravity beside Claude Code, Codex and Cursor, and the terminal panel's guide says the other three programs each get a button when installed (panel module 2.2.1).

Merge with a merge commit, so that every commit of this branch stays on main as it is.

Held

  • The browser demo was not rebuilt (item E): the clock ran out before it; the demo still carries 0.36.0.
  • No Preferences field for where an agent program is: FormTxt has none for Claude Code either, so there was nothing to add.

Not run

  • Nothing ran on Windows or macOS. The desktop shell was not built or run: it was type-checked for Windows only.
  • No Windows build has shown the no-console engine.
  • No real agent program was started; stand-ins only.
  • No native speaker was needed: FormTxt carries no translations of the changed sentences.

Checks rehearsed

Check Result
npm ci --dry-run, npm audit passed, 0 vulnerabilities
typecheck, frontend build passed
compileall, --selfcheck, engine probe passed
backend suite 223 passed
window check (window_rehearsal.sh) 2 passed
shell syntax, agents check, mcpb check, icon rules, markdown check clean
Windows type check of the shell (win_shell_check.sh, final tip) exit 0, 0 errors, 0 warnings
scratch crate: cargo check msvc and gnu, cargo test no error, no warning; 4 passed
Cargo.lock hand edit against cargo update --workspace identical
version files after the bump test_f5_boot 3, versions and dock tests 20 passed

…s as gone where there is no /proc

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 with "could not stop an engine that was left running" (FormCut's macOS job showed it in the same file). 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.

backend/app/core/startup.py: finished(pid), and its use in gone_by. backend/tests/test_startup.py: one test that points PROC at a folder that does not exist; it failed with that sentence before the change in gone_by and passes after it. backend/HASHOUT_LOG.md has the reason.

Run: tests/test_startup.py, 16 tests; 15 passed and one, the engine with its three streams closed, missed its 20 second wait on a loaded machine and passed when run again alone. Not run on macOS.
…says why, and the wait for the address has a limit

The shell side of the family's start, held in 0.36.0. src-tauri/src/win_job.rs (new, Windows only) puts the engine into a job object that ends it when the shell ends, however the shell ends; the engine is still started through tauri-plugin-shell, as FormVis's is, so the job takes it by its process id. src-tauri/src/engine_start.rs (new) holds the failure sentences, the engine's last twelve lines (never the window key line), its exit code and the log's path: a second copy of FormTxt now reads that another copy holds the data folder with the engine's own line under it, where it read one general sentence. The wait for the engine's address is 90 seconds (it had no limit), the wait for the key stays 10. A missing engine program or one that cannot be started is the dialog too, where the shell ended without a word.

src-tauri/src/main.rs: start_limit, engine_failed, the start in setup, kill_backend ends the job on Windows, open_main says whether its window was built. src-tauri/Cargo.toml and Cargo.lock: windows-sys 0.61.2 under the Windows target, one line added by hand to the lock. backend/HASHOUT_LOG.md has the reasons.

Run: the two new files in a scratch crate, cargo check for x86_64-pc-windows-msvc and x86_64-pc-windows-gnu with no error and no warning, cargo test 4 passed; cargo update --workspace --offline on a copy of the old lock gave the hand-edited lock exactly. main.rs was not compiled: the shell cannot be built here.
…FORMTXT_ENGINE_WINDOWED is 0

By the owner's decision for every app of the family, a Windows build of the engine gives PyInstaller --noconsole, as FormWeb's does. FormTxt had no switch; FORMTXT_ENGINE_WINDOWED is the family's name, on unless it is 0. On macOS and Linux nothing changes. The engine entry already puts the null device where a stream is missing, so --selfcheck and serving work with no standard output.

setup/freeze_backend: one line. setup/freeze_backend.bat: two lines before the PyInstaller line and the variable in it. backend/HASHOUT_LOG.md has the reason.

Run: bash -n on setup/freeze_backend; the batch file read line by line, its line endings unchanged. No Windows build has shown it.
…e Code, Codex and Cursor

An Antigravity tab in the terminal dock is given its own key by the engine, as the Codex and Cursor tabs are, so it is already allowed without asking; the sentence under Outside agents in Preferences now says so, with the four programs in the family's order. FormTxt carries no translations of Preferences.

Program path: FormTxt has no Preferences field or stored value for where Claude Code is (the finder's setting is always None; the environment overrides already cover all four programs), so there is nothing to add for the other three.

frontend/src/ui/prefs/dialog.ts: one sentence. frontend/HASHOUT_LOG.md has the reason.
…Cursor and Antigravity

frontend/src/dock/ is copied whole from FormVis 23b01889, every file with MANIFEST.json. The guide's two sentences about Claude Code now say that Codex, Cursor and Antigravity each get a button of their own when they are on this computer. FormTxt pins no module version in its checks and has no translations of the panel's sentences.

frontend/HASHOUT_LOG.md has the entry.

Run: backend/tests/test_dock_manifest.py, 7 passed; setup/agents.py check clean.
Version sites, as 0.36.0 did them: README.md (badge and line), backend/app/__init__.py, frontend/package.json, frontend/package-lock.json (the project's two fields), frontend/src/version.ts, src-tauri/Cargo.toml, src-tauri/Cargo.lock (formtxt's own version), src-tauri/tauri.conf.json, the current build version in backend/HASHOUT_LOG.md and frontend/HASHOUT_LOG.md, and the CHANGELOG entry.

Run on the tip before this commit: backend suite 223 passed; npm ci --dry-run, npm audit 0 vulnerabilities, typecheck and build passed; compileall, --selfcheck and the engine probe passed; shell syntax, agents check, mcpb check, icon rules and the markdown check clean; the window check 2 passed; the Windows type check of the shell exit 0, no error, no warning. After the bump: tests/test_f5_boot.py, test_f4_versions.py, test_versions_protection.py and test_dock_manifest.py passed, mcpb check stamps 0.37.0, agents check clean.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 20, 2026 08:55
@nodemode-ai
nodemode-ai merged commit 8b86dda into main Nov 20, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the feat/sprint-finish-0.37.0 branch November 20, 2026 22:16
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