feat: track compaction count + verbose notice

This commit is contained in:
Peter Steinberger committed 2026-01-06 02:49:03 +01:00
1 parent 3c6dea3ef3
commit b30bae89ed
12 files changed
+293 -6

No files matched your search

+8
View File
@@ -555,6 +555,10 @@ export function subscribeEmbeddedPiSession(params: {
compactionInFlight = true;
ensureCompactionPromise();
log.debug(`embedded run compaction start: runId=${params.runId}`);
params.onAgentEvent?.({
stream: "compaction",
data: { phase: "start" },
});
}
if (evt.type === "auto_compaction_end") {
@@ -567,6 +571,10 @@ export function subscribeEmbeddedPiSession(params: {
} else {
maybeResolveCompactionWait();
}
params.onAgentEvent?.({
stream: "compaction",
data: { phase: "end", willRetry },
});
}
if (evt.type === "agent_end") {