Repository navigation
FormFabric 0.29.1: the window asks for live events only once it holds its key - #13
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FormFabric 0.29.1: the window asks for live events only once it holds its key
This pull request carries 0.29.1: 2 commits on
main(0.29.0, merged), the release commit last. Please merge it with a merge commit, not a squash and not a rebase.What a person gets
Commits
How it was checked
workspace/offline.tsandworkspace/viz/api.tssubscribe to the engine's link state when their modules load, beforemain.tsclaims the window key, soengine/events.tsopenedGET /api/eventswith no key. The page's network record on 0.29.0: the events request first, 403, thenPOST /api/window/key. The window key module now exposes a promise that settles when the claim has finished, and the events stream opens after it.formfabric_engine.py, stand-in agent programs and shell first on PATH), the built window in headless Chromium, 10 starts in a row at normal speed and 10 under 4x CPU throttling, a fresh engine and data folder each start: 0 refused requests on the events route in the page's network record and in the engine's access log, in 20 of 20 starts (0.29.0 in the same harness: 1 per start in each of 4 trial starts, 2 normal and 2 throttled). A page without the key, asking the events route of the same engine: 403 in 20 of 20.setup/freeze_backend.batread token by token againstsetup/freeze_backend: the PyInstaller line expands to the same 40 tokens as the POSIX line on Windows (only their order differs, which PyInstaller does not care about); CRLF on all 27 lines, no tab, no double space, no glued token. Nothing to change.maturin build --release, 7 min 42 s) and installed; on the release tree: backend tests 53 passed, 0 failed;--selfcheckexit 0 (engine built, 0.29.1, 255 commands);./formfabric agents sync --checkand./formfabric agents checkexit 0; version check one version, 0.29.1, across 10 sites and the changelog.npm ci --dry-run,npm ci, the window build with its type check exit 0;npm audit0 vulnerabilities; the built window against the engine: no page error, only the two known 404s (src/styles/dock.css,engine/ffb_wasm.wasm, both as in 0.28.0 and 0.29.0) and no refused events request;bash -non 23 scripts, Python byte-compile: 0 failures; no em dash, emoji or comment line added.Not run
npm auditand the window check were not repeated on the release commit itself; they ran on the same tree, with the same version edits, before the module was built.src-tauri(Cargo.toml,Cargo.lock,tauri.conf.json).engineCI job (clippy, browser engine) and thedesktop-shelljob were not run; no engine source changed.