feat(knowledge-fs): add content handling for initial source preview and cleanup tasks

This commit is contained in:
FFXN 2026-09-03 21:09:44 +08:00
parent 94a170b0de
commit b7b8367234

View File

@ -623,7 +623,11 @@ export function createDatabaseSourceProductWorkflowRepository(input: {
const next = await writeFenced(database, tx, current, {
...current,
...(terminal && current.payload.stagedPages
? { payload: Object.fromEntries(Object.entries(current.payload).filter(([key]) => key !== "stagedPages")) }
? {
payload: Object.fromEntries(
Object.entries(current.payload).filter(([key]) => key !== "stagedPages"),
),
}
: {}),
activeSlot: terminal ? undefined : current.activeSlot,
checkpoint: