Skip to content

Add real-time build log streaming to dashboard#39

Merged
Benbentwo merged 10 commits intomainfrom
Benbentwo/dashboard-log-stream
Feb 23, 2026
Merged

Add real-time build log streaming to dashboard#39
Benbentwo merged 10 commits intomainfrom
Benbentwo/dashboard-log-stream

Conversation

@Benbentwo
Copy link
Copy Markdown
Owner

Summary

Added real-time log streaming for ongoing builds in the dashboard. Build logs now stream to a collapsible terminal-style viewer underneath each editor instance card, providing live feedback during compilation with scroll-back history support.

Changes

Backend:

  • Added RunBuildScriptPiped() to return piped command for build I/O capture
  • Integrated LogCapture infrastructure into BuildOrchestrator for streaming build logs through ring buffer
  • Implemented SSE endpoint /api/build/logs/stream with three event types: build_log_history (recent lines), build_log (live), build_log_end (completion)
  • Added unit tests for log capture lifecycle and SSE behavior

Frontend:

  • Added LogLineEvent type for typed log line events
  • Created useBuildLogStream hook managing EventSource connection and cleanup
  • Built BuildLogViewer component with terminal-style rendering, auto-scroll with scroll-back history, color-coded severity levels
  • Extracted InstanceCard sub-component to enable proper React hook usage per instance

Logs only stream during active builds and display only for the instance with an ongoing build.

Benbentwo and others added 10 commits February 22, 2026 18:29
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…hestrator

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Benbentwo Benbentwo merged commit 5e0829d into main Feb 23, 2026
6 checks passed
@Benbentwo Benbentwo deleted the Benbentwo/dashboard-log-stream branch February 23, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant