In BuildLogPanel.tsx:88-91, the es.onerror handler closes over the done variable from the initial render (false). When the build finishes and setDone(true) is called, the onerror handler still sees done === false and never calls es.close(). If the server drops the SSE connection after the build, the EventSource will keep reconnecting indefinitely after the build is already complete.
In
BuildLogPanel.tsx:88-91, thees.onerrorhandler closes over thedonevariable from the initial render (false). When the build finishes andsetDone(true)is called, theonerrorhandler still seesdone === falseand never callses.close(). If the server drops the SSE connection after the build, the EventSource will keep reconnecting indefinitely after the build is already complete.