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. |
||
|---|---|---|
| .. | ||
| backoff.go | ||
| backoff_test.go | ||
| daemon.go | ||
| daemon_test.go | ||
| pause_test.go | ||