Build fzt into the command palette instead of loading fzt.dll (FZT2-10) #72

Merged
merge-queue merged 3 commits from FZT2-10-rust-fzt into main 2026-12-01 02:32:33 -08:00
Owner

The command palette builds fzt in, from fzt's Rust crate (fzt v0.2.124), instead of loading fzt.dll from home-sync's install at run time, which nothing tied to the fzt tuimail was built and tested against. The crate gives the same frames and picks fzt.dll did (fzt holds the two identical with shared recorded cases), so the palette looks and works as before.

Removed

  • src/fzt.rs: the libloading loader, its JSON types, and the "not installed" / "not loaded" paths; the libloading dependency.
  • The test that read fzt.dll's JSON, and the ignored test that needed the installed library.

Changed

  • palette.rs, app.rs and ui/palette.rs use fzt::Session, fzt::Command, fzt::KeyEvent, fzt::Frame and fzt::VisibleRow directly; the open session is boxed (clippy's large-variant check). A resize can no longer fail, so its error branch is gone. Palette::Failed stays, now only for fzt refusing a menu or key (class=palette kind=refused).
  • Tests open the real palette: Esc closes it, typing searches, picking "write a message" runs it, info is found in the : folder, a resize lays it out again, and the every-window-size draw test covers an open palette.
  • CLAUDE.md, README, TESTING.md and logfile.rs's class comment say fzt is built in.

Left alone: the palette's look, keys, menu and the : folder's info command; Options.version stays empty, as fzt.dll was sent it.

Work package: https://openproject.home.romaine.life/wp/FZT2-10

🤖 Generated with Claude Code

The command palette builds fzt in, from fzt's Rust crate (fzt v0.2.124), instead of loading fzt.dll from home-sync's install at run time, which nothing tied to the fzt tuimail was built and tested against. The crate gives the same frames and picks fzt.dll did (fzt holds the two identical with shared recorded cases), so the palette looks and works as before. **Removed** - `src/fzt.rs`: the libloading loader, its JSON types, and the "not installed" / "not loaded" paths; the `libloading` dependency. - The test that read fzt.dll's JSON, and the ignored test that needed the installed library. **Changed** - `palette.rs`, `app.rs` and `ui/palette.rs` use `fzt::Session`, `fzt::Command`, `fzt::KeyEvent`, `fzt::Frame` and `fzt::VisibleRow` directly; the open session is boxed (clippy's large-variant check). A resize can no longer fail, so its error branch is gone. `Palette::Failed` stays, now only for fzt refusing a menu or key (`class=palette kind=refused`). - Tests open the real palette: Esc closes it, typing searches, picking "write a message" runs it, `info` is found in the `:` folder, a resize lays it out again, and the every-window-size draw test covers an open palette. - CLAUDE.md, README, TESTING.md and `logfile.rs`'s class comment say fzt is built in. **Left alone**: the palette's look, keys, menu and the `:` folder's info command; `Options.version` stays empty, as fzt.dll was sent it. Work package: https://openproject.home.romaine.life/wp/FZT2-10 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The / palette used fzt by loading the managed install's fzt.dll at run
time and trading JSON with it, so it only worked on Windows home PCs with
home-sync's fzt installed, and tests never ran the real menu. It now uses
fzt's Rust crate directly, which behaves the same as fzt.dll.

- src/fzt.rs (the DLL loader and its JSON types) and the libloading
  dependency are gone, with the "fzt isn't installed" / "not loaded" paths.
- The palette keeps showing why if fzt refuses the menu or a key
  (logged as class=palette kind=refused).
- Tests now open the real palette: Esc closes it, typing searches,
  picking a command runs it, info is found in the : folder, and a resize
  lays it out again. The DLL JSON-reading test and the ignored
  installed-library test are dropped.
- README, TESTING.md and CLAUDE.md say fzt is built in.

The crate is a path dependency on the fzt worktree for now; it becomes a
tagged git dependency once fzt's Rust port is released.
Take fzt's Rust crate at its release, v0.2.124 (FZT2-10)
Some checks failed
Suite release / deliver-prune (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Successful in 12s
Suite rust / check-typos (pull_request) Has been skipped
Suite release / build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite rust / check-machete (pull_request) Has been skipped
Suite release / build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite rust / check-test-linux (pull_request) Has been skipped
Suite release / build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite release / build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite rust / check-format (pull_request) Successful in 18s
Suite release / deliver (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 12s
Suite cluster-service / reused-checks (pull_request) Successful in 13s
Suite rust / check-audit (pull_request) Successful in 16s
Suite release / check-manifest (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 12s
Suite release / check-build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Failing after 1m12s
Suite release / check-build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Successful in 4m35s
merge-queue CI failed: Suite release / check-build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request)
Suite rust / check-services (pull_request) Successful in 4m4s
Suite rust / check-test-windows (pull_request) Successful in 9m41s
Suite release / check-build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Successful in 10m26s
Suite rust / reused-checks (pull_request) Successful in 20s
Suite release / check-package (pull_request) Has been cancelled
Suite release / reused-checks (pull_request) Has been cancelled
Suite release / check-build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Has been cancelled
16fcf83f4c
First-time contributor

merge-queue stopped this at 16fcf83: CI failed: Suite release / check-build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request). Push a fix. A failure fixed on main lands once the queue label is removed and added again: the queue merges main in and CI runs on the new head.

merge-queue stopped this at 16fcf83: CI failed: Suite release / check-build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request). Push a fix. A failure fixed on main lands once the `queue` label is removed and added again: the queue merges main in and CI runs on the new head.
Build again, now that the shared CI writes Cargo's config only when it differs
All checks were successful
Suite cluster-service / reused-checks (pull_request) Successful in 34s
Suite default / check-logs (pull_request) Successful in 33s
Suite rust / check-audit (pull_request) Successful in 32s
Suite release / scope (pull_request) Successful in 27s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite rust / check-machete (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Successful in 30s
Suite default / reused-checks (pull_request) Successful in 18s
Suite release / build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite release / build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite release / build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite release / build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite rust / check-format (pull_request) Successful in 34s
Suite rust / check-services (pull_request) Successful in 5m41s
Suite release / check-build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Successful in 6m20s
Suite release / check-build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Successful in 6m29s
Suite rust / check-test-windows (pull_request) Successful in 4m17s
Suite release / check-build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Successful in 6m51s
Suite rust / reused-checks (pull_request) Successful in 15s
Suite release / check-build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Successful in 7m23s
Suite release / check-package (pull_request) Successful in 5m33s
Suite release / reused-checks (pull_request) Successful in 4s
merge-queue landed on main
4ac3e7d44b
merge-queue deleted branch FZT2-10-rust-fzt 2026-12-01 02:32:33 -08:00
Sign in to join this conversation.
No description provided.