Skip to content

chore: shared Windows agent launcher and full third-party licence notices - #49

Merged
nodemode-ai merged 4 commits into
mainfrom
chore/launcher-and-notices
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
chore/launcher-and-notices

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fix(agents): copy the shared agent finder agent_lookup.py 1.1.0 from FormVis byte for byte (sha256 313fcd40...) and record its hash in LOOKUP_HASHES
  • Remove backend/app/windows_start.py and its tests; claude_code._wrap now calls agent_lookup.start_argv with the program's environment and maps CommandLineRefused to the same 400
  • agent_programs.launch gives back a tab's token when its Windows start is refused
  • New backend/tests/test_agent_lookup_windows.py: the 1.1.0 Windows tests (npm, pnpm and bun shims, refused cmd.exe characters, quoted program paths, Windows file names) plus FormWeb's tab and Chat start tests
  • fix(licences): generated THIRD-PARTY-NOTICES.txt with full licence texts for the Python runtime, 50 Python distributions, 5 production npm packages and 520 Rust crates
  • setup/notices.py and setup/notices_crates.py write the file; --check runs in the CI test job and fails on missing, extra or out-of-date entries
  • The notices ship in the Tauri bundle and the frozen engine, are served by GET /api/notices and are shown in Settings > About
  • An MPL-2.0 crate without a licence file gets the standard text from legal/spdx/MPL-2.0.txt; LICENSES.md, NOTICE.md, README, the skill and both hash-out logs are updated
  • Tests: backend/tests/test_notices.py (route, bundle wiring, check failure cases, round trip) and frontend/tests/unit/ui/third-party-notices.test.ts

Tests

  • The notices check and the launcher tests were run locally on macOS; failures seen locally also fail on main. Please rely on this PR's CI.

How to ship

  • Independent of other repos. The shared launcher file is the same byte for byte in every Form app (agent_lookup 1.1.0, source in FormVis). No version bump.

…indows

agent_lookup.py is copied byte for byte from FormVis at 1.1.0 (SHA-256
313fcd40541199c920314516026a0b225aeb4915e9a5dc26bf51d1ba05f1da8e) and the
hash is recorded in LOOKUP_HASHES. It follows npm, pnpm and bun shims in any
letter case, and refuses what cmd.exe would change, including FormWeb's rule
for a quoted program path, so windows_start.py and its tests are removed.
Tab and Chat starts call start_argv with the program's environment and turn
CommandLineRefused into the same 400. A refused agent tab gives back its token.
… in CI

THIRD-PARTY-NOTICES.txt holds the licence texts of the Python runtime, the
Python distributions frozen into the engine on all three systems, the
production npm packages in the window and every registry crate of the shell
and the document engine. setup/notices.py writes it after FormDAM's generator,
and --check runs in the CI test job. The file ships in the installers and the
frozen engine, GET /api/notices serves it and Settings > About shows it.
LICENSES.md stays the human ledger; an MPL-2.0 crate without a licence file
gets the standard text from legal/spdx. Both hash-out logs record this and the
finder update.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:28
Forty crates in the shell and engine publish no licence file. Their upstream
texts now live in legal/licence-texts/crate/<name>-<version>/ with a SOURCE.txt
naming each file's URL and ref; setup/notices.py uses them and names the source
in each notice. The notices are regenerated and --check passes.
The stubbed 403 can land and untick the row before Locator.check reads the
box back, so check() reported that the click did not change its state. Click,
wait for the fetch request, then assert the sentence, the unticked box and
the one fetch that was sent.
@nodemode-ai
nodemode-ai merged commit 777ac0e into main Nov 30, 2026
11 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 20:24
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.

2 participants