Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.242 Home All releases olderv2.1.241 v2.1.243newer
Claude Code v2.1.242

Groundwork for handling model refusals

Not switched on
Useful2 Signal4
Model Handling

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

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.

Details
  • An environment variable CLAUDE_CODE_REFUSAL_FALLBACK_CATCH_ALL sits 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.
Evidence

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.

See this entry in the whole of v2.1.242 →