ponytail-review caught it: publishActivity -> ctrl.Publish -> broker -> SSE was a producer with nothing on the other end. GET /events only feeds the M11 TUI, which is demand-driven and not built. /state + /pause + /resume cover every real caller (devbox status/pause/resume). Cut the broker, handleEvents, Publish, publishActivity, and the ctrl handle — re-add the (small, known) fan-out when a TUI actually consumes it. Net -100 lines. |
||
|---|---|---|
| .. | ||
| control.go | ||
| control_test.go | ||
| server.go | ||
| server_windows.go | ||