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
{{ message }}
Repository navigation
Commit c0cf608
Browse filesBrowse the repository at this point in the historyBrowse files
fix(billing): stop free-plan workflow runs at their usage limit mid-run (#9207)
* fix(billing): stop free-plan workflow runs at their usage limit mid-run
* fix(billing): recheck after compaction, bill settled tool costs on the usage stop
* fix(billing): bill compaction summaries on the usage stop, share run spend with workflow tools
* fix(billing): bill journaled attempts on the usage stop
* fix(billing): pass the usage stop through providers by class, bill continued calls once
- RunUsageLimitError joins the errors every provider already rethrows unwrapped, replacing the
per-request side channel that could mask an unrelated later failure
- The stop is attributed to the user, so provider, stream-loop and stream-read logs record it at
info; a run abort is classified before attribution so a run timeout still logs at warn
- A pending call continued from an earlier attempt is billed through the journal only
- The stop bills tool results the way success does: successful results and failed Function runs
* fix(billing): count a resumed turn's journaled spend toward the usage limit once
- A turn an earlier process journaled adds its model spend to the run's unrecorded total the first
time this run opens it; reopening the turn (fallback model, block retry) never counts it again
- Type the continued-call test's tool as a ProviderToolConfig
* fix(billing): charge a continued Function call's failure once, through the journal
0 commit comments