Repository navigation
fix(notifications): name FlowGuard clog/tangle, keep ws alive on callback errors - #351
Merged
Merged
Conversation
RobeMartins
requested changes
Oct 16, 2026
RobeMartins
left a comment
Collaborator
There was a problem hiding this comment.
happy hare m117 filter is not needed since happy hare has a flag to disable them
RobeMartins
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes two Happy Hare and connection problems seen on AMU printers: FlowGuard clogs being reported as tangles, and the screen getting stuck on "Klipper down" after Klipper had recovered.
Changes
FlowGuard detected a clog/A clog has been detected on ...-> "Filament Clog Detected"FlowGuard detected a tangle/A tangle has been detected on ...-> "Filament Tangle Detected"A clog/tangle has been detected(encoder setups, HH can't tell which) -> "Filament Clog or Tangle"moonrakerComm.on_error: now only logs; removed the unusedself.disconnectedMotivation
flowguardto "Filament Tangle Detected", so a real clog showed as a tangle. dev only matched the tangle text, so a clog had no specific message.on_errorwithout closing the socket and without callingon_close. The oldon_errorsetconnected=False, after which everysend_request, including theserver.infopoll, was dropped andreconnect()never retried because the ws thread was still alive. The "shutdown" notification kept arriving but the "ready" that clears it never came, so the screen stayed on "Klipper down" until BlocksScreen was restarted (seen on an RF50 running 8408a6e on 10-13, 10-14 and 10-15). A real drop always ends inteardown()->on_close, which already setsconnected=False; KlipperScreen'son_erroralso only logs.Tests