Kagi v0.7.3 — internal structure: hotspot split, op-flow dedup, CI LOC gate
Maintenance release driven by Kagi's own Analyze view (hotspot/coupling) pointed at its own repo. No user-facing feature changes.
Changed
src/ui/mod.rsslimmed 5,850 → 4,402 LOC (#95). The top hotspot (risk 0.686) lost five blocks to their proper feature modules: modal input sync, the main-diff/compare family, conflict detection, branch/commit action dispatch, and the platform menu (newplatform_menu.rs).- Shared async op shell. The byte-identical spawn/finish scaffold repeated across 21 operation sites is now a single
finish_op_on_mainhelper (net −157 LOC). Theplan → confirm → preflight → execute → verify → oplogpipeline and all[kagi]log contract lines are unchanged. Implemented cross-model by GLM 5.2, reviewed by Claude.
CI
- Advisory file-LOC ratchet (
ci/check-loc.sh): files over 800 LOC can no longer grow past their recorded baseline without failing the advisory lint job — a guard against god-file regrowth.
Verification
- 831 tests green at every commit; UI git2-free grep gate = 0; GUI exercised live (WIP diff, stash push/pop round-trip through the new helper) before merge.