Skip to content

serial monitor: emit port_renumbered and port_reattached events for tracked USB serial moves #640

Closed

Description

@zackees

Parent: #592

After #638, device leases can track a USB serial number across COM port renumbering, but the serial monitor stream still only emits port_disconnected. The #592 design calls for explicit port_renumbered and port_reattached events so clients can distinguish a temporary detach from a successful rebind.

Scope:

  • add serial protocol/server event variants for port_renumbered and port_reattached
  • surface enough metadata for clients to update from the old port to the new port
  • integrate daemon-side serial/device refresh paths so tracked serial movement can notify stream subscribers
  • update Python sync/async readers to tolerate the new events without treating them as data lines
  • add focused tests for event serialization and daemon forwarding behavior

This is intentionally scoped to event surfacing; deeper transparent reader re-open can be handled separately if the existing manager lifecycle needs a larger refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions