You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(gui): consume the API client; replace event streaming with polling #193
Swap the two backend-wrapper modules (lib/commands.ts, lib/marlin-api.ts) and the 3 stray invoke() sites (useCliHealth, CliUnavailableDialog) to the generated API client. Keep wrapper signatures stable so UI/stores/hooks are largely untouched.
Replace the Tauri event subscription (useStreamEvents + onStream* + emit/listen) with pollingGET /jobs/{id} during a job; delete the now-dead event apparatus.
Why
The review found the frontend is well-contained — only 4 files call invoke(), two are the dedicated api modules — so this is concentrated, not scattered. UI/stores/converters/error-handling are reusable as-is.
Acceptance
The GUI talks only to the API client (no backend invoke()); job progress is polled; no Tauri event listeners remain for streaming.
Note from #198 (PR #202): when the GUI moves off the CLI subprocess to the API client, also unify the CLI's JSON output (fiberpath_cli/plan.py, fiberpath_cli/simulate.py) onto the shared fiberpath/wire.py schema. It was deliberately left untouched in #198 because the current GUI parses the CLI's existing (inconsistent snake/camel) shape via fiberpath_gui/src/lib/schemas.ts (expects estimated_time_s), so changing it then would have broken the GUI. Once the GUI consumes the API (which already uses wire.py), the CLI output can be unified or retired.
Activity
CameronBrooks11 commentedon Jun 26, 2026
Note from #198 (PR #202): when the GUI moves off the CLI subprocess to the API client, also unify the CLI's JSON output (
fiberpath_cli/plan.py,fiberpath_cli/simulate.py) onto the sharedfiberpath/wire.pyschema. It was deliberately left untouched in #198 because the current GUI parses the CLI's existing (inconsistent snake/camel) shape viafiberpath_gui/src/lib/schemas.ts(expectsestimated_time_s), so changing it then would have broken the GUI. Once the GUI consumes the API (which already useswire.py), the CLI output can be unified or retired.build(gui): generated OpenAPI TypeScript client + CI drift gate (#205)
feat: bundle + supervise the FastAPI as a local sidecar (#192) (#207)
feat(api): declare the 400 response on compute routes (#211)
fix(gui): resolve bundled CLI + sidecar under _up_ on all platforms
refactor(gui): consume the API client for compute operations
fix(gui): resolve bundled CLI + sidecar under _up_ on all platforms
fix(api): allow CORS so the desktop webview can call the sidecar
refactor(gui): consume the API client for compute operations (#193) (#…
refactor(gui): reduce Tauri shell to a native shell (#194) (#212)
docs(gui): refresh architecture docs for the sidecar compute path (#213)
feat(gui): drive Marlin through the API sidecar; delete the stdio bri…
chore(release): prepare 0.9.0 (#264)