fix(webui): retain system context graph after compaction (#6608)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-09 13:20:46 +08:00
1 parent d789e1bfc7
commit 4212ad726d
25 files changed
+748 -102

No files matched your search

+1 -1
View File
@@ -1050,7 +1050,7 @@ export function projectThreadEvent(
id, graph: event.context_snapshot.graph,
estimatedTokens: event.context_snapshot.estimated_tokens,
contextWindowTokens: event.context_snapshot.context_window_tokens,
} } : {}),
} } : event.context_graph ? { contextSnapshot: { id, graph: event.context_graph } } : {}),
...(!options.persisted ? { announce: true } : {}),
},
...positionedTurnFields(state.messages[existing], turnFieldsForProjection(state, event, "activity"), options),