mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +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
141 lines
4.6 KiB
JSON
141 lines
4.6 KiB
JSON
{
|
|
"description": "A readable summary enriches only its exact persisted compaction boundary, across intervening real output and either replay order.",
|
|
"expected": {
|
|
"blocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"event": {
|
|
"compactionId": "codex:thread:turn:item:context_compacted",
|
|
"summary": "Native checkpoint summary",
|
|
"type": "compact-summary"
|
|
},
|
|
"id": "boundary",
|
|
"kind": "agent-event"
|
|
},
|
|
{
|
|
"createdAt": 1755000000100,
|
|
"id": "answer:0",
|
|
"kind": "agent-text",
|
|
"localId": null,
|
|
"text": "Normal final answer is preserved."
|
|
},
|
|
{
|
|
"createdAt": 1755000000300,
|
|
"event": {
|
|
"compactionId": "codex:other:turn:item:context_compacted",
|
|
"summary": "",
|
|
"type": "compact-summary"
|
|
},
|
|
"id": "other",
|
|
"kind": "agent-event"
|
|
}
|
|
],
|
|
"hasReadyEvent": false,
|
|
"latestUsage": null,
|
|
"visibleBlocks": [
|
|
{
|
|
"createdAt": 1755000000000,
|
|
"event": {
|
|
"compactionId": "codex:thread:turn:item:context_compacted",
|
|
"summary": "Native checkpoint summary",
|
|
"type": "compact-summary"
|
|
},
|
|
"id": "boundary",
|
|
"kind": "agent-event"
|
|
},
|
|
{
|
|
"createdAt": 1755000000100,
|
|
"id": "answer:0",
|
|
"kind": "agent-text",
|
|
"localId": null,
|
|
"text": "Normal final answer is preserved."
|
|
},
|
|
{
|
|
"createdAt": 1755000000300,
|
|
"event": {
|
|
"compactionId": "codex:other:turn:item:context_compacted",
|
|
"summary": "",
|
|
"type": "compact-summary"
|
|
},
|
|
"id": "other",
|
|
"kind": "agent-event"
|
|
}
|
|
]
|
|
},
|
|
"fixtureVersion": 1,
|
|
"input": {
|
|
"agentState": null,
|
|
"messages": [
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"data": {
|
|
"compactionId": "codex:thread:turn:item:context_compacted",
|
|
"summary": "Native checkpoint summary",
|
|
"type": "compact-summary"
|
|
},
|
|
"type": "codex"
|
|
},
|
|
"role": "agent"
|
|
},
|
|
"createdAt": 1755000000000,
|
|
"id": "boundary",
|
|
"localId": null,
|
|
"seq": 1
|
|
},
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"data": {
|
|
"message": "Normal final answer is preserved.",
|
|
"type": "message"
|
|
},
|
|
"type": "codex"
|
|
},
|
|
"role": "agent"
|
|
},
|
|
"createdAt": 1755000000100,
|
|
"id": "answer",
|
|
"localId": null,
|
|
"seq": 2
|
|
},
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"data": {
|
|
"id": "codex:thread:turn:item:context_compacted",
|
|
"type": "context_compacted"
|
|
},
|
|
"type": "codex"
|
|
},
|
|
"role": "agent"
|
|
},
|
|
"createdAt": 1755000000200,
|
|
"id": "summary",
|
|
"localId": null,
|
|
"seq": 3
|
|
},
|
|
{
|
|
"content": {
|
|
"content": {
|
|
"data": {
|
|
"id": "codex:other:turn:item:context_compacted",
|
|
"type": "context_compacted"
|
|
},
|
|
"type": "codex"
|
|
},
|
|
"role": "agent"
|
|
},
|
|
"createdAt": 1755000000300,
|
|
"id": "other",
|
|
"localId": null,
|
|
"seq": 4
|
|
}
|
|
],
|
|
"options": {
|
|
"hasMoreMessages": false
|
|
}
|
|
},
|
|
"name": "codex-compaction-summary-before-boundary"
|
|
}
|