Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.232 ·

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

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

You'll notice Bug Fixes
JSON All of v2.1.232
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
Terminal UIArea: what it touches
Bug FixesKind: in v2.1.232,
Bug FixesSection of the release
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 →

Feedback