In BuildLogPanel.tsx:57-98, the SSE useEffect lists only [sessionId, apiUrl] as dependencies but calls onComplete inside the event handler. If the parent re-renders and passes a new onComplete reference before the build finishes, the handler will invoke the stale version of the callback, potentially operating on outdated state in the parent component.
In
BuildLogPanel.tsx:57-98, the SSEuseEffectlists only[sessionId, apiUrl]as dependencies but callsonCompleteinside the event handler. If the parent re-renders and passes a newonCompletereference before the build finishes, the handler will invoke the stale version of the callback, potentially operating on outdated state in the parent component.