diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 274d71e870..ae4ec21cdb 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -67,7 +67,10 @@ function EventRouter() { void invalidateGitQueries(queryClient); } if (event.method === "checkpoint/captured") { - void queryClient.invalidateQueries({ queryKey: providerQueryKeys.all }); + void queryClient.invalidateQueries({ + queryKey: providerQueryKeys.all, + predicate: (query) => query.state.status !== "success", + }); } dispatch({ type: "APPLY_EVENT", diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 5dbc885618..f4acef889e 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -1463,6 +1463,7 @@ export default function ChatView() { .map((checkpoint) => [checkpoint.id, checkpoint.turnCount] as const), ); if (Object.keys(checkpointTurnCountByTurnId).length === 0) { + checkpointTurnCountSyncFingerprintRef.current.delete(syncKey); return; } dispatch({