fix(webui): keep completed turns terminal across late events (#5991)

* fix(webui): keep completed turns terminal across late events

* test(webui): align app layout client mock with completion API
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-30 17:40:11 +08:00
1 parent 450a85fe0e
commit 678cd8f4a7
5 files changed
+307 -27

No files matched your search

@@ -1131,6 +1131,7 @@ export function ThreadShell({
useEffect(() => {
if (!historyKey || !chatId || loading) return;
client.fenceCanonicalCompletedTurns(chatId, completedTurnIds);
const cached = messageCacheRef.current.get(chatId);
const pendingCanonicalHydrate = pendingCanonicalHydrateRef.current.get(chatId);
const hasNewCanonicalHistory = (