Skip to content

feat(cli): stream via marlin-host; drop the fragile M0/M108 pause - #261

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/cli-stream-marlin-host
Jun 28, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/cli-stream-marlin-host

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Slice F (CLI part) of the machine cutover (#195): rewire fiberpath stream onto marlin-host.

What

  • fiberpath_cli/stream.py now builds MarlinHost(SerialTransport(...), reliable=True) and streams via host.stream() — getting reliable line-numbered/checksummed framing, bounded busy-waits, and the real start-banner connect handshake, replacing the in-repo optimistic streamer (exact-ok match, echo:busy-resets-deadline hang).
  • Simplified: Ctrl+C aborts gracefully (host-side stop). The old M0/M108 board-hold + reset_progress-and-restart pause flow is removed — interactive pause/resume belongs to the desktop GUI. (Per the cutover decision to drop M0/M108 from the stream path.)
  • freeze_cli.py bundles marlin_host + pyserial's dynamic backend.

Validation

  • ruff/format/mypy clean; 10 CLI tests pass (dry-run + JSON contracts preserved: status/commands/total/baudRate/dryRun).
  • Validated on a real RAMPS board: --dry-run and live --port /dev/ttyACM0 both stream 5/5.

Scope

execution/marlin.py stays (still used by interactive.py/the GUI subprocess); it's deleted once the GUI moves off the stdio path (Slice E + the F deletes).

Rewire `fiberpath stream` onto marlin-host's MarlinHost (reliable framing,
bounded waits, real connect handshake) instead of fiberpath.execution's
optimistic streamer. Ctrl+C aborts gracefully (host-side stop); the old
M0/M108 board-hold + restart flow is dropped — interactive pause is the
GUI's job. freeze_cli bundles marlin_host + pyserial backends.

Validated on a real RAMPS board (dry-run + live 5/5). execution/marlin.py
stays for now (interactive.py still uses it); removed in a later slice.
Part of #195.
@CameronBrooks11
CameronBrooks11 merged commit c74e99a into main Jun 28, 2026
21 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/cli-stream-marlin-host branch June 28, 2026 02:01
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