You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pit: raise the paste ceiling to 1000 and stop on the clock, not a count (#143)
* pit: raise the paste ceiling to 1000 and stop on the clock, not a count
A real paste hit the old cap: 195 claimed, "389 past the 200 limit, not
attempted" — and nothing said what to do about the 389.
Two changes.
The ceiling goes 200 -> 1000, but it is no longer the thing that usually stops
a paste. Claiming now runs against a 20s budget and stops when the budget is
spent. A count cannot know how slow the database is today; the failure it was
guarding against was a request dying halfway with no report of what landed, and
a clock guards that directly. A fast database gets through hundreds, a slow one
stops early, and neither ends as a timed-out request whose result nobody sees.
The budget is checked before each write and never before the first, so an
already-slow database still claims one rather than reporting a paste that did
nothing and looks broken.
Whatever is left is now named and actionable: "N not attempted — paste them
again to carry on", covering both the over-ceiling and out-of-time cases, which
are the same problem from the user's side.
Caught while testing: the single-ending shortcut in summarizeBulkClaim did not
know about leftovers, so one claim plus four unattempted reported as ".x is
yours." and silently lost the four.
6 more tests. 262 across the pwa suite.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* pit: say "1k", not "1000"
The hint interpolates the ceiling, so raising it to 1000 made the line read
"Up to 1000 at a time." A ceiling is a rough promise and should read like one.
Only exact thousands are shortened. 1500 stays 1500, because "1.5k" reads as
an approximation of a number that is exact, and the whole point of the line is
telling someone where the limit actually is.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments