You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
serial monitor: emit port_disconnected events when the daemon reader loses the port #636
Refs #592.\n\n## Context\n\nThe #592 rollout calls for structured disconnect / re-enumeration events so clients do not guess whether a serial port is alive. Today the serial reader logs a read error and stops, but WebSocket subscribers only receive serial data frames; there is no structured port_disconnected event for clients to handle.\n\n## Acceptance\n\n- The daemon's shared serial manager broadcasts a typed disconnect event when the background reader exits due to a non-timeout serial read error.\n- /ws/serial-monitor forwards that event as a structured port_disconnected server message with at least port, reason, and message fields.\n- HTTP/deploy monitor consumers handle the typed event without treating it as serial data.\n- Python client message decoding tolerates the new event variant.\n- Tests cover serialization and consumer handling of the disconnect event.\n\nThis is a first shippable slice of #592 section 3.3; transparent renumber/rebind with rack_serial=True can build on the event channel in a later child issue.
Activity
fix(serial): emit disconnect events (#637)