Skip to content

refactor(gui): reduce Tauri shell to a native shell (#194) - #212

Merged
CameronBrooks11 merged 1 commit into
mainfrom
refactor/tauri-drop-dead-compute-commands-194
Jun 26, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
refactor/tauri-drop-dead-compute-commands-194

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #194.

After #192/#193 the desktop app runs compute through the bundled FastAPI sidecar via the generated typed client. The Tauri shell's own compute commands — which shelled out to the fiberpath CLI and round-tripped through temp files — are now dead. This removes them so the shell is a thin native host (window, file I/O, sidecar supervision, Marlin serial path).

Removed

  • Commands: plan_wind, simulate_program, plot_preview, plot_definition, validate_wind_definition
  • The PlotPreview struct and the temp-file machinery (temp_path, TEMP_COUNTER, TempFile) they used
  • Now-unused imports (base64, AtomicU64/Ordering, SystemTime/UNIX_EPOCH) and the base64 crate dependency
  • Two dead unit-test modules that only covered the removed temp-file helpers (one in main.rs, the tautological cfg! assert in cli_path.rs)

Net: ~290 lines removed across 4 source files.

Kept (still in use)

Also

  • .gitignore now excludes the frozen bundled-cli/bundled-api binaries (tracking only the .gitkeep placeholders) so local builds can't accidentally commit them.

Verification (local)

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings clean, cargo test green
  • GUI tsc clean, vitest green
  • Full tauri build succeeds — shell links and bundles (AppImage + deb)
  • Adversarial review pass: confirmed no surviving frontend invoke() references any removed command, the generate_handler! list matches the defined commands, and no removed import is still referenced.

Note: fiberpath_gui/docs/architecture/cli-integration.md still describes the old invoke→CLI compute architecture and is now inaccurate; a docs refresh is tracked separately, out of scope here.

Refs #195.

Compute now runs through the bundled FastAPI sidecar (#192/#193), so the
Tauri shell no longer needs its own compute commands. Remove the dead
`plan_wind`, `simulate_program`, `plot_preview`, `plot_definition`, and
`validate_wind_definition` commands along with the `PlotPreview` struct
and the temp-file machinery (`temp_path`, `TEMP_COUNTER`, `TempFile`)
they used, plus the now-unused `base64`, atomic-counter, and system-time
imports and the `base64` crate dependency.

The CLI subprocess path (`exec_fiberpath`, `stream_program`) and file
I/O commands stay: they still drive the Marlin serial path until its
REST surface lands (#190/#199). Drop two dead unit-test modules that
only covered the removed temp-file helpers.

Ignore the frozen `bundled-cli`/`bundled-api` binaries so local builds
can't accidentally commit them.

Refs #194
@CameronBrooks11
CameronBrooks11 merged commit 3ca437b into main Jun 26, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the refactor/tauri-drop-dead-compute-commands-194 branch June 26, 2026 16:42
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.

refactor: reduce Tauri to a native shell; retire the GUI's CLI-subprocess and stdio Marlin protocol

1 participant