mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-07 01:21:37 +00:00
fix: normalize cache token usage semantics (#1390)
Normalize usage input at parse time, mark inclusive producers, rebuild derived usage indexes, and preserve valid primary usage when cache partitions are malformed. Fixes #1389
This commit is contained in:
@@ -2695,6 +2695,8 @@ describe('codexRemoteLauncher', () => {
|
||||
expect(codexMessages).toContainEqual(expect.objectContaining({
|
||||
type: 'token_count',
|
||||
thread_id: 'thread-1',
|
||||
usageSchema: 'hapi.usage.v1',
|
||||
inputTokenSemantics: 'includes-cache',
|
||||
scope_role: 'parent',
|
||||
scope: expect.objectContaining({
|
||||
role: 'parent',
|
||||
|
||||
Reference in New Issue
Block a user