Repository navigation
FormTxt 0.37.0: the engine ends with the app on Windows, a failed start says why - #14
Merged
Merged
Conversation
…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.
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.
FormTxt 0.37.0: the engine ends with the app on Windows, a failed start says why
What a person now gets:
FORMTXT_ENGINE_WINDOWED=0gives the old console build.Merge with a merge commit, so that every commit of this branch stays on main as it is.
Held
Not run
Checks rehearsed