Skip to content

feat: stream live compilation output to Tauri viewer via SSE (#43) - #53

Merged
zackees merged 1 commit into
mainfrom
feat/tauri-sse-streaming
Apr 12, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/tauri-sse-streaming

Conversation

@zackees

@zackees zackees commented Apr 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Tauri viewer now shows live compilation output during build, same as the browser path
  • Added ViewerMode enum (Browser / TauriViewer) to compile_and_serve()
  • Both --app (Tauri) and default (browser) paths now route through the same SSE-streaming compile+serve infrastructure
  • Removed the old compile-then-launch Tauri flow (37 lines of dead code)
  • Cleaned up rebuild_python_args() — removed the now-unnecessary tauri_viewer parameter

What changed

The Tauri viewer previously compiled FIRST (with no user-visible progress), THEN opened. Now it opens immediately, shows the loading page with SSE log streaming, and auto-reloads when compilation completes — identical to the browser experience.

Test plan

  • cargo test -p fastled-cli — 58 tests pass
  • cargo fmt / cargo clippy clean
  • CI passes

Closes #43

Route the Tauri viewer path through compile_and_serve() so it uses the
same Rust HTTP server + SSE infrastructure as the browser path. The
viewer now shows real-time compilation output instead of a blank screen
until compilation finishes.

Key changes to main.rs:
- Add ViewerMode enum (Browser | TauriViewer) to control display target
- compile_and_serve() accepts ViewerMode and launches the appropriate
  viewer (browser or Tauri) before compilation begins
- Remove the old Tauri compile-then-launch flow from main()
- Simplify rebuild_python_args() by removing the tauri_viewer parameter
- Remove unused output_dir_from_cli() helper
@zackees
zackees merged commit 88e0aba into main Apr 12, 2026
25 checks passed
@zackees
zackees deleted the feat/tauri-sse-streaming branch April 12, 2026 14:59
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.

feat: stream live compilation output to Tauri viewer

1 participant