refactor(agent): run maintenance between turns

This commit is contained in:
_Kerman
2026-08-03 10:53:08 +08:00
parent 0efbb7d87a
commit b4258a2c4a
6 files changed
+145 -60

No files matched your search

@@ -27,6 +27,8 @@ function expectedFailure(error: ManualCompactionError): CommandResult {
kind: 'error',
text: 'Compaction is unavailable because this process has an active compaction, or the agent is not idle.',
}
case 'cancelled':
return { kind: 'error', text: 'Compaction cancelled.' }
case 'changed':
return {
kind: 'error',