fix(agent): preserve lifecycle recovery boundaries (PR3 round 2)

This commit is contained in:
Hypatia May
2026-07-15 17:43:33 +08:00
parent dffe51dbf0
commit d66c926d7a
6 changed files with 151 additions and 42 deletions

View File

@@ -45,6 +45,7 @@ export function registerAutomaticCompaction(
_step: number,
signal: AbortSignal,
) => {
if (signal.aborted) return
try {
const result = await service.compactIfNeeded(agent, 'pressure', signal)
if (result !== null) logResult(result, 'post-step pressure')