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 e14bd52
Browse filesBrowse the repository at this point in the historyBrowse files
test(context): use well-formed tool pairs in pending-token fixtures
The drop of id-less tool results during pairing repair (previous commit)
correctly removes malformed history, but three pending-token tests fed bare
`tool` messages (no tool_call_id, no opening assistant tool call) as token
ballast through the restore/repair path, so they now under-counted.
Production tool results always carry the originating tool_call_id, so model
the fixtures realistically: an assistant message that opens a tool call plus
a paired tool result, both after the last `_usage`. They survive pairing
repair and keep the pending estimate intact — exercising the post-`_usage`
slice accounting without depending on malformed history.
0 commit comments