Files
hapi/shared/fixtures/chat/codex-context-compacted.json
T
Junmo KimandGitHub be41e854e0 feat(codex,opencode): show compaction summaries and token counts (#2249)
* 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
2026-11-01 09:54:10 +08:00

87 lines
2.6 KiB
JSON

{
"description": "Codex family: context_compacted preserves reported before tokens in the common compaction presentation without inventing missing content.",
"expected": {
"blocks": [
{
"createdAt": 1755000000000,
"id": "msg-user-511",
"kind": "user-text",
"localId": null,
"text": "Carry on."
},
{
"createdAt": 1755000003100,
"event": {
"summary": "",
"tokensBefore": 186211,
"type": "compact-summary"
},
"id": "msg-codex-512",
"kind": "agent-event"
}
],
"hasReadyEvent": false,
"latestUsage": null,
"visibleBlocks": [
{
"createdAt": 1755000000000,
"id": "msg-user-511",
"kind": "user-text",
"localId": null,
"text": "Carry on."
},
{
"createdAt": 1755000003100,
"event": {
"summary": "",
"tokensBefore": 186211,
"type": "compact-summary"
},
"id": "msg-codex-512",
"kind": "agent-event"
}
]
},
"fixtureVersion": 1,
"input": {
"agentState": null,
"messages": [
{
"content": {
"content": {
"text": "Carry on.",
"type": "text"
},
"role": "user"
},
"createdAt": 1755000000000,
"id": "msg-user-511",
"localId": null,
"seq": 1
},
{
"content": {
"content": {
"data": {
"pre_tokens": 186211,
"thread_id": "thread-42",
"trigger": "auto",
"type": "context_compacted"
},
"type": "codex"
},
"role": "agent"
},
"createdAt": 1755000003100,
"id": "msg-codex-512",
"localId": null,
"seq": 2
}
],
"options": {
"hasMoreMessages": false
}
},
"name": "codex-context-compacted"
}