Skip to content

Keep-warm pings go on past 97% once a session has had one - #876

Merged
petre-c merged 1 commit into
mainfrom
keep-warm-later-pings-past-97
Dec 1, 2026
Merged

petre-c merged 1 commit into
mainfrom
keep-warm-later-pings-past-97

Conversation

@petre-c

@petre-c petre-c commented Dec 1, 2026

Copy link
Copy Markdown

Deskbar task d0b73b28

Keep-warm stopped every ping once the five-hour window read 97%. On 2026-11-30 the window reached 97% at 12:44, two hours before its 14:50 reset. The advice session on iam.ge was due its third ping at 12:52, a ping of about 0.02 points. It waited, its cache went cold at 12:57, and the answer the next day reloaded 112K tokens cold, about 1.1 points. The trace shows "keep-warm rounds wait: the five-hour window is at 97%" from 12:44 on.

What changes, in KeepWarm.cs:

  • From 97%, a session's first ping (about 0.15 points) still waits. Its later pings go on until the window reads 100%, when every ping stops.
  • "Later" means the session has had a ping before (KeepWarmPlan.Later). The first version used a 0.05-point estimate threshold, and review found it held exactly the second ping after a resume: the first ping of a resumed session measures about 15K written, the next is estimated from that, and it really writes about 550.
  • The 5-point budget per window and the per-session break-even are unchanged.
  • The keep-warm line on Manage's Claude page says the new rule.

Tested locally: Release build with warnings as errors is clean, and the 69 KeepWarm tests pass.

Release notes

  • Keep-warm pings no longer stop for good when the five-hour window reaches 97%. A session that has already had one goes on getting them until the window is full, so a question you answer later does not reload the whole conversation. A session's first ping still waits past 97%.

opus5.5

On 2026-11-30 the five-hour window reached 97% at 12:44, two hours before
its reset. A waiting session's third ping, due at 12:52, would have cost
about 0.02 points. It waited instead, the cache went cold at 12:57, and the
answer the next day reloaded 112K tokens cold, about 1.1 points.

From 97% on, a session's first ping (about 0.15 points) still waits. Its
later pings go until the window reads 100%. The test is whether the session
has had a ping before, not the ping's estimate: after a resume the first
ping is measured at about 15K written, and the next is estimated from that
though it writes about 550. The 5-point budget still applies.

*opus5.5*
@petre-c
petre-c merged commit ff0a84f into main Dec 1, 2026
3 checks passed
@petre-c
petre-c deleted the keep-warm-later-pings-past-97 branch December 1, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant