fix(agents): narrow compaction subscription events · openclaw/openclaw@7d9b13d
steipete
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -115,12 +115,21 @@ export function createEmbeddedPiSessionEventHandler(ctx: EmbeddedPiSubscribeCont
|
115 | 115 | return; |
116 | 116 | case "compaction_start": |
117 | 117 | scheduleEvent(evt, () => { |
118 | | -handleCompactionStart(ctx, evt); |
| 118 | +handleCompactionStart(ctx, { |
| 119 | +type: "compaction_start", |
| 120 | +reason: evt.reason, |
| 121 | +}); |
119 | 122 | }); |
120 | 123 | return; |
121 | 124 | case "compaction_end": |
122 | 125 | scheduleEvent(evt, () => { |
123 | | -handleCompactionEnd(ctx, evt); |
| 126 | +handleCompactionEnd(ctx, { |
| 127 | +type: "compaction_end", |
| 128 | +reason: evt.reason, |
| 129 | +willRetry: evt.willRetry, |
| 130 | +result: evt.result, |
| 131 | +aborted: evt.aborted, |
| 132 | +}); |
124 | 133 | }); |
125 | 134 | return; |
126 | 135 | case "agent_end": |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。