mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-30 23:27:57 +00:00
fix(web): show Codex round usage metadata (#1685)
* fix(web): show Codex round usage metadata * fix(web): skip imported Codex round duration
This commit is contained in:
@@ -424,6 +424,7 @@ describe('codexLocalLauncher', () => {
|
||||
expect(getModelReasoningEffort()).toBeNull();
|
||||
expect(agentMessages).toContainEqual(expect.objectContaining({
|
||||
type: 'token_count',
|
||||
flavor: 'codex',
|
||||
model: 'gpt-5.4',
|
||||
usageSchema: 'hapi.usage.v1',
|
||||
inputTokenSemantics: 'includes-cache'
|
||||
@@ -755,8 +756,10 @@ describe('codexLocalLauncher', () => {
|
||||
usageSchema: 'hapi.usage.v1',
|
||||
inputTokenSemantics: 'includes-cache'
|
||||
});
|
||||
expect(tokenMessages[0]).not.toHaveProperty('flavor');
|
||||
expect(tokenMessages[0]).not.toHaveProperty('thread_id');
|
||||
expect(tokenMessages[1]).toMatchObject({
|
||||
flavor: 'codex',
|
||||
threadId: 'codex-thread-import',
|
||||
thread_id: 'codex-thread-import',
|
||||
hapiUsageScope: 'managed',
|
||||
|
||||
Reference in New Issue
Block a user