fix(core): compact after tool settlement (#36718)

This commit is contained in:
Kit Langton
2026-07-13 15:17:45 -04:00
committed by GitHub
parent 3bc924252b
commit a2f5a0df5d
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -543,7 +543,8 @@ const layer = Layer.effect(
needsContinuation = result.needsContinuation
step = result.step + 1
if (needsContinuation) {
promotion = (yield* SessionPending.compaction(db, input.sessionID)) ? undefined : "steer"
yield* runPendingCompaction(input.sessionID)
promotion = "steer"
continue
}
yield* runPendingCompaction(input.sessionID)