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.232 Home All releases olderv2.1.231 v2.1.233newer
Claude Code v2.1.232

Truncating text to a zero or negative width returns nothing instead of misbehaving

You'll notice
Useful1 Signal0
Terminal UI

Text truncation at zero width now returns nothing instead of misbehaving.

What

The shared helper that cuts text to a given width now returns an empty string when asked for zero or fewer characters. It previously fell through to slicing and inspecting the character before the cut point.

Details
  • This matters for fetched page text, where the remaining budget is worked out by subtraction and can come out negative.
Evidence

if (t <= 0) return "";

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.232 →