Skip to content

build(gui): sidecar serial-crash / orphaned-job recovery #200

Closed

Description

@CameronBrooks11

Part of #195. Split from #192 (which keeps the hardened transport: loopback + ephemeral port + per-launch token). Paired with #199.

Scope — the failure modes a serial-owning sidecar introduces

  • Mid-job sidecar crash loses the in-process job_id → a re-attaching client must get orphaned state, not a 404.
  • Closing the serial port toggles DTR → resets Marlin while the machine is moving — recovery must avoid a blind port re-open during an active job.
  • Health-gate + respawn semantics that never silently restart under a live job.

Acceptance

  • A sidecar crash mid-stream is recoverable without an unintended controller reset; job state survives as orphaned; documented recovery path.
  • Forbid escalation to TLS / cert-pinning.

Activity

  1. added
    bug
    python
    rust
    tauri
    needs-hardware
    on Jun 26, 2026
  2. CameronBrooks11 commented on Jun 28, 2026

    @CameronBrooks11
    MemberAuthor

    Status after the 0.9.0 cutover: the job runner + state machine shipped in #260 (MachineService: disconnected/connected/streaming/paused/error; a lock serializes manual commands against the worker; out-of-band M112). Still open here: orphaned-job recovery across a sidecar crash — a re-attaching client currently gets a 404 for an unknown job id (no orphaned state is persisted), and the don't-blind-reopen-during-an-active-job + health-gate-respawn semantics aren't implemented yet. That's the remaining work.

  3. added a commit that references this issue on Jun 28, 2026
    3ded795
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-hardwarepythonrusttauri

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions