Files
buzz/desktop/scripts
Matt TooheyandClaude Fable 5 7cb19696bf chore(desktop): repair pre-existing clippy and file-size gate breakage
Two quality gates fail at the branch head with no working-tree changes,
blocking any new commit behind the pre-commit/pre-push hooks:

- clippy 1.95 flags the redundant closure around process_is_running in
  should-restart discovery wiring (agent_discovery.rs); pass the
  function directly.
- agent_discovery.rs measures 1400 lines against its 1398 file-size
  ledger limit (two lines landed without a matching ratchet bump);
  ratchet the ledger to match reality — this change adds no lines.

The ledger also carries the ratchet bumps (discovery.rs 1130 -> 1134,
tauri.ts 1317 -> 1320, types.ts 1049 -> 1051) for the Doctor
bundled-adapter copy change that lands in the next commit: lefthook
checks out the staged half of a partially staged file while running
pre-commit, so splitting the ledger hunks across the two commits makes
the gate judge the next commit's files against the old limits.

Verification: cargo clippy --lib --tests -D warnings (desktop/src-tauri)
clean; node desktop/scripts/check-file-sizes.mjs passes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
2026-07-15 13:45:33 +10:00
..