Skip to content

FormVFX 0.58.0: starting and stopping cleanly on Windows, engine side only - #15

Merged
nodemode-ai merged 3 commits into
mainfrom
feat/windows-start-0.58.0
Nov 20, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
feat/windows-start-0.58.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormVFX 0.58.0: starting and stopping cleanly on Windows, engine side only

Three commits on top of merged main (0.57.0). The engine side of the family's Windows start work, as built in FormTools 0.10.0, plus one small change in the desktop shell. The Windows job object and the full failure text are not in this release; they are listed under Held.

What changes for people

  • One FormVFX per data folder. The engine the app starts now holds a lock in its data folder. A second copy of the app is told, in a sentence, that FormVFX is already open, and the first one keeps working.
  • A leftover engine no longer blocks the app. If an engine of this version is still running after its app has gone, the next start ends it and takes over.
  • The engine leaves with the app. As before, the engine watches the app that started it and stops when the app is gone; it now also gives up its lock and its discovery record on the way out.
  • A double click on the engine opens the app. A packaged engine started on its own opens FormVFX and exits, or says that it is a part of FormVFX and serves nothing on its own.
  • A start that fails is said before the app goes. The sentence is shown first and the loading window closes after it; it used to be the other way round.
  • A log. The app's engine writes Logs/formvfx-engine.log in the data folder, and keeps error output there too when it has no console.
  • Unchanged on purpose: an engine an agent starts in the background (--headless) takes no lock and writes no log, so the app still opens beside it. The development launcher is not affected.

How it was checked

All on Linux, with the compositing engine installed, stand-in app processes and stand-in agent programs only.

  • The scenarios with the real engine entry: a second engine refused with exit code 2 and the sentence while the first kept answering; the engine gone 1.3 s after its stand-in app ended, lock and record removed; a stopped leftover ended and replaced after 5.7 s; damaged and foreign lock files replaced; started alone as a packaged engine it opened the stand-in app (two install layouts) or said the sentence (exit code 4); a data folder that cannot be made gives one sentence and exit code 5; with all three streams closed it served and kept both log files; a background engine served with no lock and no log.
  • Every job of the pull request workflow that can run on Linux here, on a scratch clone:
Job On the commit before the version On the release commit
test (pytest tests -q) 220 passed 219 passed, 1 failed (see below)
engine (compile, self-check, agents sync --check, boot with the HTTP and MCP probes) all exit 0, 29 tools all exit 0, 29 tools
interface (npm ci, npm audit, npm run build with tsc) exit 0, 0 vulnerabilities exit 0, 0 vulnerabilities
window (the browser check) 2 passed 2 passed
scripts (shell syntax, text lint, py_compile, text presets) all exit 0, 0 findings all exit 0, 0 findings
desktop-shell not runnable here; cargo metadata --locked exit 0 cargo metadata --locked exit 0
  • The one failure on the release commit is the machine, not the code: tests/test_f5_boot.py::test_core_reports_the_repository_version compares the installed compositing engine's version with the repository's. The engine installed on the build machine was built at 0.57.0 and could not be rebuilt in the time (a full Rust compile). The workflow builds it from the commit, where native/fvx-core/Cargo.toml says 0.58.0, which is the value the engine reports. The same test passed on the commit before the version change.

Not run

  • Nothing ran on Windows or macOS. Every Windows branch of the new start code (process checks, ending a process tree, the wait on the app's process) is unrun.
  • The desktop shell was not compiled; the first compile is the pull request's desktop-shell job. The change there is one string and two statements in another order.
  • No packaged (frozen) engine was built; "packaged" above was the engine entry told that it is frozen.
  • No real agent program was started.
  • Only a Windows machine can show: that the failure sentence is seen before the app goes; that an ordinary quit and ending the app in Task Manager leave no engine behind; that a double click on the engine opens the app; that a leftover engine of this version is replaced at the next start.

Held

  • The Windows job object that ends the engine however the app ends (win_job.rs), and its wiring.
  • The failure text with the engine's last lines, its exit code and the log's path (engine_start.rs), and a limit on the wait for the engine's address.
  • A sentence when the main window fails to build (that path still only closes the loading window).
  • Bringing the first window forward on a second start (needs the single-instance plugin, a new crate).
  • Each Antigravity tab in a folder of its own: two Antigravity tabs still share one entry in the agent workspace file.
  • An engine of 0.57.0 or older that outlived its app is not found by the new engine, because those versions kept no lock. They do watch their app, so this should be rare.

Merge

Merge with a merge commit. Do not squash and do not rebase-merge.

… its app and opens the app when started alone

The family's Windows start pattern, engine side. backend/app/core/startup.py is FormTools's file at its origin/main with formvfx's names at the top; backend/app/core/runtime.py (the log file, claim, release) and backend/tests/test_startup.py are new; backend/formvfx_engine.py gets prepare, watch_shell and leave, and loses its own _alive and _watch_parent.

The engine the shell starts (the entry without --headless) now makes the data folder and starts Logs/formvfx-engine.log before anything else (exit 5 with a sentence when it cannot), keeps an absent standard error in Logs/formvfx-engine-errors.log, opens the app and exits when it is frozen and was started without one (exit 0, or 4 with a sentence), takes engine.lock by the family's rules (exit 2 with the sentence when another engine with a live app holds it; an engine whose app is gone is ended and replaced), and leaves when its app ends. The variable it watches stays FORMVFX_PARENT_PID, which the released shell already sets.

Kept as released: an engine started with --headless takes no lock and writes no log, because the app's own agent relay starts one from the frozen program and the app must still open beside it.

Ran on Linux, native core installed, stand-in shells and stand-in agent programs only: the scenarios listed in backend/HASHOUT_LOG.md, all seen; then tests/test_startup.py, 15 passed. Not run: Windows, macOS, a frozen engine, the desktop shell.
src-tauri/src/main.rs, the arm that runs when the engine gave no address and key: the sentence is shown first and the loading window is closed only after it returns; it was closed first. The sentence says that FormVFX may already be open, since only one copy can use the data folder now, and where the engine's log is.

The shell already gives the engine its process id in FORMVFX_PARENT_PID, the variable the engine watches, so nothing else was needed for the engine side.

Not compiled: the desktop shell cannot be built here. One string, and two statements in another order. Not run on any system.

Held: the Windows job object, the failure text with the engine's last lines and exit code, a limit on the wait for the address, a sentence when the main window fails to build. backend/HASHOUT_LOG.md lists them.
Version sites, the same fifteen files as the last release: README.md (badge and the Version line), backend/app/__init__.py, frontend/package.json, frontend/package-lock.json (both fields), frontend/src/version.ts, native/fvx-core/Cargo.toml, Cargo.lock (the fvx-core entry) and pyproject.toml, src-tauri/Cargo.toml, Cargo.lock (the formvfx entry) and tauri.conf.json, docs/EXTENSIONS.md, and the version string in the three built demo scripts (demo/assets/demo.js, demos/keying/assets/keying.js, demos/motion/assets/motion.js), each changed by hand.

Left alone: the SECURITY.md supported versions row (0.55.x), the older log headings that say "unreleased", and the wry crate at 0.57.0 in src-tauri/Cargo.lock, which is not this project. No CHANGELOG in this repo; the last release made none.

Ran before this commit, on a scratch clone of the commit before it, with the native core installed and stand-in agent programs only: every job of the pull request workflow that can run on Linux here. backend pytest tests -q, 220 passed; compileall and the engine's self-check; agents sync --check, in step; the engine boot with the HTTP and MCP probes; npm ci, npm audit (0 vulnerabilities) and npm run build with tsc; the browser window check, 2 passed; shell syntax, the text lint (0 findings), py_compile of the setup scripts, the text preset check; cargo metadata --locked in src-tauri and native/fvx-core. After the bump: the version, agent manifest and dock manifest test files, 14 passed; the manifest check, in step; both lock files still in step.

Not run: the desktop shell was not compiled (no WebKit libraries on this machine); nothing on Windows or macOS; no real agent program; no frozen engine.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 20, 2026 05:56
@nodemode-ai
nodemode-ai merged commit ae255ad into main Nov 20, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the feat/windows-start-0.58.0 branch November 20, 2026 22:14
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