The hook was prepending every SSE log entry into React state without bound. Long-lived active agents flooded the array (hundreds of MB) and the dashboard eventually died with an out-of-memory crash. Cap the buffer at 200 entries — the UI only ever renders the first 20, so the cap is generous but finite. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4.6 KiB
4.6 KiB