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
fix(execution): bound response waits, add send timeout, and release the serial port on stop/error #185
Near-term stabilization — independent of the Machine-I/O epic. Safe to do with hardware on hand.
Scope
Cap the echo:busy deadline reset in _await_ok so a command Marlin never acks fails or reports ("machine busy on ") within a bounded time, instead of resetting the 10s timeout forever.
Add a timeout to the Rust send_and_wait (marlin.rs) so a blocked subprocess surfaces an error to the GUI instead of an indefinitely-pending invoke.
Guarantee the serial port is closed on stop / error / emergency-stop so reconnect can't fail with PermissionError: Access is denied.
Why (observed live)
Streaming freezes at [0/N] with no error, the UI can't send anything, and reconnect after M112 fails with a locked port.
Acceptance
A non-responding command surfaces an error within a bounded time; the GUI never hangs with no feedback; reconnect after a stop/abort always succeeds.
Closing — superseded by the machine-I/O refactor (board triage; hardware testing paused for a multi-week remote software stretch). The three fixes are fully absorbed: busy-reset bound + port-release → #182 (lifecycle); the Rust send_and_wait no-timeout disappears when #194 retires marlin.rs. Reopen only if a quick patch to the current 0.7.4 build is needed before the refactor lands.
Activity
CameronBrooks11 commentedon Jun 26, 2026
Closing — superseded by the machine-I/O refactor (board triage; hardware testing paused for a multi-week remote software stretch). The three fixes are fully absorbed: busy-reset bound + port-release → #182 (lifecycle); the Rust
send_and_waitno-timeout disappears when #194 retiresmarlin.rs. Reopen only if a quick patch to the current 0.7.4 build is needed before the refactor lands.