Skip to content

fix(spoolman): route gate fill, spool assignment and basic panel load/unload through the AMU manager - #347

Merged
gmmcosta15 merged 19 commits into
devfrom
fix/amu-3-spoolman-flows
Oct 14, 2026
Merged

gmmcosta15 merged 19 commits into
devfrom
fix/amu-3-spoolman-flows

Conversation

@gmmcosta15

@gmmcosta15 gmmcosta15 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Feature
  • Bug fix
  • Code refactor
  • Documentation

Stacked on #346 (merged). Moves the Spoolman and gate-map flows of the filament UI onto AMUManager and Spoolman's error handling.

Changes

  • Gates are no longer cleared on runout: _clear_gate_map is removed, and the pre-gate popup only opens when a gate fills.
  • With an MMU, Load is enabled only when the filament is UNLOADED (Happy-Hare only loads from there). Printers without an MMU keep the old rule.
  • The pre-gate popup no longer sends MMU_GATE_MAP REFRESH=1 (REFRESH is not a v3 parameter; it only dumped the map to the console).
  • Popup accept/skip and spool assignment go through AMUManager (set_gate_info, clear_gate, assign_spool) instead of building gcode from strings.
  • Basic panel: Unload sends MMU_EJECT; a refused Load/Unload shows a popup with the reason; a position change goes through recover_single_gate instead of MMU_RECOVER TOOL=0 GATE=0.
  • Spoolman calls go through FilamentTab._spoolman: when sending fails (no connection), the caller gets an error reply immediately. The vendor lookup reuses an existing vendor, matching names in any case, before creating one.
  • Spoolman errors are shown in the spool/filament pages, and stale lists are cleared.

Tests

  • tests/widgets/test_spoolman_ui_unit.py, tests/widgets/test_basic_filament_panel.py, tests/amu/test_manager_unit.py.

…disconnect, fetch spools via the Spoolman proxy
@gmmcosta15
gmmcosta15 force-pushed the fix/amu-3-spoolman-flows branch from d0d668e to b5de729 Compare October 13, 2026 15:36
@gmmcosta15
gmmcosta15 force-pushed the fix/amu-3-spoolman-flows branch from b5de729 to b99191e Compare October 13, 2026 16:17
@gmmcosta15
gmmcosta15 merged commit 39faad3 into dev Oct 14, 2026
11 checks passed
@gmmcosta15
gmmcosta15 deleted the fix/amu-3-spoolman-flows branch October 14, 2026 15:39
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.

2 participants