mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-18 03:27:08 +00:00
* fix(chat): render available compaction facts * feat(opencode): unify native compaction summary cards * fix(opencode): report actual compaction application lifecycle * feat(codex): render native compaction checkpoints and metrics * fix(chat): render compaction summaries and token facts in native clients * fix(opencode): preserve transcript priming across read failures * fix(opencode): recover snapshot-only replies after attachment
68 lines
2.1 KiB
JSON
68 lines
2.1 KiB
JSON
{
|
|
"description": "Compaction summary facts preserve exact and estimated counts independently across event envelopes.",
|
|
"expected": {
|
|
"blocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"event": {
|
|
"compactionId": "compact-exact",
|
|
"estimatedTokensAfter": 2,
|
|
"summary": "",
|
|
"tokensAfter": 0,
|
|
"tokensBefore": 100,
|
|
"type": "compact-summary"
|
|
},
|
|
"id": "codex-compact-summary-exact-after",
|
|
"kind": "agent-event"
|
|
}
|
|
],
|
|
"hasReadyEvent": false,
|
|
"latestUsage": null,
|
|
"visibleBlocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"event": {
|
|
"compactionId": "compact-exact",
|
|
"estimatedTokensAfter": 2,
|
|
"summary": "",
|
|
"tokensAfter": 0,
|
|
"tokensBefore": 100,
|
|
"type": "compact-summary"
|
|
},
|
|
"id": "codex-compact-summary-exact-after",
|
|
"kind": "agent-event"
|
|
}
|
|
]
|
|
},
|
|
"fixtureVersion": 1,
|
|
"input": {
|
|
"agentState": null,
|
|
"messages": [
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"data": {
|
|
"compactionId": "compact-exact",
|
|
"estimatedTokensAfter": 2,
|
|
"summary": "",
|
|
"tokensAfter": 0,
|
|
"tokensBefore": 100,
|
|
"type": "compact-summary"
|
|
},
|
|
"type": "codex"
|
|
},
|
|
"role": "agent"
|
|
},
|
|
"createdAt": 1755000000000,
|
|
"id": "codex-compact-summary-exact-after",
|
|
"localId": null,
|
|
"seq": 1
|
|
}
|
|
],
|
|
"options": {
|
|
"hasMoreMessages": false
|
|
}
|
|
},
|
|
"name": "codex-compact-summary-exact-after"
|
|
}
|