Skip to content

Unplug, replug, sleep and quit, with one resync routine #20

Closed

Description

@Skeyelab

Parent

#12

What to build

The bridge survives a bumped cable, Mac sleep and quitting without leaving anything stuck in Syndicate.

Acceptance criteria

  • CoreMIDI device notifications, not polling, detect removal and addition. Matching is by unique id, then name, then channel.
  • Unplugging sends the held-control releases (nudge, cue, hot cue, roll, reverse) exactly once, closes the ports, and logs and shows the disconnect.
  • A send or read error counts as a disconnect, and the fake MIDI system can inject one.
  • Replugging reopens the ports and runs the one resync routine: clear the LED cache, repaint every LED, send one Resend. It logs and shows the reconnect.
  • Starting with no controller is not an error. It connects when the controller appears.
  • The bridge releases held controls when the Mac is about to sleep and re-checks the devices on wake. Quit waits until the release sends have gone out.
  • LED writes while the controller is unplugged are dropped without error.
  • Written test-first with /tdd, at the agreed seams (the Coordinator with fakes, and OSC packet bytes).

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions