fix: mark codex compaction events completed · openclaw/openclaw@8092761
Kyzcreig
·
2026-05-16
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1096,6 +1096,12 @@ describe("CodexAppServerEventProjector", () => {
|
1096 | 1096 | expect(findAgentEvent(onAgentEvent, { stream: "compaction", phase: "start" }).data.itemId).toBe( |
1097 | 1097 | "compact-1", |
1098 | 1098 | ); |
| 1099 | +expect(findAgentEvent(onAgentEvent, { stream: "compaction", phase: "end" }).data).toMatchObject( |
| 1100 | +{ |
| 1101 | +itemId: "compact-1", |
| 1102 | +completed: true, |
| 1103 | +}, |
| 1104 | +); |
1099 | 1105 | expect(result.toolMetas).toEqual([{ toolName: "sessions_send" }]); |
1100 | 1106 | expect(result.messagesSnapshot.map((message) => message.role)).toEqual([ |
1101 | 1107 | "user", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -528,6 +528,7 @@ export class CodexAppServerEventProjector {
|
528 | 528 | data: { |
529 | 529 | phase: "end", |
530 | 530 | backend: "codex-app-server", |
| 531 | +completed: true, |
531 | 532 | threadId: this.threadId, |
532 | 533 | turnId: this.turnId, |
533 | 534 | itemId, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。