Skip to content

FormPDF 0.62.0: Antigravity is the fourth agent program, and agent programs are found however the app was started - #12

Merged
nodemode-ai merged 32 commits into
mainfrom
fix/window-key-and-redact-scope-0.61.0
Nov 20, 2026
Merged

nodemode-ai merged 32 commits into
mainfrom
fix/window-key-and-redact-scope-0.61.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormPDF 0.61.0: changes from outside the window are refused, honest redaction reports, the shared agent panel, AMOLED Black

What changes for people

Agents and who may change things

  • Changes from outside the app's window are refused. Only the FormPDF window can change agent access (Ask, Allowed, Blocked), choose the Claude program the panel runs, use the terminal panel, turn on a plug-in, change signing identities or trusted certificates, or answer the question about an outside agent. Agents keep working through MCP, and ./formpdf run and ./formpdf cli follow the person's choice like any other outside agent.
  • The saved agent choice is sealed with a key in the system keychain. If the saved choice is changed outside the app, FormPDF treats it as Ask, and Preferences says once that it was reset. Without a usable keychain the seal is skipped and the app works as before.
  • The question an outside agent causes now names the program, says what it asked to do, and offers Deny, Allow once and Always allow. Allow once covers one call. The question closes by itself when another window answers it or when its time runs out, and it comes back after a reload if it is still waiting.

Redaction

  • Redact, find and sanitize report what they actually found and removed. Find says when matches are also in the document's metadata, redact says how many areas and text runs it removed and what is left in metadata, and sanitize says what it removed or that there was nothing to remove.

The terminal and agent panel

  • The panel is now the one the form family shares. It sits at the bottom or on the right, can be resized, and its side, size and open state are remembered. It is hidden with Cmd+J on macOS and Ctrl+J elsewhere, and programs in it keep running.
  • Tabs: shells, Chat, Claude Code, and now Codex and Cursor in their own tabs when they are installed. Each agent tab has its own access, which ends when the tab closes.
  • One ask line under every tab. On Chat it is Chat's input. Under a terminal it asks Claude Code and tells it which PDF and page are open.
  • While Claude is working, text typed in the line stays there instead of being lost.
  • A short guide runs the first time the panel is opened. People who already used the panel are not shown it.
  • Keys typed in the panel stay in the panel: they do not open Help, the command palette or Preferences behind it.

Themes

  • New theme: AMOLED Black, a true-black theme for OLED screens.
  • Terminals that are already open follow a theme change at once.

Desktop app

  • The app gives the engine as long to start as it always had. Once the engine has answered, the app waits at most 10 seconds for the rest of its start-up and otherwise says "The formpdf engine failed to start" instead of opening a window that cannot save.

For people who script FormPDF

  • ./formpdf agents sync also writes agents/manifest.json: which MCP tools FormPDF offers, which only read, which wait for the person's Allow, which skills it ships and what the panel offers. agents sync --check fails when the file is out of date.
  • The MCP entry the app writes for its own tabs is named formpdf_tab; the entry ./formpdf agents install writes for outside agents keeps the name formpdf.
  • The documents state the real counts (15 MCP tools, 90 PDF actions), and the manual and SECURITY.md say how agent access is asked and set and what the gate does and does not guarantee.

FormPDF has no CHANGELOG file; this list is the release's change list.

How it was checked

  • Backend suite: 109 passed on 0.60.3, 175 passed on the release commit (it includes the test that every version site agrees). tsc --noEmit clean. agents sync --check in step, run with a fresh home folder.
  • Every change route was called with no key from the window: 61 of 64 refused. The three that answer are the one-time hand-out of the key to the window and the MCP endpoint (POST and DELETE), which has its own gate.
  • The sealed choice, with a stand-in keychain: a saved choice edited by hand to Allowed was reported as Ask with the seal broken, and Preferences showed the sentence; with no keychain the engine started, skipped the seal and kept the stored value.
  • Redaction on a two-page PDF with four e-mail addresses, two of them also in Author and Keywords: find reported 4 matches on 2 pages and 2 in metadata; redact reported 4 areas and 2 left in metadata; sanitize removed the metadata; find afterwards reported 0.
  • The outside-agent question, through the engine's real MCP endpoint in headless Chrome: Deny, Allow once and Always allow each did what they say; Allow once ran one call and the next call asked again; a reload with a question waiting showed it again; an answer from a second window closed it with no click. Expiry after 120 seconds was waited out at the engine.
  • Stand-in programs named claude, codex and cursor-agent each started in their own tab; each tab's access ended when the tab closed.
  • The panel in headless Chrome at 1440 by 900, CPU slowed 4 times: with the panel remembered open, every frame of a cold load (2,643 and 2,660 frames, bottom and right) had its space reserved; 218 frames across tab switches showed one layout; a side switch kept the running terminal and its output; the guide counted 1 of 5 to 5 of 5; a layout moved from the old panel got no guide; focus was in the ask line when the panel was restored open on Chat.
  • With the panel closed, a load made 322 requests, none for terminals, agents or Chat, and loaded no terminal code.
  • Pixels against this branch before the panel change: panel closed, 0 differ. Open, the differences are the panel's head (new icons and four new buttons) and the mark at the start of the ask line.
  • AMOLED Black under the same slowing: 13 frames of a cold load and 14 of a hard reload, every sampled point #000000; in the settled workbench 25 points on the bars and panels #000000 and the page white.
  • A reload uses the access the page already holds: one claim over a load and two reloads.
  • The desktop shell's start-up wait was copied into a scratch program and run against seven made-up event sequences in real time: it opened at once, at 4.0 s and at 25.0 s when the engine was slow, and reported failure at 10.0 s when the engine answered but never finished, and at once when the engine ended.
  • agents/manifest.json: 15 tools, 7 read only, 7 that wait for Allow. In a copy of the repository, renaming a tool made --check fail and name the file.

Not verified

  • The desktop shell (src-tauri) was not compiled on the build machine. Its start-up change was corrected once on this branch and run only as a scratch copy against made-up event streams, never as the real shell. The first compile is the release build. Cargo.toml and Cargo.lock differ from main only in the version.
  • Nothing was run on Windows or macOS. The four agent-launch tests skip on Windows.
  • The real Claude Code, Codex and Cursor were not run; stand-ins only. Whether Codex accepts the two settings it is started with, and whether Cursor offers the server without a further step, is not known.
  • A real system keychain, and a frozen engine with the keychain library in it.
  • No production build of the frontend on the release commit (it built clean earlier on this branch).
  • The panel on the right at its narrowest, where Chat's bar is likely crowded; light themes by eye; the panel under AMOLED Black in a frame; a live switch to AMOLED Black and back (one run, inconclusive).
  • The demo bundles carry the new version by a hand edit and were not rebuilt.

Known

  • On Chat, the ask line's accessible label still says "Ask Claude Code".
  • The engine asks one outside-agent question at a time, and it does not notice a caller that hangs up: that caller's question stays until it is answered or its 120 second limit passes.
  • The panel's new sentences are not in the language tables yet and show in English.
  • After a reload with terminals open, the Chat tab is not reopened until asked for.
  • The mark at the start of the ask line is the panel's robot, not FormPDF's own agent mark.
  • The manual still describes the earlier question, with the answers Allow and Not now, and the README picture shows the panel at the bottom only.

Held at the safer choice, for the owner to overrule

  • A closed agent tab: a later call that still presents the tab's access is asked about like any outside agent. Refusing it outright is one small change; an existing test states today's behaviour, so it was left.
  • Two messages agents receive still say "Preferences, Agents"; the setting is under Preferences, Plugins, Outside Agents. Left as code strings.
  • The updater address in tauri.conf.json names the organisation it always named. Left.
  • docs/PARITY.md says it was scored at 0.13.0 and docs/EXTENSIONS.md shows a sample captured at 0.59.0. Both left as dated.
  • The manual's troubleshooting section still says FormPDF has no OCR. Left for a one-line fix if the owner agrees.

Merge

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

…k or answer consent (0.61.0)

The engine makes a per-launch window key, kept in memory only, and the
routes only the window uses now ask for it (header X-Formpdf-Window-Key):
settings writes, AI settings, every agent dock route, the commands
catalogue mirror, turning a plug-in on, signing identities and the trust
list, and the extension host routes. Without it they answer 403 "Only
the formpdf window can do this". The live socket makes a client a window,
with agents and tool answers, only when its hello carries the key; the
terminal socket takes the key as its first message; /api/events takes a
one-time ticket. ./formpdf cli run goes through agent consent for
commands that change something. The in-app agent token is now one per
Claude Code tab or Chat run, handed over in a 0600 config file that is
deleted when the tab closes, never on a command line or in a plain
terminal.

The packaged app gets the key from the engine's standard output
(FORMPDF_WINDOW_KEY_STDOUT=1) and gives it to its own page in an
initialization script; run from source, POST /api/window/key gives it
once. The frontend reads it once at boot and sends it; no visible change.

Verified by running an engine from a venv with a script outside the
repo: each route 403 without and with a wrong key, handled with it;
bootstrap 200 then 409, 404 in stdout mode; the key line printed once
before the address; an unkeyed live client is not a window and its
consent answer is ignored; setup/cli.py redact under ask refuses and
leaves settings alone; token file 0600, removed on close. npx tsc
--noEmit clean. backend pytest: 139 passed. tests/test_signatures.py
now sends the key to make its identity and conftest's inapp_token issues
a tab token, because the engine-wide token no longer exists.

Not run: the desktop shell change (src-tauri/src/main.rs) was not
compiled here (no WebKit); rustfmt parses it. The window was not opened
in a browser. Backend HASHOUT 119, frontend HASHOUT 117.
…ated as ask (0.61.0)

settings.json now carries a seal over outsideAgents, agentsAllowed and
claudeBin: HMAC-SHA256 with a random key kept in the system keychain
(keyring, service FormPDF, account settings-seal). Only the window-key
settings route and the window's own consent answer write it. When the
seal is missing or wrong and agent access is looser than the default,
the engine acts as ask with no custom Claude program and reports
sealBroken so the window can ask the person to confirm. With no
keychain, or keyring missing from a build, the engine starts as before,
keeps the stored values and reports seal "unavailable".

keyring 25.7.0 joins requirements.txt and requirements_macos.txt, the
freeze scripts collect its submodules, and NOTICE.md lists it and its
dependencies (MIT, BSD-3-Clause).

Verified by running engines from a venv with a file-backed stand-in
keyring (PYTHON_KEYRING_BACKEND) from a script outside the repo: a hand
edit to allowed is reported as ask with sealBroken true and MCP refuses
a change with no window; the command line still refuses; with the fail
backend and with a keyring that cannot import, the engine starts and
reports unavailable. bash -n setup/freeze_backend clean. backend pytest:
145 passed (tests/test_seal.py new). Not run: a real macOS or Windows
keychain, a frozen build with keyring. Backend HASHOUT 120.
…d and removed (0.61.0)

Redact listed "removed text, glyphs, pictures, shapes, annotations" every
time, because the result line joined the names of a dict of counts,
zeros included, and it said nothing about the same text in the
document's fields, XMP, bookmarks, attachments, form values or comments.
Sanitize printed the kinds it was asked to remove, found or not.

Now redact lists only non-zero counts, then checks the result: it runs
find again on the pages and the same pattern over the other places text
can live, and ends with "page content clean, N left in metadata
(Author, Keywords), run sanitize" (or nothing left, or what is still on
the pages). It removes nothing outside the pages. Find reports matches
in those places too, before anything is removed. Sanitize reports what
it found and removed with counts, or that it found nothing.

Verified with a real two-page PDF with four email addresses, two also
in Author and Keywords, through setup/cli.py: find "4 matches on 2
pages; also 2 in metadata (Author, Keywords) ..."; redact "removed 2
text runs, 65 glyphs, page content clean, 2 left in metadata (Author,
Keywords), run sanitize"; sanitize "found and removed metadata (9)";
find afterwards "0 matches on 0 pages". backend pytest: 148 passed
(tests/test_honest_results.py new). Not run: the live path with the
window open. Backend HASHOUT 121.
…(0.61.0)

Recounted from the code: mcp.TOOLS has 15 tools, and the action
registry of a running engine (GET /api/pdf/actions, after the AI and
action-list services register theirs) has 90 actions, 35 read, 43
change and 12 export. The harness skill said seven tools, the skillset
file map 7, README 83 actions and docs/MANUAL.md 60.

Edited .claude/skills/formpdf-harness/SKILL.md (the count, naming the
eight tools beyond the table), .claude/skills/formpdf-skillset/
references/file-maps.md, README.md and docs/MANUAL.md by hand. The
.agents/skills copies were regenerated by the repo's own sync,
python setup/agents.py sync (HOME and FORMPDF_DATA_DIR pointed at a
scratch folder, so only the repo's .agents/skills changed; no catalogue
was present, so commands.md was left as it is). The wiki is not in this
repository and was not changed.
…ot (0.61.0)

SECURITY.md gains "What the agent gate guarantees": only the window can
change agent access, the Claude program, the dock, plug-ins, signing
identities and trust, or answer the consent question; outside agents,
./formpdf run and ./formpdf cli follow the choice and cannot change it;
the dock's Claude Code key is per tab; a loosened choice edited outside
the app counts as Ask, and without a keychain the seal is skipped. It
also says what is not promised: a program running as the same user can
still read that user's files, and running from source is weaker than
the installed app. README's agents section says the same in one
paragraph and links to it.

Docs only; nothing to run.
…ess it comes in through MCP (0.61.0)

Opening, editing and saving PDFs, batch jobs, scans, the assistant and
the other document routes now refuse a write without the window key,
the same as the routes keyed before. One middleware (WindowKeyGuard)
checks every request whose method is not GET, HEAD or OPTIONS; the only
open paths are /mcp, where outside agents arrive and consent applies,
and /api/window/key, the development bootstrap. The 403 body is the
same one line. /api/ai/test and /api/ai/ask are covered.

./formpdf cli run used POST /api/commands/{id}; it now calls the MCP
run_command tool, so it goes through consent and prints the same
result. The frontend's remaining raw writes (pdf act and actFile, the
batch upload, the assistant's and action list's deletes) send the key.

Tests: the session test client now sends the key, because every
existing test that writes stands in for the window; a new bare
fixture has none. tests/test_window_key.py's refusal test uses bare.
New tests/test_window_key_default.py walks app.openapi() and fails when
a write route answers without the key and is not on the open list.

Verified by running: an OpenAPI sweep of the 63 write operations with
no key gave 18 refused on 57e7a41 and 60 refused now (open: POST
/api/window/key, POST and DELETE /mcp). With the key an engine opened
a PDF by path, changed metadata, saved it, ran a batch upload and
watermark; /mcp refused under ask, wrote under allowed, refused under
blocked; commands_cli run reached the engine through /mcp; setup/cli.py
find and redact behaved as before under ask, allowed and blocked.
backend pytest 155 passed; npx tsc --noEmit clean. Not run: the window
in a browser. Backend HASHOUT 122, frontend HASHOUT 118.
FormPDF had 28 themes and none was black throughout. AMOLED Black (id amoled) sets the window, panels, canvas and node colour to #000000 and tells panels apart by their borders (#262626 and #3a3a3a). Inputs, menus and selected rows keep a grey fill, #141414. Text is #ededed, #a6a6a6 and #858585. The accent is the app's own. A PDF page and its thumbnails keep the document's colour.

The theme is in both tables that hold the profiles, THEMES in frontend/src/ui/themes.ts and the pre-paint PROFILES in frontend/index.html (29 rows each), so a reload paints black on the first frame. A profile flag, oled, makes applyTheme and the pre-paint script set data-oled on html. :root[data-oled] in tokens.css lifts the hover tint and soft border to white at 10% and 12% and the raised fill (button, tab and segment hover) to 12% of the text colour. The title bar, tool ribbon and pages panel, the dock head and ask line and the home card previews mixed palette colour into their fill (#0a0a0a) and take the panel colour under the flag; the home nav hover takes the hover tint. No other theme changes. The picker and swatch grid are built from THEMES, so no control was added. HASHOUT entries 119 to 121 in frontend/HASHOUT_LOG.md.

Checked: npx tsc --noEmit clean. In headless Chrome 1440 by 900 against the Vite dev server with 4x CPU, a slow network and the cache off: a cold load and a hard reload with amoled saved gave #000000 at the corners and centre of the home view on every frame after navigation (13 and 14 frames), and the settled workbench with a PDF open was #000000 at the corners and centre of the title bar, tool ribbon, pages panel, right panel and status bar, and on the pasteboard. Not verified: the live Studio Dark to AMOLED switch (the element-count comparison was taken while the demo PDF was still rendering and is inconclusive), the dock and menus in screenshots, hover on controls other than the home nav item, the desktop app, a real OLED screen.
…ew one (0.61.0)

In development the page asked the bootstrap route on every load and only then used the key kept in sessionStorage, so each reload was refused with 409 and the engine logged a second claim that never happened. It now tries the kept key first (through the ticket route) and asks the bootstrap route only when the kept key no longer works, as formpath does.

Ran: engine from source and the Vite dev server, headless Chrome. Load plus two reloads: one bootstrap request (200), no 409, and opening a PDF from the page gave 200 each time. With the engine restarted under the same tab the kept key was refused, the bootstrap answered 200 and the write gave 200. Before the change the same run gave 200, 409, 409.
…ress and key line (0.61.0)

The loop that reads the engine's first lines had no limit. It now stops at one 10 second deadline and, if it has no address or no key by then, takes the existing engine-did-not-start path instead of opening a window that cannot write. Adds tokio (time feature, already in the lock) to Cargo.toml and the formpdf lock entry.

Not compiled: the desktop shell cannot be built here. Read against tauri 2.12.2 and tokio 1.53.2 sources and tauri-plugin-shell 2.4.1.
…reset to Ask (0.61.0)

The engine already reports sealBroken when the stored agent choice was changed outside the app and treats it as Ask, but the window never said so. The Outside Agents group of Preferences now ends with one note, filled from the settings read that is already made: The saved agent permission was changed outside formpdf, so it is back to Ask. The note has a reserved line, so nothing moves when it fills. String added to the 23 complete language files (es-MX and fr-CA fall back).

Ran: engine from source with a stand-in keyring, headless Chrome. A write from the page sealed the file, a hand edit to Allowed was reported as broken and Ask, the note showed (English, and German with fs-language de), and every box in the dialog had the same top and height with and without the text. tsc --noEmit clean.
A terminal took its colours once, when it was mounted, so switching theme afterwards left it in the old ones: after Studio then AMOLED Black the terminal body stayed #111111 inside a #000000 dock. The dock now listens to the theme change event that already exists and sets each open terminal's theme from the same function that mounting uses.

Ran: headless Chrome 1440x900, CPU 4x slower, slow network, cache off, engine from source. Terminal, Chat tab and Preferences open, Studio to AMOLED Black and back: 5332 elements before and after, none new, none removed, nothing moved except a rotating spinner icon. Under AMOLED the xterm screen, dock, dock head, Ask line, Chat bar and log and the tool ribbon sampled #000000 at corners and centre; terminal text #ededed. tsc --noEmit clean.
…s cover only the key (0.61.0)

The previous shell change put one 10 second deadline, counted from the spawn, on the whole engine start. On origin/main there was no limit, and a first launch of a packaged engine can take longer than that, so a healthy app would have reported that the engine failed to start. The loop is back to origin/main behaviour until the address line arrives (no limit; an engine that terminates still ends it). Only after the address has arrived does a second loop give the key at most 10 seconds, with try_recv and a short blocking sleep through spawn_blocking as FormPath and FormTxt do; with no key the existing failure path runs and no window opens. The tokio time feature and the formpdf lock line added by that change are removed, so Cargo.toml and Cargo.lock are byte-identical to origin/main.

Verified: the engine from source prints the key line (line 1) before the address line (line 5). The loop was run in a scratch crate outside the repo against fake event streams: key then address at once opens at 0 s; nothing for 25 s then key and address opens at 25 s; address then nothing fails at 10 s; engine ending before or just after the address fails at once. Not compiled in the real shell: the system WebKit libraries are missing here; rustfmt parses the file.
….61.0)

./formpdf agents sync now also writes agents/manifest.json (format
form-agent-manifest, version 1) and agents sync --check fails, naming the
file, when the committed one is not what sync would write.

Every field is read, not typed: tools and read-only tools from the MCP
registry the server lists from, approval-gated tools from the consent
gate's own data (GATED and GATED_BY_ARGUMENTS, now module constants that
_mutating reads), transports from setup/mcp_stdio.py and the engine's
POST /mcp, skills from .claude/skills, the form.ext host API from the
engine. The dock is the one declared value (DOCK in setup/agents.py), read
from the frontend today: bottom only, tabs chat, claude, shell.

Counts: 15 tools, 7 read-only, 7 approval-gated, 2 skills.

Run: sync wrote the file; formadaptor's manifest checker accepted it;
--check exited 0; in a copy outside the tree a renamed tool and a changed
gate each made --check exit 1 naming the file; the engine from source
answered tools/list with the same 15 names and 7 read-only tools. The
backend suite passes (159) with the new tests/test_agent_manifest.py.
The Consent section described one on/off switch in Preferences > Agents.
It now describes what the app does: the question in the window, the three
values of Agent access (Ask each time, Allowed, Blocked) set in
Preferences > Plugins > Outside Agents or the Agents dialog, that only
the window can change the choice, that a choice changed outside the app
reads as Ask, and that ./formpdf run and ./formpdf cli are outside agents.
The command line section says what to do first to script changing
actions: set Agent access to Allowed once in the window.

The Preferences paragraph listed groups that are not on the pages of the
Preferences window and said fourteen themes; it now follows the pages as
they are and names AMOLED Black without a count. The troubleshooting line
named a switch that does not exist. The tools section points at
agents/manifest.json for the full list, and the commands table says that
agents sync --check fails when the manifest is out of date.

Docs only; checked against app-dialogs.ts, themes.ts and mcp.py, and ran
./formpdf run page_numbers under Ask (refused with the no-window line)
and info (worked).
The consent row said Preferences > Agents turns agents off. It is now
named Agent consent and access choice and says what the app does: the
window asks, the choice is Ask, Allowed or Blocked in Preferences >
Plugins > Outside Agents or the Agents dialog, only the window can change
it, and it is sealed against edits outside the app. The MCP row points at
agents/manifest.json instead of a hand-typed list of seven tools (the
server has more), and the command line row says ./formpdf run counts as
an outside agent.

The rows live in docs/parity.py and the tables in PARITY.md are the output
of `python3 docs/parity.py --md`; both were edited by hand with the same
text and the tables were checked line for line against the generator's
output (140 table lines, identical). The scores did not change. The sheet's
version line and its row-by-row grading were not redone.

Docs only.
…1.0)

The table named 0.57.x as the latest release while the app is on 0.60.x
and goes to 0.61.0 with this branch. The policy has always been that
security fixes go into the newest release, and the table has been edited
only once, when the file was created, so a number in it falls behind at
every release. It now reads Latest release, with no number, as the rule
under it says.

Docs only.
README said 61 backend tests (there are many more, and the number moves
with every change), and CLAUDE.md and CONTRIBUTING.md said 23 language
tables (there are 25, two of them regional tables that hold only the words
that differ). All three now say it without a number; the i18n rule says
how the regional tables are treated. NOTICE.md named two repositories
under nodemode-ai; the organisation is nodemode-dev. Its "14 theme
profiles" is left: it says what was copied from formvis at the time.

Docs only.
The family's apps are moving to one shared dock module that talks to
each engine through a small contract. This closes the engine's gaps
before the window is ported. Every change is additive: the present
window sends and reads what it did.

The question an outside agent causes (the window tool call `consent`)
keeps `agent` and now also carries `request` (the call's id), `tool`,
`what` in plain words, `answers` (deny, once, always), `alwaysCovers`
(all outside agents), `seconds` and `expiresAt`. The answer
{allowed: true, once: true} lets that one call run and stores nothing,
so the next changing call asks again; Allow and Not now mean what they
did. When a question is answered or its two minutes run out, every
window that holds the key is told {t: "consentWithdrawn", id, reason,
answer} on /api/live so a dialog can close.

GET /api/agents/status names Claude Code, Codex and Cursor in one call:
installed, path, version, the install line, and signed in as true,
false or null when the engine cannot tell. It is window only, kept for
a minute, and nothing but the route calls it.

POST /api/agents/open starts Codex or Cursor in a terminal tab of its
own kind. The tab's token is in the child's environment only, never on
a command line and never in a plain shell tab, and stops counting when
the tab closes. Codex is pointed at /mcp by two settings that name the
variable; Cursor by a mode 0600 .cursor/mcp.json in the agent folder
whose header value is a placeholder, written only when no other file
is there.

A window that sends control: "binary" with its key on the terminal
socket gets the hello and exit notices as binary frames, apart from
output. Without it the exit notice is the text frame it was.

Blocked already stopped the app's own tabs; nothing changed there.

Verified by running the engine from source on 33201 and 33202 with a
fresh data folder and a stand-in keyring, a stand-in window on
/api/live and an outside agent on /mcp: every new field arrived; once
ran the call and the next call asked again; Allow stored Allowed and
the next call did not ask; deny refused; an unanswered question refused
after 120.0 s; both key-holding windows got each withdrawal and a
keyless client none. Status with stand-in claude, codex and
cursor-agent on PATH and without. Each tab kind started with its token
in the child's environment and absent from `ps -eo args`; with it a
call ran under Ask without a question, was refused under Blocked, and
counted as an outside agent after the tab closed. The present window's
own requests answered as before. Write routes without the key: 60 of
63 refused before, 61 of 64 after, the same three open. Not verified:
the real Codex and Cursor programs, which are not on this machine.

Tests added after the runs: tests/test_dock_contract.py (11). Whole
suite 159 passed before, 170 after. agents sync changed nothing and
its --check is in step.
frontend/src/dock is formvis's dock folder at 1ee307fc, 15 files,
copied byte for byte. formpdf's own part is src/dock-adapter.ts and
styles/dock-tokens.css. ui/terminal-dock.ts, its styles and the old
consent dialog in live/agent.ts are gone; the parts that carried
behaviour are quoted in frontend/HASHOUT_LOG.md entry 126.

What a person gets: the dock can sit at the bottom or on the right and
comes back open, on the same side and size, after a restart; Codex and
Cursor tabs beside Claude Code; a tab whose program ended is struck
through; the question an outside agent causes names the agent and what
it asked and offers Deny, Allow once and Always allow all outside
agents, closes when the engine withdraws it, and shows again after a
reload while it is still waiting.

What stays formpdf's own: Chat (Markdown, page buttons and pictures on
tool chips, the usage meter, From Claude Code, kept history) as an
app-owned pane with its own ask line, and the Ask Claude Code line
under terminal tabs, which still adds where the person is. Cmd+J on
macOS and Ctrl+J elsewhere open and close the dock, never under a
dialog; Shift and Alt with it still open Claude Code and Chat. The old
height and last tab are moved once from fs-dock-h and fs-dock-last to
formpdf.dock. The pre-paint script reserves the dock's row or column
from that key.

./formpdf agents sync and its --check fail, naming the file, when the
dock folder does not match its MANIFEST.json or imports from formpdf.
agents/manifest.json was written by the sync: positions bottom and
right, tabs chat, claude, codex, cursor, shell.

Not kept, the module does not serve it: the first open preferring
Claude Code when installed, the chord in the Claude Code tooltip.

Run in headless Chrome, 1440 by 900, against the engine and Vite from
source with stand-in claude, codex and cursor-agent: with the dock
closed the page asked the engine nothing for it and loaded no terminal
code; open, close, resize, side switch (same terminal element, output
kept), a shell command and its output, a Claude Code tab, Chat, the
three chords, reload, the old keys moved once. Pixels differing from
before: closed 0, shell 795, Chat about 2,000, all in the head (the
module's icons and four new buttons). tsc --noEmit passes.
…rmpdf_tab (0.61.0)

The MCP entry the engine hands a Claude Code tab, a Chat turn, a Codex
tab and a Cursor tab had the same name, formpdf, as the entry an
outside agent uses after ./formpdf agents install. It is now
formpdf_tab everywhere the engine writes it: the 0600 config file for
Claude Code and Chat (with --allowedTools mcp__formpdf_tab), the two
-c mcp_servers.formpdf_tab settings for Codex, and .cursor/mcp.json in
the agent folder for Cursor. ./formpdf claude, which is Claude Code in
the person's own terminal, is an outside agent and keeps formpdf.

Two existing tests read the old name from the files the engine writes
(tests/test_dock_contract.py for Cursor, tests/test_window_key.py for
Claude Code); they now read formpdf_tab, which is the approved change.
One test added after the run below.

Run: the engine from source with a stand-in claude; a Claude Code tab
opened from the window, its config file (mode 0600) read; a call with
the live tab's token ran with no question; after the tab was closed
the same token was treated as an outside agent and the window asked.
Whole suite: 175 passed.
… block (0.61.0)

Written after the port was seen working in a browser. The committed
dock folder matches its MANIFEST.json (2.0.1) and imports nothing from
formpdf; a copy with one edited file, one added file and one import
from the app makes agents sync --check exit 1 and name each file; the
manifest's dock block lists the tabs the adapter offers and both
positions; the adapter's storage key is the one the pre-paint script
reads before any stylesheet, and the old dock file is gone.

Run: backend suite, 175 passed (170 before).
frontend/src/dock/ is formvis 8bbdf61b byte for byte: eleven of the fifteen files changed, none added or removed. The adapter is untouched in this commit and still compiles; the manifest test now expects 2.1.0.
…old when it is shown, hidden or closed (0.61.0)

The adapter says chat.ask 'line', so the module's line is Chat's input on Chat and asks Claude Code under a terminal. The app's own line appended to dock.root and the pane's own line are removed with their CSS. The pane answers send with whether the text was taken, gives busy, reads the conversation when first shown, and reads it again after its tab was closed.
…de, and a terminal sits at formpdf's inset (0.61.0)

The legacy reader answers seen: true, which module 2.1.0 writes with the moved layout; a person with no stored layout still gets the guide. The stage padding is the public token --dock-stage-pad, set to the inset formpdf's own dock had.
Bumps every version site from 0.60.3 to 0.61.0, the same set as 0.60.3: 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: backend pytest 175 passed (including test_f4_versions), tsc --noEmit clean, agents sync --check in step; git grep -F 0.60.3 outside the HASHOUT logs prints nothing. The desktop shell was not compiled.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 19, 2026 23:04
…oes through the family's finder (0.62.0)

backend/app/services/agent_lookup.py is the family's finder, version 1.0.1, copied whole from formvis ddc893ae (SHA-256 62667f9b...c77d51) and not edited. claude_code.cli, info, child_env and wrap, agent_programs.find, status and open_tab, Chat's start, ./formpdf claude and the Claude Code step of ./formpdf agents install all use it; the two searches formpdf had of its own are removed. Names and return shapes are kept; info and the status answer gain finding, how, looked, error and said, and the status answer reports four programs (antigravity is new, signedIn null). installed is now true only when --version ran. setup/agents.py records the hash of finder versions 1.0.0 and 1.0.1 and agents sync fails, naming the file, when it does not match.

Two existing tests changed with the behaviour: the status test expects four programs and the new fields; the missing-program test no longer replaces agent_programs.find, which the open route does not call now, and reads the finder's sentence from the real route with PATH at an empty folder. Three tests added for the hash record. They are run with the test guard of the next commit, which forgets the finder's kept answers between tests.

Run with stand-in programs only: ./formpdf claude's script without and with a stand-in claude, install_claude_user in dry-run mode with and without it, and tests/test_dock_contract.py, test_agent_manifest.py, test_window_key.py and test_f5_boot.py: 56 passed. Codex, Cursor and Antigravity get no path setting here (the Claude path is a sealed setting; three more were not built). Not run: Windows, macOS, a frozen engine, any real agent program.
…0.62.0)

conftest.py gives the run its own PATH (a folder of stand-ins named claude, codex, cursor-agent, agent and agy, then the system folders), its own stand-in login shell, removes the variables that point the finder at package-manager folders, empties the finder's system folders and forgets its kept answers before every test, and prints how many times a stand-in was started. Before this a plain run reached the machine's own claude through the login shell.

Run: the four agent test files, 56 passed, summary line 'agent program stand-ins started 1 time(s): claude --version'.
formpdf_engine.py replaces a stdin, stdout or stderr that is None with the null device before any import of formpdf's own, as formweb's entry does. A Windows engine built without a console has no streams, and the first log line stopped the start in another engine of the family.

Run on Linux: python formpdf_engine.py >&- 2>&- on its own port and data folder ended with exit code 1 before the change and answered /api/health after it; started normally it still printed its log. Not run on Windows or frozen.
…folder at module 2.2.0 (0.62.0)

Engine: POST /api/agents/open takes kind antigravity and starts agy through the same start path as the Codex and Cursor tabs. Before the start the entry formpdf_tab, with the tab's own token, is written into .agents/mcp_config.json in the agent folder (the folder every formpdf agent tab starts in, where the Cursor tab's file also goes): other entries and keys kept, replaced whole, mode 0600; it is taken out at close if it still carries the tab's token, and the token is revoked.

Setup: ./formpdf agents install adds formpdf to ~/.gemini/config/mcp_config.json, keeping what is there, and says when only the older antigravity-cli file was seen. agents/manifest.json was written again by ./formpdf agents sync (the dock block lists antigravity).

Window: frontend/src/dock/ is formvis ddc893ae byte for byte (16 entries, agents.ts new). The adapter is DockAdapter<'antigravity'>, lists the kind, routes it to the agents route and returns its status, passing the engine's sentence as note for a program that was not found running. One existing test changed: the dock manifest test expects 2.2.0.

Run with a stand-in agy only: status, a tab through the real route with the banner read from its stream, the folder file gaining and losing formpdf_tab with another entry and key untouched, the dead token; the install target in two scratch homes; tsc --noEmit clean; the four agent test files, 58 passed. Not looked at in a browser. Not run: a real agy, Windows, macOS, the desktop shell.
…rsor and Antigravity (0.62.0)

README, AGENTS.md and docs/MANUAL.md name four programs where they listed three, and say that ./formpdf agents install adds formpdf to Antigravity in ~/.gemini/config/mcp_config.json. Not changed: the window's own sentences that name three programs (ui/home.ts, ui/app-dialogs.ts), because each is the key of its translation in every language file.
Bumps every version site from 0.61.0 to 0.62.0, the same set as 0.61.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: backend pytest 180 passed (including test_f4_versions), tsc --noEmit clean, agents sync --check in step; git grep -F 0.61.0 outside the HASHOUT logs prints nothing. The desktop shell was not compiled.
@nodemode-ai nodemode-ai changed the title FormPDF 0.61.0: changes from outside the window are refused, honest redaction reports, the shared agent panel, AMOLED Black FormPDF 0.62.0: Antigravity is the fourth agent program, and agent programs are found however the app was started Nov 20, 2026
@nodemode-ai

Copy link
Copy Markdown
Collaborator Author

FormPDF 0.62.0: Antigravity is the fourth agent program, and agent programs are found however the app was started

This branch sits on top of fix/window-key-and-redact-scope-0.61.0 (0.61.0, pushed and not yet merged) and covers only the six commits after it.

What changes for people

Agent programs are found however FormPDF was started

  • Claude Code, Codex, Cursor and Antigravity are now looked for in one way everywhere: the path given in Preferences (Claude Code), the PATH FormPDF was started with, the usual install folders (including version managers), and the PATH your shell reports. Before, the terminal panel, Chat and the setup commands each searched differently, and a FormPDF started from a desktop icon could miss a program that a terminal finds.
  • A program counts as installed only when it actually starts and answers with its version. A file that is there but does not start is reported as found but not starting, with its own last line as the reason.
  • When a program is missing, the message says where FormPDF looked and gives the install line.
  • A program is started with its own folder first on its PATH, so one that needs the node beside it finds it.

Antigravity (Google's agy program)

  • The terminal panel offers an Antigravity tab beside Claude Code, Codex and Cursor when agy is on the computer. The tab reaches FormPDF's tools the way the other tabs do, and Blocked, Ask and Allowed mean the same for it.
  • While the tab is open, FormPDF keeps one entry of its own, formpdf_tab, in .agents/mcp_config.json in the agent folder. Everything else in that file stays as written, and the entry is taken out when the tab closes.
  • ./formpdf agents install also adds FormPDF to Antigravity in ~/.gemini/config/mcp_config.json, keeping what is there and making a dated copy before a change. If only the place earlier versions of Antigravity used exists, the current place is written and the older file is reported and left alone.
  • FormPDF cannot tell whether you are signed in to Antigravity, and does not claim to.

Fixed

  • A FormPDF engine built for Windows without a console no longer stops at start because it has no output streams.

Documents

  • README, AGENTS.md and the manual name four agent programs.

How it was checked

  • Backend suite at 0.62.0: 180 passed, 0 failed (175 at 0.61.0; 5 new). tsc --noEmit clean. ./formpdf agents sync --check: in step.
  • The suite now gives itself stand-in agent programs and a stand-in shell. Run once with a separate folder of logging decoys first on PATH and a logging decoy shell: 0 decoy starts.
  • With a stand-in agy, through the engine's real routes: the status answer listed four programs; an Antigravity tab opened and its output showed the stand-in's banner; the folder file gained formpdf_tab beside another entry and another key (file mode 0600) and held exactly what it held before once the tab was closed; the tab's token then counted for nothing; with no agy, the route answered with where it looked and the install line.
  • ./formpdf agents install's Antigravity step in two scratch home folders: another entry and key kept and a copy made; a second run wrote nothing; with only the older file present the current place was written and the older file left untouched.
  • The Claude Code steps of ./formpdf claude and ./formpdf agents install with and without a stand-in claude.
  • The engine started with its output streams closed (>&- 2>&-) on Linux: it ended with exit code 1 before the change and answered its health route after it; started normally it still printed its log.

Not run

  • Nothing was run on Windows or macOS. The output-streams fix was seen on Linux only.
  • The desktop shell was not compiled on the build machine. On this branch src-tauri changes only in its version fields, so the first compile is the release build.
  • The real Claude Code, Codex, Cursor and Antigravity were not run; stand-ins only. Nobody here has seen a real Antigravity install, where its installer puts the program, or whether it accepts FormPDF's entry.
  • The window was not looked at in a browser. The Antigravity button and its row in the panel were not seen on screen; the panel code was type-checked and matches the shared copy byte for byte.
  • A frozen (packaged) engine.
  • The two tracked demo bundles were not rebuilt; only their version string was changed by hand, as in 0.61.0.

Held

  • A path setting in Preferences for Codex, Cursor and Antigravity. Claude Code's path is a protected setting; three more protected settings and their Preferences rows were not built, so these three programs are found without one.
  • The sentences inside the window that list the programs (Home's side bar, Help, Preferences, the Agents dialog) still name three. Each is translated in every language file, so changing them is a translation pass.
  • The Agents dialog has no row of its own for Antigravity. Its "All at once" command does set Antigravity up.

Also for the owner to know: the Antigravity tab's file is in the agent folder, the same folder the Cursor tab's file goes to, and unlike the Cursor file it holds the tab's token while the tab is open (no placeholder form is documented for that file). The token ends with the tab. FormPDF has no CHANGELOG; none was created.

Merge

Merge with a merge commit. Do not squash and do not rebase-merge. Merge fix/window-key-and-redact-scope-0.61.0 first; this branch is based on it.

…t's page is the one that holds the key

The engine gives its window key to the first page that asks and refuses every
later one. The window tests shared one engine, so the demo test's page was
refused, its clicks changed nothing, and the test waited out its limit. Seen
with the browser check run as the workflow runs it: 1 failed, 2 passed before
(a 60 second timeout in the demo test), 3 passed with the engine made per test.
@nodemode-ai

Copy link
Copy Markdown
Collaborator Author

FormPDF 0.62.0: Antigravity is the fourth agent program, and agent programs are found however the app was started

This branch sits on top of fix/window-key-and-redact-scope-0.61.0 (0.61.0, pushed and not yet merged) and covers only the six commits after it.

What changes for people

Agent programs are found however FormPDF was started

  • Claude Code, Codex, Cursor and Antigravity are now looked for in one way everywhere: the path given in Preferences (Claude Code), the PATH FormPDF was started with, the usual install folders (including version managers), and the PATH your shell reports. Before, the terminal panel, Chat and the setup commands each searched differently, and a FormPDF started from a desktop icon could miss a program that a terminal finds.
  • A program counts as installed only when it actually starts and answers with its version. A file that is there but does not start is reported as found but not starting, with its own last line as the reason.
  • When a program is missing, the message says where FormPDF looked and gives the install line.
  • A program is started with its own folder first on its PATH, so one that needs the node beside it finds it.

Antigravity (Google's agy program)

  • The terminal panel offers an Antigravity tab beside Claude Code, Codex and Cursor when agy is on the computer. The tab reaches FormPDF's tools the way the other tabs do, and Blocked, Ask and Allowed mean the same for it.
  • While the tab is open, FormPDF keeps one entry of its own, formpdf_tab, in .agents/mcp_config.json in the agent folder. Everything else in that file stays as written, and the entry is taken out when the tab closes.
  • ./formpdf agents install also adds FormPDF to Antigravity in ~/.gemini/config/mcp_config.json, keeping what is there and making a dated copy before a change. If only the place earlier versions of Antigravity used exists, the current place is written and the older file is reported and left alone.
  • FormPDF cannot tell whether you are signed in to Antigravity, and does not claim to.

Fixed

  • A FormPDF engine built for Windows without a console no longer stops at start because it has no output streams.

Documents

  • README, AGENTS.md and the manual name four agent programs.

How it was checked

  • Backend suite at 0.62.0: 180 passed, 0 failed (175 at 0.61.0; 5 new). tsc --noEmit clean. ./formpdf agents sync --check: in step.
  • The suite now gives itself stand-in agent programs and a stand-in shell. Run once with a separate folder of logging decoys first on PATH and a logging decoy shell: 0 decoy starts.
  • With a stand-in agy, through the engine's real routes: the status answer listed four programs; an Antigravity tab opened and its output showed the stand-in's banner; the folder file gained formpdf_tab beside another entry and another key (file mode 0600) and held exactly what it held before once the tab was closed; the tab's token then counted for nothing; with no agy, the route answered with where it looked and the install line.
  • ./formpdf agents install's Antigravity step in two scratch home folders: another entry and key kept and a copy made; a second run wrote nothing; with only the older file present the current place was written and the older file left untouched.
  • The Claude Code steps of ./formpdf claude and ./formpdf agents install with and without a stand-in claude.
  • The engine started with its output streams closed (>&- 2>&-) on Linux: it ended with exit code 1 before the change and answered its health route after it; started normally it still printed its log.

Not run

  • Nothing was run on Windows or macOS. The output-streams fix was seen on Linux only.
  • The desktop shell was not compiled on the build machine. On this branch src-tauri changes only in its version fields, so the first compile is the release build.
  • The real Claude Code, Codex, Cursor and Antigravity were not run; stand-ins only. Nobody here has seen a real Antigravity install, where its installer puts the program, or whether it accepts FormPDF's entry.
  • The window was not looked at in a browser. The Antigravity button and its row in the panel were not seen on screen; the panel code was type-checked and matches the shared copy byte for byte.
  • A frozen (packaged) engine.
  • The two tracked demo bundles were not rebuilt; only their version string was changed by hand, as in 0.61.0.

Held

  • A path setting in Preferences for Codex, Cursor and Antigravity. Claude Code's path is a protected setting; three more protected settings and their Preferences rows were not built, so these three programs are found without one.
  • The sentences inside the window that list the programs (Home's side bar, Help, Preferences, the Agents dialog) still name three. Each is translated in every language file, so changing them is a translation pass.
  • The Agents dialog has no row of its own for Antigravity. Its "All at once" command does set Antigravity up.

Also for the owner to know: the Antigravity tab's file is in the agent folder, the same folder the Cursor tab's file goes to, and unlike the Cursor file it holds the tab's token while the tab is open (no placeholder form is documented for that file). The token ends with the tab. FormPDF has no CHANGELOG; none was created.

Merge

Merge with a merge commit. Do not squash and do not rebase-merge. Merge fix/window-key-and-redact-scope-0.61.0 first; this branch is based on it.

@nodemode-ai
nodemode-ai merged commit 51c2a27 into main Nov 20, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/window-key-and-redact-scope-0.61.0 branch November 20, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant