mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
Spool responses carry fields derived from the filament (remaining_length, plus the initial_weight/price fall-backs). Editing a filament emitted only a filament WS event, so subscribers to that filament's spools kept stale derived values until each spool was next touched — visible in client_v2 as a length inconsistent with the displayed density, but affecting every consumer. filament.update now re-broadcasts the filament's spools (archived included) as spool "updated" events after commit. Adds a WS integration test asserting a density patch reaches /api/v1/spool with the new density and changed length. Claude-Session: https://claude.ai/code/session_014Cwk5Yyze9yPvkYkUtMAP4