Groundwork for spotting when the model refuses, with a banner slot that is still empty.
A refusal-phrase matcher and an onRefusalFallbackBanner stub exist, with the banner unimplemented.
What's wrong with this entry?
A pattern was added that recognises the openings of a refusal ("I can't", "I cannot", "I'm unable", "I'm sorry", "I apologize", "Sorry,"), and the streaming handler gained an onRefusalFallbackBanner slot that is still an empty stub. A retry check was narrowed at the same time: it now retries only when the failure reason is absent or is a full lane, rather than anything that was not a refusal.
- An environment variable
CLAUDE_CODE_REFUSAL_FALLBACK_CATCH_ALLsits in the environment map alongside this code; nothing in this build wires it to the banner slot. - With the banner unimplemented, the visible effect today is only the tighter retry rule.
onRefusalFallbackBanner
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.234
Search field in the model picker
Both mention model
-
v2.1.236
Cancellable waits when
/modeltalks to a cloud sessionBoth mention model
-
v2.1.238
Model and effort switch warning now checks whether the cache is actually warm
Both mention model