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.
Truncating text to a zero or negative width returns nothing instead of misbehaving
You'll notice
Useful1Signal0
Terminal UI
Text truncation at zero width now returns nothing instead of misbehaving.
What's wrong with this entry?
Anonymous. No account, no email.
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.