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 a495bd8
Browse filesBrowse the repository at this point in the historyBrowse files
test(claude): activate the budgeted raw-frame parser with unspaced fields (#1170)
The offset-based parser inside responsesSseToAnthropicSse was covered only
indirectly. This drives it head-on: the same six Responses frames in spaced and
unspaced form, asserting identical event names, identical translated text, and
identical budget accounting.
The budget assertion compares the two paths rather than asserting zero. This
translator leaves a small residue at stream end on the spaced path too (51
bytes for this fixture), so zero would be asserting something that was never
true. Equality is the contract the offset arithmetic must satisfy.
Confirmed to fail when the offset fix is reverted.
0 commit comments