Repository navigation
feat(gui): drive Marlin through the API sidecar; delete the stdio bridge (#193, #194) - #262
Merged
Merged
Conversation
…dge (#193, #194) Rewire the desktop GUI's machine control from the Rust-owned `fiberpath interactive` stdio subprocess to the local HTTP API sidecar: - marlin-api.ts now calls the generated typed client (/machine/*); streaming progress is polled from GET /machine/jobs/{id}?since= instead of Tauri stream-* events. machine-session.svelte.ts runs a 250ms poll loop folding job events (progress/action/complete/error) into UI state. - Delete src-tauri/src/marlin.rs (~660 lines: ResponseRouter, subprocess manager, 10 marlin_* commands) and their main.rs registration + the now- unused direct tokio dep. The Tauri shell keeps window/file-picker/compute- sidecar only. tauri-types.ts deleted (no importers). - #146: connection panel shows firmware/capabilities. E-stop now also closes the sidecar connection so a reconnect (which DTR-resets the board) isn't refused as already-connected. GUI gate green: tsc, svelte-check (368 files, 0), 321 vitest, css lints, cargo check + clippy. Needs live-app + hardware validation. Part of #195.
This was referenced Jun 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Final cutover slice for epic #195: the GUI's machine control moves from the Rust-owned
fiberpath interactivestdio subprocess to the local API sidecar (#260), and the subprocess machinery is deleted.The automated gates are green, but this changes the live machine UX. Please drive the app against the RAMPS board and confirm:
.gcodefile → Start; live progress bar + current command advance via the 250 ms poll; milestone toasts at 25/50/75%; completion toast./machine/estop, halt the board, drop to Disconnected; then reconnect works (the fix below).What changed
marlin-api.ts→ typed client over/machine/*(no Tauri events/invoke).machine-session.svelte.ts→ 250 ms poll loop folding job events (progress/action/complete/error) into UI state;subscribe()removed.src-tauri/src/marlin.rsdeleted (~660 lines: ResponseRouter, subprocess manager, 10marlin_*commands);main.rscleaned; unused directtokiodep dropped;tauri-types.tsdeleted. Sidecar/window/file-picker machinery kept.ConnectionSection./estophalts but keeps the port open, so the GUI's stop=disconnect model would 409 on reconnect — the GUI now alsoDELETE /connectionafter estop (the next connect DTR-resets and recovers the board).Gates (green)
tsc, svelte-check (368 files, 0/0), 321 vitest, CSS lints,
cargo check+cargo clippy. (cargo verified in a fresh target dir — stalefiberpath-apisidecars from oldtauri devsessions hold the in-place binary;pkill -f bundled-api/fiberpath-apito clear them.)After this
Only the F-deletes remain (
execution/marlin.py+interactive.py+ theinteractiveCLI command — now unused) and the 0.9.0 release.