feat(compaction): wire TaskHistory into BackgroundManager and compaction pipeline

Records task history at 6 status transitions (pending, running×2, error,
cancelled, completed). Exports TaskHistory from background-agent barrel.
Passes backgroundManager and sessionID through compaction hook chain.
This commit is contained in:
YeonGyu-Kim
2026-02-13 17:40:44 +09:00
parent 888e54fb9b
commit fb65bf8def
4 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
if (!hooks.compactionContextInjector) {
return
}
output.context.push(hooks.compactionContextInjector())
output.context.push(hooks.compactionContextInjector(_input.sessionID))
},
}
}