/clear burns context on the wrong ones. This diagnostic asks four questions to identify which sub-pattern is most likely hitting your session.
Source: #62344. Errors accumulate as the session grows. Past malformed-recovery attempts pollute the recent-tool-call context, biasing subsequent tool calls toward the same malformed shape. Recovery: /clear. Defense hook: long-session-malformed-tool-call-detector.sh (PR #406, 40 tests).
Source: #62467. The tool call generated inside a thinking block becomes inconsistent at the serialization boundary. Surfaces specifically with reasoning effort enabled. Recovery: turn off extended thinking, or switch model temporarily. /clear does not help because the defect re-occurs on the next thinking-enabled turn. Defense hook: extended-thinking-tool-use-mismatch-detector.sh (PR #419, 43 tests).
Source: #62700. The tool call actually executed correctly, but the notice fires anyway. The fragment-of-"call" leakage some users describe is a candidate for this — the runtime shows artifact output even though the tool dispatched. Recovery: check the actual tool output before retrying. Both /clear and model switch make it worse by burning context. Defense hook: spurious-malformed-notice-detector.sh (PR #423, 53 tests).
Source: #49747. Specific to long tool-call inputs. The legacy XML closing tag leaks into the new format and trips the parser. Recovery: shorten arguments, split one long call into multiple shorter ones, reduce argument verbosity. /clear does not help because the same long input will reproduce. Defense hook: xml-format-leak-detector.sh (PR #424, 58 tests).