From 50607bae808c6a9142afbba57b7e5797c8d12d21 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Fri, 20 Nov 2026 02:30:30 -0500 Subject: [PATCH 1/8] fix(engine): an engine that has ended but was not yet collected 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 with "could not stop an engine that was left running". 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. The same change FormCut made in the family's start-up file. Seen on Linux with PROC pointed at a folder that does not exist: the new test fails with that sentence before the change and passes after it; tests/test_startup.py 16 passed. Not run on macOS. --- backend/HASHOUT_LOG.md | 11 +++++++++++ backend/app/core/startup.py | 19 ++++++++++++++++++- backend/tests/test_startup.py | 19 +++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index 03215bf8..bbbee25c 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -299,6 +299,17 @@ Not done, on purpose: the single-instance plugin (a new crate). A second start i Proved here: a scratch crate that takes `engine_start.rs` and `win_job.rs` by path passed `cargo check --target x86_64-pc-windows-msvc` with no error (rustc on this machine, windows-sys 0.61.2); `cargo test` on Linux ran the module's unit tests and FormTools's loop tests over `read_port` and `engine_exit_code` cut from this `main.rs` with `awk`, behind a stand-in `tauri` module. The `Cargo.lock` line was added by hand and proved with `cargo update --workspace --offline` on a scratch copy of `Cargo.toml` and the old lock: the result is the same file. `main.rs` as a whole was read against FormTools's, not compiled: `engine_program`, `start_engine`, `open_main`, `engine_failed` and the start in `setup` have never been built. +### app/core/startup.py · finished, gone_by +- refers-to: app/core/startup.py :: finished (new), gone_by; tests/test_startup.py :: test_a_holder_that_has_ended_but_was_not_collected_counts_as_gone_where_there_is_no_proc +- kind: warning-context +- logged: v0.55.0 · 2026-11-20 + +FormCut's macOS check found this in the family's file, and formlit carries the same file. Ending a leftover engine waits until it is gone (`end`, `gone_by`). `_alive_posix` asks `kill(pid, 0)`, which still answers for a process that has ended and that its parent has not collected, and it tells such a process apart only by reading `/proc`, which macOS does not have. So on macOS the wait ran out and the start was refused with "formlit could not stop an engine that was left running". It happens when the leftover engine's own parent is alive and slow to collect it; in a test the holder is the test's child, so it always happens. + +`finished(pid)` asks `ps -o stat= -p ` only where there is no `/proc` (never on Windows, never on Linux) and answers true for a state that starts with `Z`. `gone_by` stops waiting when the process is not alive or is finished. `alive` is unchanged, so the watch on the app (every two seconds) starts no program. + +Seen on Linux with `PROC` pointed at a folder that does not exist: with `finished` in the file and not yet used by `gone_by`, the new test failed with that sentence after ten seconds; with the change it passes, and the whole file is 16 passed. Not run on macOS. + --- ## app/core/config.py {#core-config} diff --git a/backend/app/core/startup.py b/backend/app/core/startup.py index 35794a4d..0358fe81 100644 --- a/backend/app/core/startup.py +++ b/backend/app/core/startup.py @@ -194,9 +194,26 @@ def same(pid: int, born: float) -> bool: return alive(pid) and (not born or (seen > 0 and abs(seen - born) <= SLACK)) +def finished(pid: int) -> bool: + if WINDOWS or os.path.isdir(PROC): + return False + try: + told = subprocess.run( + ["ps", "-o", "stat=", "-p", str(pid)], + stdin=subprocess.DEVNULL, + capture_output=True, + text=True, + timeout=END_WAIT, + check=False, + ) + except (OSError, subprocess.SubprocessError): + return False + return told.stdout.strip().startswith("Z") + + def gone_by(pid: int, seconds: float) -> bool: until = time.monotonic() + seconds - while alive(pid): + while alive(pid) and not finished(pid): if time.monotonic() >= until: return False time.sleep(STEP) diff --git a/backend/tests/test_startup.py b/backend/tests/test_startup.py index b04a4628..d42fb126 100644 --- a/backend/tests/test_startup.py +++ b/backend/tests/test_startup.py @@ -130,6 +130,25 @@ def test_the_two_ways_of_reading_a_start_time_agree(monkeypatch): assert startup.created(4_000_000) == 0.0 +def test_a_holder_that_has_ended_but_was_not_collected_counts_as_gone_where_there_is_no_proc(tmp_path, monkeypatch): + from app.core import startup + + monkeypatch.setattr(startup, "PROC", "/nonexistent") + engine, shell, mine = stand_in(), stand_in(), stand_in() + try: + assert not startup.finished(engine.pid) + (tmp_path / startup.LOCK_NAME).write_text(json.dumps(record(startup, engine, shell))) + stop(shell) + path, replaced = startup.claim(tmp_path, mine.pid) + assert replaced == engine.pid + assert startup.finished(engine.pid) + assert json.loads(path.read_text())["pid"] == os.getpid() + monkeypatch.setattr(startup, "PROC", "/proc") + assert not startup.finished(engine.pid) + finally: + stop(engine, shell, mine) + + def test_the_engine_serves_and_logs_with_its_three_streams_closed(tmp_path): proc = subprocess.Popen(["sh", "-c", 'exec "$0" formlit_engine.py <&- >&- 2>&-', sys.executable], cwd=BACKEND, env=engine_env(tmp_path)) log = tmp_path / "Logs" / "formlit-engine.log" From ffa0509c8d1580be14e4dc3cddb8a78289667fd1 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Fri, 20 Nov 2026 02:45:03 -0500 Subject: [PATCH 2/8] fix(desktop): the shell waits 90 seconds for its engine, and a Windows engine has no console The owner's two decisions for the whole family. The wait for the engine's address is 90 seconds (it was 120), and the dialog's sentence says so. Both freeze scripts give PyInstaller --noconsole on Windows unless FORMLIT_ENGINE_WINDOWED=0, so the packaged engine opens no console window; macOS and Linux builds are unchanged. The engine's entry already replaces a missing output stream, so --selfcheck still runs in a build without one. Seen: bash -n on setup/freeze_backend; the .bat was read. The scratch crate that takes engine_start.rs and win_job.rs passed cargo check for x86_64-pc-windows-msvc and cargo test (4 unit tests, 5 loop tests, the silent engine running out after 90.00 s). No Windows build was made. --- backend/HASHOUT_LOG.md | 11 +++++++++++ setup/freeze_backend | 4 +++- setup/freeze_backend.bat | 4 +++- src-tauri/src/engine_start.rs | 4 ++-- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index bbbee25c..257dc7b3 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -310,6 +310,17 @@ FormCut's macOS check found this in the family's file, and formlit carries the s Seen on Linux with `PROC` pointed at a folder that does not exist: with `finished` in the file and not yet used by `gone_by`, the new test failed with that sentence after ten seconds; with the change it passes, and the whole file is 16 passed. Not run on macOS. +### src-tauri/src/engine_start.rs · ADDRESS_WAIT; setup/freeze_backend, setup/freeze_backend.bat · the engine without a console +- refers-to: src-tauri/src/engine_start.rs :: ADDRESS_WAIT, tests::a_wait_that_runs_out_says_how_long_and_for_what; setup/freeze_backend :: windowed; setup/freeze_backend.bat :: WINDOWED +- kind: decision +- logged: v0.55.0 · 2026-11-20 + +Logged here because `src-tauri` and `setup` have no log of their own. The owner's decision for the whole family: the shell waits 90 seconds for the engine's address, in every app. formlit had 120 s, chosen in 0.54.0 for a slow first start of its one-file engine; it is 90 s now, and the dialog's sentence says "waited 90 seconds". + +The owner's decision for the whole family: a Windows engine is packaged with no console window, as FormWeb's is. Both freeze scripts give PyInstaller `--noconsole` on Windows unless `FORMLIT_ENGINE_WINDOWED=0`; macOS and Linux builds are unchanged. `formlit_engine.py` already replaces a missing `sys.stdin`, `sys.stdout` or `sys.stderr` with the null device before anything else (see the entry "the engine starts without output streams"), so `--selfcheck`, which the scripts run on the built engine, does not stop on a stream that is `None`. + +Proved here: `bash -n setup/freeze_backend`; the `.bat` was read, not run. The scratch crate's loop test for a silent engine ran out after 90 s. No Windows build has shown the windowed engine. + --- ## app/core/config.py {#core-config} diff --git a/setup/freeze_backend b/setup/freeze_backend index 923d1f44..5d5f729c 100755 --- a/setup/freeze_backend +++ b/setup/freeze_backend @@ -13,9 +13,11 @@ if [ "$(fl_os)" = macos ]; then gpl="$(python -c 'import pathlib, cv2; print("\n".join(str(p) for p in pathlib.Path(cv2.__file__).parent.rglob("*") if any(k in p.name.lower() for k in ("libx264", "libx265", "librubberband", "libvidstab", "libpostproc"))))' 2>/dev/null | head -1)" [ -z "$gpl" ] || fl_die "GPL FFmpeg library in OpenCV: $gpl. Reinstall opencv from source without FFmpeg: PIP_NO_BINARY=opencv-python,opencv-python-headless CMAKE_ARGS=-DWITH_FFMPEG=OFF pip install --force-reinstall -r requirements_macos.txt" fi +windowed=() +if [ "$(fl_os)" = windows ] && [ "${FORMLIT_ENGINE_WINDOWED:-1}" != 0 ]; then windowed=(--noconsole); fi rm -rf build/pyinstaller dist-engine export PYTHONPATH="$FORMLIT_ROOT/backend${PYTHONPATH:+${sep}$PYTHONPATH}" -pyinstaller --noconfirm --clean --onefile --name formlit-engine \ +pyinstaller --noconfirm --clean --onefile ${windowed[@]+"${windowed[@]}"} --name formlit-engine \ --distpath dist-engine --workpath build/pyinstaller --specpath build/pyinstaller --paths "$FORMLIT_ROOT/backend" \ --add-data "$FORMLIT_ROOT/frontend/dist${sep}frontend_dist" \ --add-data "$FORMLIT_ROOT/shared${sep}shared" \ diff --git a/setup/freeze_backend.bat b/setup/freeze_backend.bat index bd9f9858..13195ef2 100644 --- a/setup/freeze_backend.bat +++ b/setup/freeze_backend.bat @@ -12,7 +12,9 @@ cd backend if exist build\pyinstaller rmdir /s /q build\pyinstaller if exist dist-engine rmdir /s /q dist-engine set "PYTHONPATH=%ROOT%\backend;%PYTHONPATH%" -pyinstaller --noconfirm --clean --onefile --name formlit-engine --distpath dist-engine --workpath build\pyinstaller --specpath build\pyinstaller --paths "%ROOT%\backend" --add-data "%ROOT%\frontend\dist;frontend_dist" --add-data "%ROOT%\shared;shared" --hidden-import app.engine.cmd_library --hidden-import app.engine.cmd_develop --hidden-import app.engine.presets --hidden-import app.engine.cmd_ai --hidden-import app.engine.cmd_output --hidden-import app.engine.agents --hidden-import app.engine.cmd_terminal --hidden-import app.engine.claude_code --hidden-import app.engine.cmd_analyze --hidden-import app.engine.preset_library --hidden-import app.engine.cmd_workflow --hidden-import app.engine.cmd_templates --hidden-import app.engine.cmd_chat --hidden-import app.engine.template_library --hidden-import app.output.export_library --hidden-import app.routers.mcp_workflows --collect-all winpty --hidden-import app.output.services.webdav --hidden-import app.output.services.s3 --collect-submodules uvicorn --collect-all rawpy --collect-all llvmlite --collect-submodules numba --hidden-import cv2 --collect-all reportlab --collect-all onnxruntime --hidden-import tifffile --collect-all imagecodecs --collect-submodules app --collect-submodules paramiko --collect-all pikepdf --collect-submodules keyring --exclude-module pillow_heif "%ROOT%\backend\formlit_engine.py" || exit /b 1 +set "WINDOWED=--noconsole" +if "%FORMLIT_ENGINE_WINDOWED%"=="0" set "WINDOWED=" +pyinstaller --noconfirm --clean --onefile %WINDOWED% --name formlit-engine --distpath dist-engine --workpath build\pyinstaller --specpath build\pyinstaller --paths "%ROOT%\backend" --add-data "%ROOT%\frontend\dist;frontend_dist" --add-data "%ROOT%\shared;shared" --hidden-import app.engine.cmd_library --hidden-import app.engine.cmd_develop --hidden-import app.engine.presets --hidden-import app.engine.cmd_ai --hidden-import app.engine.cmd_output --hidden-import app.engine.agents --hidden-import app.engine.cmd_terminal --hidden-import app.engine.claude_code --hidden-import app.engine.cmd_analyze --hidden-import app.engine.preset_library --hidden-import app.engine.cmd_workflow --hidden-import app.engine.cmd_templates --hidden-import app.engine.cmd_chat --hidden-import app.engine.template_library --hidden-import app.output.export_library --hidden-import app.routers.mcp_workflows --collect-all winpty --hidden-import app.output.services.webdav --hidden-import app.output.services.s3 --collect-submodules uvicorn --collect-all rawpy --collect-all llvmlite --collect-submodules numba --hidden-import cv2 --collect-all reportlab --collect-all onnxruntime --hidden-import tifffile --collect-all imagecodecs --collect-submodules app --collect-submodules paramiko --collect-all pikepdf --collect-submodules keyring --exclude-module pillow_heif "%ROOT%\backend\formlit_engine.py" || exit /b 1 dist-engine\formlit-engine.exe --selfcheck || ( echo [formlit] the frozen engine failed its selfcheck; nothing was copied to src-tauri\binaries & exit /b 1 ) if not exist "%ROOT%\src-tauri\binaries" mkdir "%ROOT%\src-tauri\binaries" copy /y dist-engine\formlit-engine.exe "%ROOT%\src-tauri\binaries\formlit-engine-%TRIPLE%.exe" >nul || exit /b 1 diff --git a/src-tauri/src/engine_start.rs b/src-tauri/src/engine_start.rs index 60a58d75..6e10b29f 100644 --- a/src-tauri/src/engine_start.rs +++ b/src-tauri/src/engine_start.rs @@ -4,7 +4,7 @@ use std::time::Duration; pub const APP: &str = "FormLit"; pub const SHELL_ENV: &str = "FORMLIT_SHELL_PID"; -pub const ADDRESS_WAIT: Duration = Duration::from_secs(120); +pub const ADDRESS_WAIT: Duration = Duration::from_secs(90); pub const KEY_WAIT: Duration = Duration::from_secs(10); pub const EXIT_WAIT: Duration = Duration::from_secs(1); pub const EXIT_STEP: Duration = Duration::from_millis(50); @@ -159,7 +159,7 @@ mod tests { #[test] fn a_wait_that_runs_out_says_how_long_and_for_what() { - assert!(sentence(&Failure::TimedOut(Wait::Address)).contains("waited 120 seconds for its engine to say which address it serves on")); + assert!(sentence(&Failure::TimedOut(Wait::Address)).contains("waited 90 seconds for its engine to say which address it serves on")); assert!(sentence(&Failure::TimedOut(Wait::Key)).contains("waited 10 seconds for its engine to hand over the key for the window")); } From 5d12e0152e690dda87cae8883548253089bbb9f6 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Fri, 20 Nov 2026 02:51:47 -0500 Subject: [PATCH 3/8] feat(agents): a stored path for Codex, Cursor and Antigravity, sealed like Claude Code's formlit kept a path for Claude Code that the finder tries first, protected by the settings seal and changed only from the window. Codex, Cursor and Antigravity now have the same: codexBin, cursorBin and antigravityBin, under the same seal, window-only and refused to an agent, and the finder is given each one first. A hand edit of any of them reads as empty and the seal as broken. Settings sealed by an older formlit stay valid while the new paths are empty, so the update does not put agent access back to "Ask me". Seen: tests/test_window_key.py and tests/test_dock_contract.py, 26 and 16 passed (the new test for each of the three programs: sealed, found by the setting, a hand edit caught; the two contract tests now name the setting as the first place looked). The fields in the Preferences window are held. --- backend/app/core/prefs.py | 3 +++ backend/app/core/seal.py | 10 ++++++---- backend/app/engine/claude_code.py | 3 ++- backend/app/engine/commands.py | 2 +- backend/app/routers/mcp.py | 2 +- backend/tests/test_dock_contract.py | 4 ++-- backend/tests/test_window_key.py | 25 +++++++++++++++++++++++++ 7 files changed, 40 insertions(+), 9 deletions(-) diff --git a/backend/app/core/prefs.py b/backend/app/core/prefs.py index e192571d..537b689f 100644 --- a/backend/app/core/prefs.py +++ b/backend/app/core/prefs.py @@ -11,6 +11,9 @@ "outsideAgents": "ask", "claudeFolder": "", "claudeBin": "", + "codexBin": "", + "cursorBin": "", + "antigravityBin": "", "claudeFirstMessage": "", } CHOICES: dict[str, tuple] = {"outsideAgents": ("ask", "allowed", "blocked")} diff --git a/backend/app/core/seal.py b/backend/app/core/seal.py index b9198d70..07aa5d46 100644 --- a/backend/app/core/seal.py +++ b/backend/app/core/seal.py @@ -7,7 +7,9 @@ ACCOUNT = "settings-seal" FIELD = "seal" REPORTS = ("seal", "sealBroken") -SEALED = ("outsideAgents", "claudeBin") +PATHS = ("claudeBin", "codexBin", "cursorBin", "antigravityBin") +LATER = ("codexBin", "cursorBin", "antigravityBin") +SEALED = ("outsideAgents",) + PATHS _CACHE: dict = {"tried": False, "available": False, "key": None} @@ -35,12 +37,12 @@ def _load(create: bool) -> bytes | None: def digest(values: dict, key: bytes) -> str: - body = json.dumps({k: values.get(k) for k in SEALED}, sort_keys=True, separators=(",", ":"), ensure_ascii=False) + body = json.dumps({k: values.get(k) for k in SEALED if k not in LATER or values.get(k)}, sort_keys=True, separators=(",", ":"), ensure_ascii=False) return hmac.new(key, body.encode("utf-8"), hashlib.sha256).hexdigest() def loosened(values: dict) -> bool: - return values.get("outsideAgents") == "allowed" or bool(str(values.get("claudeBin") or "").strip()) + return values.get("outsideAgents") == "allowed" or any(str(values.get(k) or "").strip() for k in PATHS) def effective(stored: dict) -> dict: @@ -53,7 +55,7 @@ def effective(stored: dict) -> dict: return {**out, "seal": "ok", "sealBroken": False} if not loosened(stored): return {**out, "seal": "unsealed", "sealBroken": False} - out.update(outsideAgents="blocked" if stored.get("outsideAgents") == "blocked" else "ask", claudeBin="") + out.update(outsideAgents="blocked" if stored.get("outsideAgents") == "blocked" else "ask", **{k: "" for k in PATHS}) return {**out, "seal": "broken", "sealBroken": True} diff --git a/backend/app/engine/claude_code.py b/backend/app/engine/claude_code.py index f33343fe..3129da39 100644 --- a/backend/app/engine/claude_code.py +++ b/backend/app/engine/claude_code.py @@ -43,7 +43,8 @@ def _runnable(path: str) -> bool: def setting(kind: str) -> str | None: - return _pref("claudeBin") if kind == "claude" else None + key = agent_lookup.PROGRAMS.get(kind, {}).get("setting") + return _pref(key) if key else None def otherwise(kind: str) -> str: diff --git a/backend/app/engine/commands.py b/backend/app/engine/commands.py index 2e3385c6..6f3e5375 100644 --- a/backend/app/engine/commands.py +++ b/backend/app/engine/commands.py @@ -27,7 +27,7 @@ class Spec: FROM_WINDOW: contextvars.ContextVar[bool] = contextvars.ContextVar("formlit_from_window", default=False) WINDOW_GROUPS = {"terminal", "claudecode", "chat"} WINDOW_IDS = {"agents.respond", "editIn.addApp", "photo.editIn"} -WINDOW_PREFS = {"outsideAgents", "claudeBin", "claudeFirstMessage", "claudeFolder", "editors"} +WINDOW_PREFS = {"outsideAgents", "claudeBin", "codexBin", "cursorBin", "antigravityBin", "claudeFirstMessage", "claudeFolder", "editors"} WINDOW_REFUSED = "Only the formlit window can do this" diff --git a/backend/app/routers/mcp.py b/backend/app/routers/mcp.py index 94f26f0e..5ec1fa2c 100644 --- a/backend/app/routers/mcp.py +++ b/backend/app/routers/mcp.py @@ -55,7 +55,7 @@ ] + [{"name": k, "title": v["title"], "description": v["description"], "arguments": []} for k, v in WORKFLOWS.items()] ALLOW_DELETE = os.environ.get("FORMLIT_MCP_ALLOW_DELETE") == "1" BLOCKED = {"photo.delete", "folder.remove", "catalog.open", "catalog.create", "agents.respond", "demo.open"} -PERSON_PREFS = {"outsideAgents", "claudeBin", "claudeFirstMessage", "claudeFolder", "editors"} +PERSON_PREFS = {"outsideAgents", "claudeBin", "codexBin", "cursorBin", "antigravityBin", "claudeFirstMessage", "claudeFolder", "editors"} WINDOW_ONLY = {"terminal", "claudecode", "chat", "extensions"} LIST_CACHE = {"ttlMs": 60_000, "cacheScope": "private"} SESSIONS: dict[str, str] = {} diff --git a/backend/tests/test_dock_contract.py b/backend/tests/test_dock_contract.py index 03309c0f..eef8d826 100644 --- a/backend/tests/test_dock_contract.py +++ b/backend/tests/test_dock_contract.py @@ -208,7 +208,7 @@ def test_one_call_reports_the_four_agent_programs(client, stand_ins): assert found[kind] == found[kind] | {"installed": True, "path": str(stand_ins / binary), "version": "9.9.9", "signedIn": signed, "finding": "runs", "how": "path"} assert found[kind]["install"] and found[kind]["title"] assert found["antigravity"] == found["antigravity"] | {"installed": False, "path": None, "finding": "missing", "signedIn": None, "title": "Antigravity"} - assert found["antigravity"]["said"].startswith("Antigravity was not found. Looked in: PATH (") + assert found["antigravity"]["said"].startswith("Antigravity was not found. Looked in: your setting (empty); PATH (") def test_a_missing_program_comes_with_its_install_line(client, none_found): @@ -216,7 +216,7 @@ def test_a_missing_program_comes_with_its_install_line(client, none_found): for kind in ("codex", "cursor", "antigravity"): assert found[kind] == found[kind] | {"installed": False, "path": None, "version": None, "signedIn": None, "finding": "missing"} assert found[kind]["install"] and found[kind]["install"] in found[kind]["said"] - assert found[kind]["looked"][0] == "PATH (/usr/bin:/bin)" and "~/.local/bin" in found[kind]["looked"][1] + assert found[kind]["looked"][:2] == ["your setting (empty)", "PATH (/usr/bin:/bin)"] and "~/.local/bin" in found[kind]["looked"][2] assert found["claude"]["looked"][0] == "your setting (empty)" and found["claude"]["said"].endswith(", or give its path in Preferences.") reply = run(client, "terminal.openAgent", {"kind": "codex"}) assert reply.status_code == 400 and reply.json()["error"] == found["codex"]["said"] diff --git a/backend/tests/test_window_key.py b/backend/tests/test_window_key.py index a9cdd050..3f5cbee2 100644 --- a/backend/tests/test_window_key.py +++ b/backend/tests/test_window_key.py @@ -148,6 +148,31 @@ def test_a_hand_edit_of_agent_access_is_caught(client, stand_in_keyring): assert prefs.load()["seal"] == "ok" +@pytest.mark.parametrize("key,kind", [("codexBin", "codex"), ("cursorBin", "cursor"), ("antigravityBin", "antigravity")]) +def test_the_other_programs_paths_are_sealed_and_given_to_the_finder_first(client, stand_in_keyring, tmp_path, key, kind): + from app.core import config, prefs, seal + from app.engine import claude_code + + program = tmp_path / kind + program.write_text("#!/bin/sh\n") + program.chmod(0o755) + prefs.update({"outsideAgents": "ask", "claudeBin": "", key: ""}) + path = config.data_dir() / "preferences.json" + stored = json.loads(path.read_text()) + assert stored[seal.FIELD] == seal.digest({k: stored.get(k) for k in ("outsideAgents", "claudeBin")}, seal._load(False)) + prefs.update({key: str(program)}) + assert prefs.load()["seal"] == "ok" and claude_code.setting(kind) == str(program) + found = claude_code.agent_lookup.find(kind, setting=claude_code.setting(kind), env={"PATH": ""}, shell_timeout=0) + assert found.path == str(program) and found.how == "setting" + raw = json.loads(path.read_text()) + raw[key] = "/somewhere/else" + path.write_text(json.dumps(raw)) + seen = prefs.load() + assert seen["sealBroken"] is True and seen[key] == "" and claude_code.setting(kind) == "" + prefs.update({key: ""}) + assert prefs.load()["seal"] == "ok" + + def test_without_a_keychain_the_stored_choice_stands(client, monkeypatch): import sys From b8d50a64a766bca8860994f566c35719faa85fab Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Fri, 20 Nov 2026 02:55:40 -0500 Subject: [PATCH 4/8] docs(log): the reasons for the sealed paths of Codex, Cursor and Antigravity The HASHOUT entry for 4a2f257, which went in without it: the three new stored paths, why an empty one stays out of the sealed text (settings sealed by an older formlit stay valid), and the Preferences fields that are held. --- backend/HASHOUT_LOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index 257dc7b3..ade4d981 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -2008,6 +2008,19 @@ The in-app token was one value for the whole engine run (`agents.INAPP_TOKEN`), `preferences.json` carries `seal`, HMAC-SHA256 over the canonical JSON of `outsideAgents` and `claudeBin`, with a random 32-byte key kept by `keyring` (service `formlit`, account `settings-seal`, made on first use). `prefs.update` signs only when the patch names a sealed field; the window-only `prefs.set` and `agents.respond` are the only callers that do. `prefs.load` reports `seal` (`ok`, `unsealed`, `broken` or `unavailable`) and `sealBroken`. When the seal is missing or wrong while either field is looser than the default (`outsideAgents` allowed, or a `claudeBin`), the engine acts as `ask` with no custom program until the window writes them again; that includes the first launch after this change for a person who had allowed agents. `keyring` is imported inside a try in `_load`, so a missing package, no backend (the Linux sandbox has only the fail backend) or a locked keychain gives `unavailable` and the stored values stand. +### app/core/seal.py · PATHS, LATER, SEALED, digest, loosened, effective; app/core/prefs.py · DEFAULTS; app/engine/claude_code.py · setting; app/engine/commands.py · WINDOW_PREFS; app/routers/mcp.py · PERSON_PREFS +- refers-to: the names above; tests/test_window_key.py :: test_the_other_programs_paths_are_sealed_and_given_to_the_finder_first; tests/test_dock_contract.py :: the two "looked" assertions +- kind: decision +- logged: v0.55.0 · 2026-11-20 + +The stored path for Claude Code (`claudeBin`) now has three siblings, `codexBin`, `cursorBin` and `antigravityBin`, the setting names the family's finder (`agent_lookup.PROGRAMS`) already reads. They are stored the same way: in `preferences.json`, under the same seal, window-only (`WINDOW_PREFS`), and refused to an agent's `prefs.set` (`PERSON_PREFS`). A hand edit of any of the four reads as empty with `sealBroken`, as `claudeBin` did. `claude_code.setting(kind)` gives the finder the stored path for every program, so the finder looks there first ("your setting (empty)" is now the first place it names for Codex, Cursor and Antigravity too; the two dock contract tests that named PATH first now name the setting first). + +`digest` leaves a `LATER` field out of the sealed text while it is empty. So a `preferences.json` sealed by 0.54.0 or older still reads as `ok` (the test checks the stored seal against a digest of the two old fields); without that, a person who had allowed agents would have been put back to "Ask me" by the update. A non-empty `LATER` field is in the sealed text, so writing one by hand breaks the seal. + +Held: the three fields are not in the Preferences window yet; each would need its label in all 25 language tables. `otherwise` still offers "give its path in Preferences" for Claude Code only, so no sentence points to a field that is not there. + +This entry came one commit after the code (4a2f257): the edit that wrote it failed and the commit went ahead without it. + ### setup/cli.py · rpc, run_command, main - refers-to: ../setup/cli.py :: rpc, run_command, main - kind: fix From 2b5e4a3b3d7afd0fe93ca254fac38718808061a5 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Fri, 20 Nov 2026 03:01:56 -0500 Subject: [PATCH 5/8] feat(dock): the panel is module 2.2.1, its guide names Codex, Cursor and Antigravity The first-run guide's two sentences for a computer that has Claude Code now also say that Codex, Cursor and Antigravity each get a button of their own when they are on this computer. The folder is FormVis's at 23b01889, every file copied unchanged; the module test expects 2.2.1. formlit does not translate the panel's sentences, so no language table changed. Seen: ./formlit agents sync --check in step; tests/test_dock_module.py 8 passed. --- backend/tests/test_dock_module.py | 2 +- frontend/HASHOUT_LOG.md | 7 +++++++ frontend/src/dock/CONTRACT.md | 6 +++++- frontend/src/dock/MANIFEST.json | 6 +++--- frontend/src/dock/strings.ts | 4 ++-- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/backend/tests/test_dock_module.py b/backend/tests/test_dock_module.py index f2cae32b..cc9ca0b8 100644 --- a/backend/tests/test_dock_module.py +++ b/backend/tests/test_dock_module.py @@ -40,7 +40,7 @@ def test_the_shared_dock_folder_is_the_one_its_manifest_describes(): sync = sync_script() assert sync.dock_module_drift() == [] held = json.loads((sync.DOCK_MODULE / "MANIFEST.json").read_text(encoding="utf-8")) - assert held["module"] == "dock" and held["version"] == "2.2.0" + assert held["module"] == "dock" and held["version"] == "2.2.1" def test_a_changed_or_foreign_file_in_the_dock_folder_is_named(tmp_path, monkeypatch): diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index db725b06..bbc1fc96 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -1221,6 +1221,13 @@ Checked: `npx tsc --noEmit` passes. Not seen in a window or a browser. ## Four agent programs (unreleased, after v0.52.0) {#four-agent-programs} +### src/dock/ at module 2.2.1 +- refers-to: src/dock/ (every file); ../backend/tests/test_dock_module.py :: test_the_shared_dock_folder_is_the_one_its_manifest_describes +- kind: explainer +- logged: v0.55.0 · 2026-11-20 + +`src/dock/` is FormVis's folder at formvis commit 23b01889, module 2.2.1, each of its 16 files written out with `git show` and none edited here. Only the guide changed: its two sentences for a computer that has Claude Code end with "Codex, Cursor and Antigravity each get a button of their own here when they are on this computer." formlit's language tables carry no translation of the panel's sentences, so nothing else changed. The adapter is unchanged. `./formlit agents sync --check` says in step; `tests/test_dock_module.py` 8 passed. + ### src/dock/ at module 2.2.0 · src/dock-adapter.ts · src/modules/shared/terminal.ts - refers-to: src/dock/ (16 entries with MANIFEST.json, copied unchanged); src/dock-adapter.ts :: EngineProgram, record, formlitDock (its type, tabs, agentStatus); src/modules/shared/terminal.ts :: mounted, registerTerminal - kind: feat diff --git a/frontend/src/dock/CONTRACT.md b/frontend/src/dock/CONTRACT.md index a52a17e4..81f3a052 100644 --- a/frontend/src/dock/CONTRACT.md +++ b/frontend/src/dock/CONTRACT.md @@ -1,6 +1,6 @@ # The dock's engine contract -Module version 2.2.0. This file travels with the shared dock folder and is the same in every app. +Module version 2.2.1. This file travels with the shared dock folder and is the same in every app. The dock's frontend never talks to an engine. It calls the functions of `DockAdapter` (adapter.ts), and each app's adapter turns them into its engine's routes, sockets or event streams. This file says what an engine has to provide so that an adapter can deliver each function, in words that do not depend on the engine's language. Paths, header names and transports are each app's own. Where a clause says "the adapter", the engine may do the work instead; where it says "the engine", the adapter cannot make it up. @@ -68,6 +68,10 @@ An adapter written for 2.1.0 compiles and behaves as before: copying the 2.2.0 f - **Part names.** Every control of the module carries `data-dock-part`; the attribute and the names are `DOCK_PUBLIC.partAttribute`, `parts` and `partsByKind` (`launch.[kind]`, `menu.launch.[kind]`, `tab.[kind]`). Automation and command layers use these and no class name. - **A status line for a tab.** A terminal record may carry `status`, and a channel may give `onStatus(handler)` and call the handler with new text ("reconnecting", an exit code). The text of the tab in front shows in the head between the tabs and the buttons, clipped; an empty string clears it. +## Module 2.2.1 + +The guide's two sentences for a computer that has Claude Code (`tourInstalledBody` and `tourReadyBody`) now end by naming the other three programs: "Codex, Cursor and Antigravity each get a button of their own here when they are on this computer." Nothing else in the folder changed, and an adapter written for 2.2.0 needs no change; an app that translates the module's sentences translates these two again. + ## The manifest `MANIFEST.json` in this folder lists the module version and the SHA-256 of every other file here, this one included. The source app (FormVis) writes it; every other app only checks it: read the file names and hashes from the manifest, hash each file's bytes, and fail naming any file that differs, is missing or is extra. The check is small enough to write in any language an app's tools use. diff --git a/frontend/src/dock/MANIFEST.json b/frontend/src/dock/MANIFEST.json index 819f4eaa..c2ee1fa1 100644 --- a/frontend/src/dock/MANIFEST.json +++ b/frontend/src/dock/MANIFEST.json @@ -1,8 +1,8 @@ { "module": "dock", - "version": "2.2.0", + "version": "2.2.1", "files": { - "CONTRACT.md": "ccef67fcf0017569c0bf68df0eae2e1e3ddf376117ac929789b803713c427df6", + "CONTRACT.md": "9791fa9d5eb7ef7e09543d34c2d097cfe6559b7fa1792f251afb9abfa7ac0bd7", "adapter.ts": "1128c16892424485fe68bb2bf92ebc7229a9c2ff749db2fcd2419662d9c3ada9", "agents.ts": "db666d1042555f8bbda4a697dbfc475df23779d0c5a25abd532bcfa43ae81043", "chat.ts": "994878030b9fbff729734d34e2baa5b018e7d0b8555c24bfb7c98962c50446fa", @@ -14,7 +14,7 @@ "keys.ts": "1adfc7daefa35b0e6eb8957250dca3926ded1c59fd51db7d60da6346caf0d561", "placement.ts": "0f7e03ef0b720af07995111f30dcb5ed124529d44cf5cb67ae4bfb1f96c7f880", "state.ts": "bef508e8343737f67adfbd7ae8cb8efb446968dfd4e7e0aff37da11f996955d7", - "strings.ts": "19a6a32f235b61dfed6179e2271a6d599f4357c9a6b9c09118bb65990d1e114f", + "strings.ts": "3654a59c4d005125e248dd322f467d4ad3c513f4fd86f6dfe76f5565408ac50e", "terminal.ts": "8bf886a7ad4dc69323e803acc13641a66e1d8614e9b85a6a60977fa30d8a56fc", "tour.ts": "2f83994051f4370c5d1630a827b4539eb12fd50e7fe9531f5641a4bf75615782" } diff --git a/frontend/src/dock/strings.ts b/frontend/src/dock/strings.ts index 1aae8163..ec8296cf 100644 --- a/frontend/src/dock/strings.ts +++ b/frontend/src/dock/strings.ts @@ -84,13 +84,13 @@ export const STRINGS = { tourChatTitle: 'Ask for something in plain words', tourChatBody: 'Type what you want in this line, for example "{example}", and press Enter. Claude does it in {app}.', tourInstalledTitle: 'Claude Code is installed', - tourInstalledBody: 'Claude Code is installed. The robot button here opens it; the first time, it may ask you to sign in.', + tourInstalledBody: 'Claude Code is installed. The robot button here opens it; the first time, it may ask you to sign in. Codex, Cursor and Antigravity each get a button of their own here when they are on this computer.', tourMissingTitle: 'Claude Code is not on this computer yet', tourMissingBody: 'For the bigger jobs, {app} uses a free program called Claude Code. To add it, copy the line below, open your computer\'s command window, paste it and press Enter.', tourSignInTitle: 'Sign in to Claude Code once', tourSignInBody: 'Claude Code is installed but not signed in. Press the robot button here: a window opens where you type /login and follow the steps. You only do this once.', tourReadyTitle: 'Claude Code is ready', - tourReadyBody: 'Claude Code is installed and signed in. The robot button here opens it when you want it to take on a bigger job.', + tourReadyBody: 'Claude Code is installed and signed in. The robot button here opens it when you want it to take on a bigger job. Codex, Cursor and Antigravity each get a button of their own here when they are on this computer.', tourAskTitle: 'You decide what other programs may change', tourAskBody: 'If another AI program on this computer wants to change your {noun}, {app} asks you first in a box in the middle of the window. Choose Deny, Allow once or Always allow. You can change your answer later under Outside agents in the menu here.', tourSideTitle: 'Put the panel where you like it', From cb113305aaf6c06730252e9cd308bee0c98a6f64 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Fri, 20 Nov 2026 03:14:52 -0500 Subject: [PATCH 6/8] fix(i18n): the Preferences note on registering formlit names all four agent programs The developers' note in Preferences said that ./formlit agents install registers formlit with Claude Code, Codex and Cursor; it also registers it with Antigravity, and now says so. The sentence is a lookup key, so the key and its translation in all 25 language tables changed together. No native speaker has read the new translations. Seen: every changed table parses as JSON. The panel's guide sentences came with the module 2.2.1 copy. --- frontend/src/i18n/keys.json | 2 +- frontend/src/i18n/locales/cs.json | 2 +- frontend/src/i18n/locales/da.json | 2 +- frontend/src/i18n/locales/de.json | 2 +- frontend/src/i18n/locales/es-MX.json | 2 +- frontend/src/i18n/locales/es.json | 2 +- frontend/src/i18n/locales/fi.json | 2 +- frontend/src/i18n/locales/fr-CA.json | 2 +- frontend/src/i18n/locales/fr.json | 2 +- frontend/src/i18n/locales/hu.json | 2 +- frontend/src/i18n/locales/id.json | 2 +- frontend/src/i18n/locales/it.json | 2 +- frontend/src/i18n/locales/ja.json | 2 +- frontend/src/i18n/locales/ko.json | 2 +- frontend/src/i18n/locales/nb.json | 2 +- frontend/src/i18n/locales/nl.json | 2 +- frontend/src/i18n/locales/pl.json | 2 +- frontend/src/i18n/locales/pt-BR.json | 2 +- frontend/src/i18n/locales/ru.json | 2 +- frontend/src/i18n/locales/sv.json | 2 +- frontend/src/i18n/locales/th.json | 2 +- frontend/src/i18n/locales/tr.json | 2 +- frontend/src/i18n/locales/uk.json | 2 +- frontend/src/i18n/locales/vi.json | 2 +- frontend/src/i18n/locales/zh-Hans.json | 2 +- frontend/src/i18n/locales/zh-Hant.json | 2 +- frontend/src/ui/preferences.ts | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/frontend/src/i18n/keys.json b/frontend/src/i18n/keys.json index 2f247711..f182ecab 100644 --- a/frontend/src/i18n/keys.json +++ b/frontend/src/i18n/keys.json @@ -2619,7 +2619,7 @@ "h:Favorites", "hours from UTC", "ids must name at least one photo other than the reference", -"in the formlit repository to register it with Claude Code, Codex and Cursor.", +"in the formlit repository to register it with Claude Code, Codex, Cursor and Antigravity.", "input, select, .cv-btn-primary:not(:disabled)", "input, select, textarea", "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/cs.json b/frontend/src/i18n/locales/cs.json index 1665385d..1635d256 100644 --- a/frontend/src/i18n/locales/cs.json +++ b/frontend/src/i18n/locales/cs.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "hodin od UTC", "2619": "ids musí uvádět alespoň jednu jinou fotografii než referenci", -"2620": "v repozitáři formlit, abyste jej zaregistrovali v Claude Code, Codexu a Cursoru.", +"2620": "v repozitáři formlit, abyste jej zaregistrovali v Claude Code, Codexu, Cursoru a Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/da.json b/frontend/src/i18n/locales/da.json index 0079519d..d4458c89 100644 --- a/frontend/src/i18n/locales/da.json +++ b/frontend/src/i18n/locales/da.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "timer fra UTC", "2619": "ids skal angive mindst ét andet foto end referencen", -"2620": "i formlit-repositoriet for at registrere det i Claude Code, Codex og Cursor.", +"2620": "i formlit-repositoriet for at registrere det i Claude Code, Codex, Cursor og Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json index e97eb134..84c24193 100644 --- a/frontend/src/i18n/locales/de.json +++ b/frontend/src/i18n/locales/de.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "Stunden von UTC", "2619": "ids muss mindestens ein anderes Foto als die Referenz benennen", -"2620": "im formlit-Repository, um es bei Claude Code, Codex und Cursor zu registrieren.", +"2620": "im formlit-Repository, um es bei Claude Code, Codex, Cursor und Antigravity zu registrieren.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/es-MX.json b/frontend/src/i18n/locales/es-MX.json index 5d6f70cd..3f8ab21b 100644 --- a/frontend/src/i18n/locales/es-MX.json +++ b/frontend/src/i18n/locales/es-MX.json @@ -2619,7 +2619,7 @@ "2617": "h:Favoritos", "2618": "horas respecto a UTC", "2619": "ids debe nombrar al menos una foto distinta de la de referencia", -"2620": "en el repositorio de formlit para registrarlo con Claude Code, Codex y Cursor.", +"2620": "en el repositorio de formlit para registrarlo con Claude Code, Codex, Cursor y Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json index 04f29067..fba761e5 100644 --- a/frontend/src/i18n/locales/es.json +++ b/frontend/src/i18n/locales/es.json @@ -2619,7 +2619,7 @@ "2617": "h:Favoritos", "2618": "horas respecto a UTC", "2619": "ids debe nombrar al menos una foto distinta de la de referencia", -"2620": "en el repositorio de formlit para registrarlo con Claude Code, Codex y Cursor.", +"2620": "en el repositorio de formlit para registrarlo con Claude Code, Codex, Cursor y Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/fi.json b/frontend/src/i18n/locales/fi.json index 7f11786b..e061a7d8 100644 --- a/frontend/src/i18n/locales/fi.json +++ b/frontend/src/i18n/locales/fi.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "tuntia UTC:stä", "2619": "ids:n on nimettävä vähintään yksi muu kuva kuin vertailukuva", -"2620": "formlit-repositoriossa rekisteröidäksesi sen Claude Codeen, Codexiin ja Cursoriin.", +"2620": "formlit-repositoriossa rekisteröidäksesi sen Claude Codeen, Codexiin, Cursoriin ja Antigravityyn.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/fr-CA.json b/frontend/src/i18n/locales/fr-CA.json index 27ed697b..d1dfb26b 100644 --- a/frontend/src/i18n/locales/fr-CA.json +++ b/frontend/src/i18n/locales/fr-CA.json @@ -2619,7 +2619,7 @@ "2617": "h:Favoris", "2618": "heures par rapport à UTC", "2619": "ids doit désigner au moins une photo autre que la référence", -"2620": "dans le dépôt formlit pour l’enregistrer auprès de Claude Code, Codex et Cursor.", +"2620": "dans le dépôt formlit pour l’enregistrer auprès de Claude Code, Codex, Cursor et Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/fr.json b/frontend/src/i18n/locales/fr.json index 27ed697b..d1dfb26b 100644 --- a/frontend/src/i18n/locales/fr.json +++ b/frontend/src/i18n/locales/fr.json @@ -2619,7 +2619,7 @@ "2617": "h:Favoris", "2618": "heures par rapport à UTC", "2619": "ids doit désigner au moins une photo autre que la référence", -"2620": "dans le dépôt formlit pour l’enregistrer auprès de Claude Code, Codex et Cursor.", +"2620": "dans le dépôt formlit pour l’enregistrer auprès de Claude Code, Codex, Cursor et Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/hu.json b/frontend/src/i18n/locales/hu.json index d015096e..dbbf0ead 100644 --- a/frontend/src/i18n/locales/hu.json +++ b/frontend/src/i18n/locales/hu.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "óra az UTC-től", "2619": "az ids legalább egy, a referenciától eltérő fotót nevezzen meg", -"2620": "a formlit tárolóban, hogy regisztrálja a Claude Code, a Codex és a Cursor számára.", +"2620": "a formlit tárolóban, hogy regisztrálja a Claude Code, a Codex, a Cursor és az Antigravity számára.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/id.json b/frontend/src/i18n/locales/id.json index 00bb3a04..3b54802f 100644 --- a/frontend/src/i18n/locales/id.json +++ b/frontend/src/i18n/locales/id.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorit", "2618": "jam dari UTC", "2619": "ids harus menyebut setidaknya satu foto selain referensi", -"2620": "di repositori formlit untuk mendaftarkannya ke Claude Code, Codex, dan Cursor.", +"2620": "di repositori formlit untuk mendaftarkannya ke Claude Code, Codex, Cursor, dan Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/it.json b/frontend/src/i18n/locales/it.json index 13899773..28df452e 100644 --- a/frontend/src/i18n/locales/it.json +++ b/frontend/src/i18n/locales/it.json @@ -2619,7 +2619,7 @@ "2617": "h:Preferiti", "2618": "ore rispetto a UTC", "2619": "ids deve indicare almeno una foto diversa da quella di riferimento", -"2620": "nel repository di formlit per registrarlo con Claude Code, Codex e Cursor.", +"2620": "nel repository di formlit per registrarlo con Claude Code, Codex, Cursor e Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/ja.json b/frontend/src/i18n/locales/ja.json index 7df48745..52c1df70 100644 --- a/frontend/src/i18n/locales/ja.json +++ b/frontend/src/i18n/locales/ja.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "UTCからの時間差", "2619": "ids には、参照写真以外の写真を少なくとも1枚指定する必要があります", -"2620": "formlitリポジトリ内で実行すると、Claude Code、Codex、Cursorに登録されます。", +"2620": "formlitリポジトリ内で実行すると、Claude Code、Codex、Cursor、Antigravityに登録されます。", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json index bcdbdd77..f01d0843 100644 --- a/frontend/src/i18n/locales/ko.json +++ b/frontend/src/i18n/locales/ko.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "UTC와의 시간 차이", "2619": "ids에는 참조 사진 외의 사진이 하나 이상 있어야 합니다", -"2620": "formlit 저장소에서 실행하면 Claude Code, Codex, Cursor에 등록됩니다.", +"2620": "formlit 저장소에서 실행하면 Claude Code, Codex, Cursor, Antigravity에 등록됩니다.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/nb.json b/frontend/src/i18n/locales/nb.json index 4bbb531a..f570c719 100644 --- a/frontend/src/i18n/locales/nb.json +++ b/frontend/src/i18n/locales/nb.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "timer fra UTC", "2619": "ids må angi minst ett annet bilde enn referansen", -"2620": "i formlit-repositoriet for å registrere det i Claude Code, Codex og Cursor.", +"2620": "i formlit-repositoriet for å registrere det i Claude Code, Codex, Cursor og Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/nl.json b/frontend/src/i18n/locales/nl.json index 54f09f3e..1772db88 100644 --- a/frontend/src/i18n/locales/nl.json +++ b/frontend/src/i18n/locales/nl.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "uren ten opzichte van UTC", "2619": "ids moet minstens één andere foto dan de referentie noemen", -"2620": "in de formlit-repository om het te registreren bij Claude Code, Codex en Cursor.", +"2620": "in de formlit-repository om het te registreren bij Claude Code, Codex, Cursor en Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/pl.json b/frontend/src/i18n/locales/pl.json index 356c0844..8311f3dc 100644 --- a/frontend/src/i18n/locales/pl.json +++ b/frontend/src/i18n/locales/pl.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "godziny względem UTC", "2619": "ids musi wskazywać co najmniej jedno zdjęcie inne niż wzorzec", -"2620": "w repozytorium formlit, aby zarejestrować go w Claude Code, Codex i Cursor.", +"2620": "w repozytorium formlit, aby zarejestrować go w Claude Code, Codex, Cursor i Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/pt-BR.json b/frontend/src/i18n/locales/pt-BR.json index f0341000..1f30fca7 100644 --- a/frontend/src/i18n/locales/pt-BR.json +++ b/frontend/src/i18n/locales/pt-BR.json @@ -2619,7 +2619,7 @@ "2617": "h:Favoritos", "2618": "horas em relação ao UTC", "2619": "ids deve nomear pelo menos uma foto diferente da referência", -"2620": "no repositório do formlit para registrá-lo no Claude Code, Codex e Cursor.", +"2620": "no repositório do formlit para registrá-lo no Claude Code, Codex, Cursor e Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/ru.json b/frontend/src/i18n/locales/ru.json index 62b4c1da..e70ace66 100644 --- a/frontend/src/i18n/locales/ru.json +++ b/frontend/src/i18n/locales/ru.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "часов от UTC", "2619": "ids должны указывать хотя бы одно фото, кроме эталонного", -"2620": "в репозитории formlit, чтобы зарегистрировать его в Claude Code, Codex и Cursor.", +"2620": "в репозитории formlit, чтобы зарегистрировать его в Claude Code, Codex, Cursor и Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/sv.json b/frontend/src/i18n/locales/sv.json index 2040cbb8..0d727dc1 100644 --- a/frontend/src/i18n/locales/sv.json +++ b/frontend/src/i18n/locales/sv.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "timmar från UTC", "2619": "ids måste ange minst ett annat foto än referensen", -"2620": "i formlit-förrådet för att registrera det i Claude Code, Codex och Cursor.", +"2620": "i formlit-förrådet för att registrera det i Claude Code, Codex, Cursor och Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/th.json b/frontend/src/i18n/locales/th.json index d369c877..34fe4e5b 100644 --- a/frontend/src/i18n/locales/th.json +++ b/frontend/src/i18n/locales/th.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "ชั่วโมงจาก UTC", "2619": "ids ต้องระบุรูปภาพอย่างน้อยหนึ่งรูปที่ไม่ใช่รูปอ้างอิง", -"2620": "ในรีโพซิทอรี formlit เพื่อลงทะเบียนกับ Claude Code, Codex และ Cursor", +"2620": "ในรีโพซิทอรี formlit เพื่อลงทะเบียนกับ Claude Code, Codex, Cursor และ Antigravity", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/tr.json b/frontend/src/i18n/locales/tr.json index 7f7efafa..644f6a9d 100644 --- a/frontend/src/i18n/locales/tr.json +++ b/frontend/src/i18n/locales/tr.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "UTC'den saat", "2619": "ids, referans dışında en az bir fotoğrafı belirtmelidir", -"2620": "formlit deposunda çalıştırarak Claude Code, Codex ve Cursor'a kaydedin.", +"2620": "formlit deposunda çalıştırarak Claude Code, Codex, Cursor ve Antigravity'ye kaydedin.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/uk.json b/frontend/src/i18n/locales/uk.json index 3e5e9515..9121a6c1 100644 --- a/frontend/src/i18n/locales/uk.json +++ b/frontend/src/i18n/locales/uk.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "годин від UTC", "2619": "ids мають указувати принаймні одне фото, окрім еталонного", -"2620": "у репозиторії formlit, щоб зареєструвати його в Claude Code, Codex і Cursor.", +"2620": "у репозиторії formlit, щоб зареєструвати його в Claude Code, Codex, Cursor і Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/vi.json b/frontend/src/i18n/locales/vi.json index cf95d18f..6f32954c 100644 --- a/frontend/src/i18n/locales/vi.json +++ b/frontend/src/i18n/locales/vi.json @@ -2619,7 +2619,7 @@ "2617": "h:Yêu thích", "2618": "giờ so với UTC", "2619": "ids phải nêu ít nhất một ảnh khác ảnh tham chiếu", -"2620": "trong kho formlit để đăng ký với Claude Code, Codex và Cursor.", +"2620": "trong kho formlit để đăng ký với Claude Code, Codex, Cursor và Antigravity.", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/zh-Hans.json b/frontend/src/i18n/locales/zh-Hans.json index 9656c282..410c06ba 100644 --- a/frontend/src/i18n/locales/zh-Hans.json +++ b/frontend/src/i18n/locales/zh-Hans.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "距 UTC 的小时数", "2619": "ids 必须至少指定一张参考照片以外的照片", -"2620": "在 formlit 仓库中运行,以将其注册到 Claude Code、Codex 和 Cursor。", +"2620": "在 formlit 仓库中运行,以将其注册到 Claude Code、Codex、Cursor 和 Antigravity。", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/i18n/locales/zh-Hant.json b/frontend/src/i18n/locales/zh-Hant.json index f29e3b04..77c96b88 100644 --- a/frontend/src/i18n/locales/zh-Hant.json +++ b/frontend/src/i18n/locales/zh-Hant.json @@ -2619,7 +2619,7 @@ "2617": "h:Favorites", "2618": "與 UTC 相差的小時數", "2619": "ids 必須至少指定一張參考照片以外的照片", -"2620": "在 formlit 儲存庫中執行,以將其註冊到 Claude Code、Codex 和 Cursor。", +"2620": "在 formlit 儲存庫中執行,以將其註冊到 Claude Code、Codex、Cursor 和 Antigravity。", "2621": "input, select, .cv-btn-primary:not(:disabled)", "2622": "input, select, textarea", "2623": "input, textarea, select, [contenteditable=\"true\"]", diff --git a/frontend/src/ui/preferences.ts b/frontend/src/ui/preferences.ts index 1199a471..830bf095 100644 --- a/frontend/src/ui/preferences.ts +++ b/frontend/src/ui/preferences.ts @@ -72,7 +72,7 @@ class Preferences extends Dialog { for (const [key, input] of Object.entries(this.claude)) { input.addEventListener('change', () => void this.ctx.api.cmd('prefs.set', { values: { [key]: input.value.trim() } }).then(() => this.claudeStatus(), (err) => this.ctx.fail(err))); } - this.body.appendChild(el('

For developers: point an MCP client at this endpoint, or run ./formlit agents install in the formlit repository to register it with Claude Code, Codex and Cursor.

')); + this.body.appendChild(el('

For developers: point an MCP client at this endpoint, or run ./formlit agents install in the formlit repository to register it with Claude Code, Codex, Cursor and Antigravity.

')); this.body.appendChild(this.agents); this.body.appendChild(el('
Engine
')); this.body.appendChild(this.engine); From 245b0cd352d53debf48b7f282892636109a49f58 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Fri, 20 Nov 2026 05:28:40 -0500 Subject: [PATCH 7/8] test(agents): a choice sealed by 0.54.0 stays whole after the update Proved with real files before the release: origin/main's backend wrote preferences.json with agents allowed and a Claude Code path, and the tip's backend read it with the same key as sealed (seal ok, path kept and given to the finder, the three new paths empty). No migration is needed. The new test writes a file of 0.54.0's shape with 0.54.0's seal formula and checks that it reads whole and keeps the path through later writes. Seen: tests/test_window_key.py 27 passed. --- backend/HASHOUT_LOG.md | 7 +++++++ backend/tests/test_window_key.py | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index ade4d981..fe7b8d10 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -2021,6 +2021,13 @@ Held: the three fields are not in the Preferences window yet; each would need it This entry came one commit after the code (4a2f257): the edit that wrote it failed and the commit went ahead without it. +### tests/test_window_key.py · test_a_choice_sealed_by_0_54_0_stays_whole_and_keeps_the_claude_code_path +- refers-to: tests/test_window_key.py :: test_a_choice_sealed_by_0_54_0_stays_whole_and_keeps_the_claude_code_path; app/core/seal.py :: digest, LATER +- kind: test +- logged: v0.55.0 · 2026-11-20 + +The update from 0.54.0 was proved before the release with real files: origin/main's backend (0.54.0) wrote `preferences.json` with agents allowed and a Claude Code path, its seal made with a key kept in a file-backed stand-in keyring; the tip's backend then read the same folder with the same key. It read `seal` `ok`, `sealBroken` false, `outsideAgents` `allowed`, the Claude Code path kept and given to the finder, the three new paths empty; setting a Codex path afterwards signed again with all of it kept. So no migration is needed. The test writes a file of 0.54.0's shape (no new fields, the seal over `outsideAgents` and `claudeBin` only, by 0.54.0's own formula) and checks the same, then that a later write of an unsealed field and of a new path keep the choice and the path, so a change to `digest` that would put people back to "Ask me" on update fails here. + ### setup/cli.py · rpc, run_command, main - refers-to: ../setup/cli.py :: rpc, run_command, main - kind: fix diff --git a/backend/tests/test_window_key.py b/backend/tests/test_window_key.py index 3f5cbee2..8742f1d4 100644 --- a/backend/tests/test_window_key.py +++ b/backend/tests/test_window_key.py @@ -173,6 +173,31 @@ def test_the_other_programs_paths_are_sealed_and_given_to_the_finder_first(clien assert prefs.load()["seal"] == "ok" +def test_a_choice_sealed_by_0_54_0_stays_whole_and_keeps_the_claude_code_path(client, stand_in_keyring, tmp_path): + import hashlib + import hmac + + from app.core import config, prefs, seal + from app.engine import claude_code + + program = tmp_path / "claude" + program.write_text("#!/bin/sh\n") + program.chmod(0o755) + key = seal._load(True) + old = {"editors": [], "slideshowMusic": "", "outsideAgents": "allowed", "claudeFolder": "", "claudeBin": str(program), "claudeFirstMessage": ""} + body = json.dumps({k: old[k] for k in ("outsideAgents", "claudeBin")}, sort_keys=True, separators=(",", ":"), ensure_ascii=False) + path = config.data_dir() / "preferences.json" + path.write_text(json.dumps({**old, "seal": hmac.new(key, body.encode("utf-8"), hashlib.sha256).hexdigest()})) + seen = prefs.load() + assert seen["seal"] == "ok" and seen["sealBroken"] is False + assert seen["outsideAgents"] == "allowed" and seen["claudeBin"] == str(program) and claude_code.setting("claude") == str(program) + assert [seen[k] for k in ("codexBin", "cursorBin", "antigravityBin")] == ["", "", ""] + prefs.update({"claudeFirstMessage": "hello"}) + prefs.update({"codexBin": str(program)}) + seen = prefs.load() + assert seen["seal"] == "ok" and seen["outsideAgents"] == "allowed" and seen["claudeBin"] == str(program) and seen["codexBin"] == str(program) + + def test_without_a_keychain_the_stored_choice_stands(client, monkeypatch): import sys From 69b6e3c05862a79fe8d16e4e7aa8e56a41cd8654 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Fri, 20 Nov 2026 06:05:16 -0500 Subject: [PATCH 8/8] chore(release): 0.55.0 Moves every version site from 0.54.0 to 0.55.0: frontend/package.json, both version fields of frontend/package-lock.json, version.ts, backend __version__, Cargo.toml and its Cargo.lock entry, tauri.conf.json, the README badge, the three HASHOUT_LOG headers, and the supported-versions row of SECURITY.md (0.55.x). The CHANGELOG gains v0.55.0, dated 2026-11-20: an ended engine is seen as gone on macOS, the 90 second wait, no console window for the Windows engine, stored and protected places for Codex, Cursor and Antigravity, the guide and the Preferences note naming all four programs, and the agent choice kept on update. Run before this commit, with the commands of .github/workflows/ci.yml, on e492a43 (scratch copy and local clone): npm ci, npm ci --dry-run, npm audit (0 vulnerabilities), npm run build exit 0; compileall and --selfcheck exit 0; the uvicorn boot answered /api/health and /api/capabilities; the whole backend suite, 413 passed, none deselected (onnxruntime 1.30.0 now in the environment used here); the window tests, 12 passed; bash -n on every script; the em dash and emoji check clean; agents sync --check in step. Run on this tree: test_f4_versions.py, test_f9_release_profiles.py and test_dock_module.py, 13 passed; agents sync --check in step; no 0.54.0 left outside dated history. --- CHANGELOG.md | 11 +++++++++++ README.md | 2 +- SECURITY.md | 2 +- backend/HASHOUT_LOG.md | 2 +- backend/app/__init__.py | 2 +- demo/HASHOUT_LOG.md | 2 +- frontend/HASHOUT_LOG.md | 2 +- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- frontend/src/version.ts | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 13 files changed, 24 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 804e0f04..72858ba3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to formlit. Versions are `v*.*.*`; each release lists what it added, what it fixed and what is not verified yet. +## v0.55.0 · 2026-11-20 + +- Fixed: on macOS, an engine that has just ended is now seen as gone at once, so a quit or a restart of formlit no longer waits on an engine that is already stopped. +- Changed: formlit waits 90 seconds for its engine to start, then says why it could not start. Before, it waited two minutes. +- Changed: on Windows the engine runs without a console window of its own. Its output still goes to its log in the data folder. +- Added: formlit can keep where Codex, Cursor and Antigravity are installed, as it already did for Claude Code, and looks there first. These places are protected the same way as your agent access choice: changed from outside formlit's window, they are ignored and the choice goes back to asking you. +- Changed: the terminal panel's guide says that Codex, Cursor and Antigravity each get a button when they are installed, and the note in Preferences on registering formlit names all four programs, in every language formlit carries. +- Unchanged on update: your agent access choice and the Claude Code path you set stay as they were. +- Known: the places for Codex, Cursor and Antigravity have no field in Preferences yet. +- Checked here, on Linux only, with stand-in programs in place of the agent programs. Nothing was run on Windows or macOS, and the desktop app itself was not built on the machine this was written on. + ## v0.54.0 · 2026-11-19 - Fixed: when formlit cannot start, it says why before it closes. The message gives the reason in a sentence (its engine program is missing, could not be started, stopped, or did not answer in time), the engine's last lines, and where the engine's log is. Before, a failed start showed one fixed sentence or closed with nothing at all. diff --git a/README.md b/README.md index eeafbe69..bc909956 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

- version 0.54.0 + version 0.55.0 TypeScript Python macOS, Windows, Linux diff --git a/SECURITY.md b/SECURITY.md index d5461380..bcbcddab 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -7,7 +7,7 @@ check whether the problem is still there. | Version | Supported | | --- | --- | -| 0.54.x (latest release) | Yes | +| 0.55.x (latest release) | Yes | | Anything older | No | ## Reporting a vulnerability diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md index fe7b8d10..60652804 100644 --- a/backend/HASHOUT_LOG.md +++ b/backend/HASHOUT_LOG.md @@ -2,7 +2,7 @@ Living log of all comment content, explainers, rationale, TODOs and removed code for the engine. Source files stay comment-free; everything they would have said lives here, indexed. Read this first, then edit code surgically. -Current build version: v0.54.0 +Current build version: v0.55.0 Last updated: 2026-11-17 · unreleased: overlay.sharpen views, missingModel on 409 answers with model choices, BiRefNet and SAM 2.1 base plus as the recommended selection models, removable and card flags on file roots and camera roots (#review-gaps); camera import, bundled Lensfun profiles and DCP checks merged from feat/camera-import-profiles (#camera-import-profiles). Before: 2026-11-11 · v0.51.3 a failed move to the Trash leaves no copy behind; a cached thumbnail or preview removed while it is read no longer fails the request; setup picks Python by the interpreter's own architecture, native first on Apple silicon (#v0-51-3). Before: 2026-11-10 · v0.51.2 the i18n review covers the demo strings; clean --all removes the venv on Windows whatever else is there; the MCP status names the engine's real port; chat and first messages that start with a dash reach Claude Code as text; FTP makes relative remote folders; eject after import works on Windows; tethered and auto-imported shots count {seq} on; virtual copies follow their master in a copying catalog import; agents install writes a valid Codex config on Windows; session settings find their photos on Windows; video exports check collisions under the name they write; exports stack with their own originals; Rename and Move commit the files that went through when one fails; TIFF orientation and planar TIFFs read one way; agents cannot change the consent and program preferences or open a demo through run_command; TIFF and DNG leave non-ASCII text out of their ASCII tags; Delete from Disk moves each file before it removes the photo (#v0-51-2). Before: 2026-11-10 · v0.51.1 no engine changes (version string only). Before: 2026-11-09 · v0.51.0 demo.open builds the three browser demos as new demo catalogs under Formlit/Demos (#demo-open), _switch_catalog takes publish. Before: 2026-11-07 · v0.50.0 the Form extension host (formext_host.py vendored, cmd_extensions, the extensions router, the files-route guard exemption for GET and HEAD, extensions_list and extension_command); v0.49.3 no backend changes (version string only); v0.49.2 no backend changes (version string only); v0.49.1 no backend changes (version string only); v0.49.0 no backend changes (version string only); 2026-11-05 · v0.48.0 the engine install makes its environment with the same Python choice as the rest of setup (3.13 or 3.12 on Intel Macs), and remakes one an Intel Mac made with 3.14; v0.47.9 the install picks Python 3.12 to 3.14 (3.13 on Intel Macs) and Intel Macs pin the last libraries with Intel builds; 2026-11-04 · v0.47.8 no engine changes (the folder-removal test looks the folder up by its resolved path, as the importer stores it, so it passes on macOS where the temp folder is under the /var symlink); v0.47.7 no engine changes (README in the Form family template, Mackin's #6, merged with main); v0.47.6 no engine changes (version string only); 2026-11-03 · v0.47.5 no engine changes (version string only); 2026-10-31 · v0.47.4 .js, .mjs and .css keep their types on Windows, ffmpeg arrives on first run, the Linux packages pull in the media plugins; 2026-10-30 · v0.47.3 no engine changes (Windows desktop build passes --config, macOS OpenCV pinned, .gitattributes); 2026-10-26 · v0.47.1 the family test suite, no engine changes; 2026-10-23 · v0.46.2 Intelligent Previews and Adaptable preset groups with every built-in id kept (builtin_id), five presets retuned; v0.46.1 no engine changes (releases move to formcompiler, version string only); v0.46.0 no engine changes (the app icon was redrawn, see the frontend log); v0.45.3 no engine changes (LCM DreamShaper and MI-GAN fills measured against LaMa in Remove and not kept; for MI-GAN the mask is 255 to keep, the hole is not blanked, and input must be sRGB: RESEARCH_GENFILL.md); v0.45.2 no engine changes (the SD 1.5 Detail pass was built, measured softer than LaMa and not kept: RESEARCH_GENFILL.md in the sidecar); v0.45.1 no engine changes (generative fill researched and not added: see the sidecar's RESEARCH_GENFILL.md); v0.45.0 Same Surface and Same Depth sample windows, develop.sampleDepth; v0.44.0 Keep Lines for Remove (lines_fill, keep_lines), brush Edge Snap; v0.43.0 control maps (ai.controlMaps, get_control_maps), Remove from the same surface; v0.42.2 no engine changes; v0.42.1 no engine changes; v0.42.0 678 researched presets (978 built in), preset zip packs and group export, Edge Range masks, Remove from the same depth; v0.41.1 no engine changes; v0.41.0 the learned style calibrates itself per control on the person's edits; v0.40.0 PDF/X-1a:2001 passing the preflight gem, Check My Style, the i18n review round trip; v0.39.0 PDF/X-1a with embedded fonts and a self-check, shadows hidden behind the subject; v0.38.0 per-window blend exposure, SFTP, freeze collects all modules, Remove sample-from area, low-sun shadows, CMYK books; v0.37.0 KDP inside margin by page count, proofing pick limit, Send by FTP after export; v0.36.0 Apply My Style (develop.applyStyle, apply_my_style), collapsed-stack filtering, describe smart rule, skin maxSize; v0.35.1 new imports indexed for search; v0.35.0 book PDFs for Lulu, Amazon KDP and IngramSpark; v0.34.1 no engine changes (its user-facing strings are in the window's translation catalogs); v0.34.0 remove controls (shadows and reflections, seeded Refresh, plainest first), remove_object; v0.33.0 flash and window blending, ai.flashBlend, merge_flash_blend; v0.32.0 batch skin retouching, retouch.skin, retouch_skin; v0.31.0 search by description and Find Similar (SigLIP), search.* commands, two MCP tools; v0.30.2 astro sky line at full size, landscape aligned when the camera moved; v0.30.1 astro alignment for wide lenses, checked on a real time-lapse; v0.30.0 client proofing without accounts, astro check on a real photo; v0.29.0 astro stacking; v0.28.0 sessions, settings kept in the session folder, rendered exports without the recipe, MCP session tools; v0.27.0 the learned denoiser (SCUNet); v0.26.3 edge points on AI masks, develop.maskOutline; v0.26.2 hair and skin parts from the parts model, each person apart with the instances model, fills on a crop; v0.26.1 the model features on their real models, four fixes; v0.26.0 skin-tone uniformity, develop.skinPick; v0.25.0 focus stacking; v0.24.0 adjustment layers, addLayer and setLayer; v0.23.0 refine, shift and feather on AI mask components, the refine op; v0.22.0 code replacements, caption variables, required fields; v0.21.0 per-face cull scores, cull.groups, get_cull_groups; v0.20.0 no engine changes; v0.19.0 chat token usage, tool-result images, chat.sessions and chat.adopt, claudecode.open resume; v0.18.0 no engine changes; v0.17.0 photo ids on chat tool events; v0.16.0 chat text, context and note, Stop verified; v0.15.0 the Chat tab's chat.* commands; v0.14.0 Claude Code settings from preferences; v0.13.0 no engine changes; v0.12.0 show_in_window reference; v0.11.0 shoot recipes, templates, noise reduction by ISO, export presets, {shoot} at import; v0.10.0 professional workflow prompts, pro ingest, Refine Photos, version tools, 300 presets; v0.9.1 face-part model requirement, empty masks refused, model pins verified; v0.9.0 match_look, reports on writes, set analysis, save_preset, part masks, a forgiving run_command, 66 more presets; v0.8.0 photo analysis, 134 researched presets, preset previews and search, broken built-in profiles, scaled hues and curves; v0.7.0 the terminal, Claude Code in formlit, the in-app consent token, modern list fields; v0.6.0 outside-agent consent, MCP sessions, the sidecar port; v0.3.4 the preview deadlock, keyword and stack integrity, value ranges; v0.3.3 previews read before answering, search operators; v0.3.2 originals protected, undo moves files, typed parameters, sanitized settings; v0.3.0 look tables, maker notes, DCP baselines, the frozen engine --- diff --git a/backend/app/__init__.py b/backend/app/__init__.py index 42140b64..1679b193 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -1,3 +1,3 @@ """formlit engine: the catalog, the develop pipeline's reference renderer, import, export and the agent surface.""" -__version__ = "0.54.0" +__version__ = "0.55.0" diff --git a/demo/HASHOUT_LOG.md b/demo/HASHOUT_LOG.md index c73aafe4..3232ecca 100644 --- a/demo/HASHOUT_LOG.md +++ b/demo/HASHOUT_LOG.md @@ -2,7 +2,7 @@ Rationale, decisions and removed or never-written comments for the offline demo. Source files stay comment-free. -Current build version: v0.54.0 +Current build version: v0.55.0 ## Why a TypeScript port of the pipeline diff --git a/frontend/HASHOUT_LOG.md b/frontend/HASHOUT_LOG.md index bbc1fc96..4cab5be5 100644 --- a/frontend/HASHOUT_LOG.md +++ b/frontend/HASHOUT_LOG.md @@ -2,7 +2,7 @@ Living log of all comment content, explainers, rationale, TODOs and removed code for the interface. Source files stay comment-free (vendored formvis files keep their upstream headers); everything else they would have said lives here, indexed. Read this first, then edit code surgically. -Current build version: v0.54.0 +Current build version: v0.55.0 Last updated: 2026-11-17 · unreleased: Alt-held Sharpening views, Install Now for missing AI models (recommended or small and fast) and the learned denoiser, Update Lens Profiles with the database in use, removable Windows drives in Import, the new strings in 25 languages (keys17) (#review-gaps); camera roots in Import from feat/camera-import-profiles (#camera-import). Before: 2026-11-11 · v0.51.3 returning to the open photo in Develop cancels a switch still in progress (#v0-51-3). Before: 2026-11-10 · v0.51.2 the dev proxy follows FORMLIT_PORT; only the latest Develop photo switch takes effect; Cmd-click to deselect keeps the active photo; an emptied viewer shows the same photo again; the second window's slideshow timer stops when the mode changes; the desktop second window loads from the engine's origin; Develop tools and AI masks drop an answer for a photo that is no longer open (#v0-51-2). Before: 2026-11-10 · v0.51.1 no interface changes (the lockfile's root version field read 0.49.1 and now follows package.json; version string only). Before: 2026-11-09 · v0.51.0 the three demos open inside the app: Demos on the empty library, Help > Demos... and one Help item per demo, strings in 25 languages (#in-app-demos). Before: 2026-11-08 · v0.50.1 the desktop shell's objc2 and objc2-app-kit moved under `[target.'cfg(target_os = "macos")'.dependencies]` in src-tauri/Cargo.toml (FormVis's table): objc2 stops the build with a compile_error off Apple platforms, which failed the 0.50.0 Windows and Linux builds; every use in reveal.rs was already behind cfg(target_os = "macos") with a no-op twin, Cargo.lock needed no change, and cargo check passes on Linux here. Before: 2026-11-07 · v0.50.0 the extension host (host-bridge.ts vendored, extensions.ts, the Extensions menu and page, consent before the frame); v0.49.3 no changes to frontend/src beyond the version string (the demos in demo/ and demos/ import its modules and keep their own logs); v0.49.2 the splash page, the reveal handshake in dom.ts revealApp and the shell's splash window match formvis; v0.49.1 no changes to frontend/src beyond the version string (the demo's media pass is in demo/); v0.49.0 no changes to frontend/src beyond the version string (the offline demo in demo/ imports its modules and keeps its own log); 2026-11-05 · v0.48.0 no frontend changes (version string only); v0.47.9 no frontend changes (version string only); 2026-11-04 · v0.47.8 no frontend changes (version string only); v0.47.7 no frontend changes (README in the Form family template, Mackin's #6, merged with main); v0.47.6 the title bar and splash screen show the unified app icon (favicon.png); 2026-11-03 · v0.47.5 the About names NodeAgentc, Inc. and links the licence; 2026-10-31 · v0.47.4 no frontend changes (version string only); 2026-10-30 · v0.47.3 no frontend changes (version string only); 2026-10-26 · v0.47.2 the splash caption no longer shifts the mark (FB-110), the left Library panels reserve their empty and fixed rows (FB-111); 2026-10-24 · v0.46.6 About box credit "by nodemode.ai" (ui/about-dialog.ts: a third line in the intro's template, after the description so `q(intro, '.fl-about-line')` still finds the description first; translate="no", the owner's domain is never translated; built with the dialog, so nothing moves when it opens); v0.46.2 About box with Licences and notices (DNG notice), Intelligent Previews and Adaptable preset groups; v0.46.1 no window changes (releases move to formcompiler, version string only); v0.46.0 the app icon redrawn as a lens with iris and bokeh, in the mark, favicon and splash; v0.45.3 no window changes; v0.45.2 no window changes; v0.45.1 no window changes; v0.45.0 Depth Range pick by click, in 25 languages; v0.44.0 Keep Lines, Edge Snap, both in 25 languages, Remove-only rows hidden in Heal and Clone; v0.43.0 Show Control Maps, Same Surface, preset descriptions in all 25 languages; v0.42.2 preset names in all 25 languages, descriptions in 19; v0.42.1 preset names in 16 languages, descriptions in 7; v0.42.0 Export Group, zip import, Edge Range, Same Depth; v0.41.1 thumbnails sized before load, last cold-load shift gone; v0.41.0 no window changes; v0.40.0 Check My Style, reviewers' catalog, new strings in 25 languages; v0.39.0 PDF/X-1a option, Enhance-finish shift fixed to one resize, Develop terminology in 22 languages; v0.38.0 window exposure, SFTP, Sample from, Book Colour, terminology fixes in 12 languages; v0.37.0 People list and toast shifts fixed, plural forms in 25 languages, Send by FTP, Most picks; v0.36.0 Apply My Style, Largest spot, Shows rule, toasts stack on top, v0.36.0 strings in 25 languages; v0.35.1 no window changes; v0.35.0 the window in 26 languages, Language in Preferences, book printers; v0.34.1 translation catalogs for 25 languages (not wired yet); v0.34.0 Remove shadows option, Refresh fixed, Variations row shift fixed; v0.33.0 Flash and Window Blend in the Photo menu; v0.32.0 Retouch Skin in the Photo menu; v0.31.0 Describe filter, Relevance sort, Find Similar Photos; v0.30.2 no window changes; v0.30.1 no window changes; v0.30.0 proofing commands, client comments; v0.29.0 Astro Stack in the Photo menu; v0.28.0 Session panel and session commands; v0.27.0 Enhance names its denoiser; v0.26.3 Edit Edge Points, pending mask entry, Develop photo switch without shift; v0.26.2 no window changes; v0.26.1 Objects mask by click, two shifts logged; v0.26.0 Skin Tone and picker, picker drawer and slider thumb shifts fixed; v0.25.0 Focus Stack in the Photo menu; v0.24.0 the Layers panel and the layer editing target; v0.23.0 mask edge sliders, the Refine Edge Brush; v0.22.0 Code Replacements and Required Fields, the Metadata panel refresh fixed; v0.21.0 the Cull view, the Keywording suggestion shift fixed; v0.20.0 filmstrip collapse and top or bottom, hidden-row fix; v0.19.0 panel drag fix, chat Markdown, token meter and bridge, filmstrip resize, module show and hide; v0.18.0 workspaces, panel hide, reorder and solo, AI icons; v0.17.0 chat photo strips; v0.16.0 chat selection notes; v0.15.0 the Chat tab in the dock; v0.14.0 Claude Code in formlit section in Preferences; v0.13.0 the reference follows its edits, identity in Preferences; v0.12.0 Reference View, template lists in the import and rename dialogs; v0.11.0 template commands, keyword sets from the engine, export preset groups; v0.10.0 Refine Photos in the Library menu; v0.7.0 the terminal dock, Claude Code and the Ask line; v0.6.0 the AI agent access prompt and the Preferences AI agents section; v0.3.3 buttons follow state, shared shortcuts by module, panel header tools, toolbars that fit; v0.3.1 relative white balance; v0.3.0 view geometry, Navigator, dev font preloads --- diff --git a/frontend/package-lock.json b/frontend/package-lock.json index a36e1078..c6cd65c8 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "formlit", - "version": "0.54.0", + "version": "0.55.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "formlit", - "version": "0.54.0", + "version": "0.55.0", "license": "Apache-2.0", "dependencies": { "@fontsource/inter": "5.3.0", diff --git a/frontend/package.json b/frontend/package.json index a85a9202..16310510 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "formlit", "private": true, - "version": "0.54.0", + "version": "0.55.0", "description": "formlit · photo library and raw developer in the form family", "license": "Apache-2.0", "type": "module", diff --git a/frontend/src/version.ts b/frontend/src/version.ts index 7da0b727..c286b80a 100644 --- a/frontend/src/version.ts +++ b/frontend/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.54.0'; +export const VERSION = '0.55.0'; diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index e9c537bf..423c5474 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -893,7 +893,7 @@ dependencies = [ [[package]] name = "formlit" -version = "0.54.0" +version = "0.55.0" dependencies = [ "objc2", "objc2-app-kit", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index b958546b..50f971bc 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "formlit" -version = "0.54.0" +version = "0.55.0" description = "formlit desktop shell" authors = ["NodeAgentc, Inc."] license = "Apache-2.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index a117fbc7..046ecc1a 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "FormLit", - "version": "0.54.0", + "version": "0.55.0", "identifier": "ai.nodemode.formlit", "build": { "frontendDist": "../frontend/dist"