Repository navigation
FormPDF 0.63.0: starting and stopping cleanly on Windows (engine side only), and a folder for each Antigravity tab - #13
Merged
Conversation
…n (0.63.0) Every Antigravity tab wrote its formpdf_tab entry into the one agent folder, so a second tab took the first one's entry and closing one touched the other's. A tab now starts in agent-tabs/antigravity/<id> under the data folder, its entry is written there, and at close the entry, the emptied file and the emptied folder are removed; a folder that holds anything else is kept. Run with a stand-in agy through the real routes: two tabs at once had their own folder, entry and token; closing one ended its token and removed its folder and left the other's file and token unchanged. tests/test_dock_contract.py: 13 passed. The test that read the entry from the agent folder is replaced by one for two tabs. Not run: a real agy, Windows, macOS.
… gone, and keeps a log (0.63.0) The family's Windows start and stop pattern, engine side. core/startup.py is FormTools's file with formpdf's names. The entry now makes the data folder and starts Logs/formpdf-engine.log first (exit 5 with one sentence when it cannot), keeps an absent standard error in a file, opens the app when a frozen engine is started alone (or says it serves nothing on its own, exit 4), takes engine.lock by the family's rules (a second engine is refused with a sentence, exit 2; an engine left without its app is ended and replaced), and leaves within about two seconds when the process in FORMPDF_SHELL_PID ends. formpdf had no lock and no log file before; uvicorn app.main:app takes no lock and gets the log. Run on Linux with stand-ins for the shell and the app: every row above, the three closed-stream starts, damaged locks and an unrelated process in the lock. tests/test_startup.py (FormTools's tests with formpdf's names, plus three), test_window_key.py and test_f5_boot.py: 48 passed. Not run: Windows, macOS, a really frozen engine. The shell does not set FORMPDF_SHELL_PID yet, so in the app as built today a frozen engine opens the app and stops unless that variable or FORMPDF_NO_SHELL=1 is set: the shell side has to land with this.
The engine watches the process in FORMPDF_SHELL_PID and a frozen engine that is given none opens the app and serves nothing, so the shell sets the variable to its own process id where it starts the engine. One line in main.rs. The rest of the shell-side pattern (the Windows job object, the failure text, the wait limit, the dialog before the last window closes) is not built. Not compiled: the desktop shell cannot be built here; the line was read against the .env calls beside it. Not run on Windows or macOS.
…w closes (0.63.0) src-tauri/src/main.rs, the branch taken when the engine gave no address and key: the message is shown first and the loading window is closed only after it returns. It was closed first, and at that moment it is the app's only window, so on Windows the person could see nothing. The sentence says that a copy of FormPDF may already be open, since only one engine can use the data folder now, and where the engine's log is. Not compiled: the desktop shell cannot be built here. One string, and one existing statement moved below the call it stood above. Not run on any system. Held: the rest of the family's shell side (the Windows job object, the failure text with the engine's last lines and exit code, a limit on the wait for the address). frontend/HASHOUT_LOG.md entries 130 and 131 say so.
Bumps every version site from 0.62.0 to 0.63.0, the same set as 0.62.0: frontend and demo package.json and package-lock.json (both fields each), version.ts, backend __version__, src-tauri Cargo.toml, the formpdf entry in Cargo.lock, tauri.conf.json, the README badge, the version field in the two skill SKILL.md files under .claude (their .agents mirrors written by agents sync), and the version string in the tracked demo bundles demo/assets/demo.js and demos/protect/assets/protect.js (hand-edited, not rebuilt). The repo has no CHANGELOG. Verified on this tree before the commit: backend pytest 195 passed (including test_f4_versions), tsc --noEmit clean, agents sync --check in step; git grep -F 0.62.0 outside the HASHOUT logs prints nothing. On the commit before it, every job of the pull request workflow was rehearsed on a clone: scripts clean, compileall and --selfcheck exit 0, the engine booted on 8198 and answered health and version, 195 passed, npm ci, npm audit (0 vulnerabilities) and npm run build exit 0, the window check 3 passed. The desktop shell was not compiled, and nothing was run on Windows or macOS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FormPDF 0.63.0: starting and stopping cleanly on Windows (engine side only), and a folder for each Antigravity tab
This branch sits on merged
main(0.62.0) and covers the five commits after it. It brings the engine side of the Windows start and stop work that FormTools 0.10.0 has, and the two small changes in the desktop shell that the engine side cannot do without. The Windows job object and the full failure text are not in; see Held.What changes for people
The engine and the app start and stop together
Logs/formpdf-engine.login the data folder (Formpdfin your home folder unless you set another). An error that stops the engine is written there first. When the engine has no error stream of its own, as in a Windows build without a console, its errors go toLogs/formpdf-engine-errors.log.formpdf-engine) opens FormPDF and stops, or says that it is a part of FormPDF when no app is beside it. It no longer starts a server nobody uses.A start that fails is said
Antigravity tabs
formpdf_tabentry. Before, two Antigravity tabs shared one entry: the second tab took over the first one's access to FormPDF's tools, and closing either one took it from the other.How it was checked
Every job of the pull request workflow was rehearsed on a clone of the release commit (
16cfdec), Python 3.12.3, Node 22:bash -nover the workflow's file list; the workflow's em dash and emoji scan overgit ls-filescleanpip install -r requirements.txt,python -m compileall -q app formpdf_engine.py,python formpdf_engine.py --selfcheck, the engine booted on 8198 and asked for/api/healthand/api/versionpython -m pytest tests -q -p no:cacheproviderinbackendnpm ci,npm audit,npm run buildpython -m pytest frontend/tests/window -q -p no:cacheproviderThe workflow has no lint step.
./formpdf agents sync --check: in step.Seen on Linux with stand-ins (a
sleepprocess as the app, a shell script as the app program, a stand-inagy); no real agent program was started:Not run
src-tauri/src/main.rschanges in three places: one added.env("FORMPDF_SHELL_PID", std::process::id().to_string())beside its two twins, one message string, and one existing statement (close_splash(&handle);) moved below the dialog call it stood above. Each was read against the code around it; no new name, type or crate.agyreads.agents/mcp_config.jsonfrom the folder it is started in was not seen.Only a Windows machine can show: that the engine built without a console starts at all; that no
formpdf-engineis left in Task Manager after a quit and after the app is ended there; that the failure message is on screen before the loading window goes; that a double click onformpdf-engine.exeopens FormPDF and shows no console window. The test plan's section "Starting and stopping on Windows" lists each as a step.Held
win_job.rs). Until it is in, the engine's own watch on the app covers this, and a program started by a terminal tab may outlive an app that was ended by force.engine_start.rs). Today's message is one fixed sentence whatever the reason.agent-tabs/antigravitywith its file. The token in it counts for nothing once the engine has stopped. Folders are not swept at start.For the owner to know: the app as built depends on the shell's
FORMPDF_SHELL_PIDline. A packaged engine that is given no such variable takes itself for one opened on its own, opens the app and serves nothing. FormPDF has no CHANGELOG; none was created.Merge
Merge with a merge commit. Do not squash and do not rebase-merge.