Clear stale local thinking placeholders

This commit is contained in:
OpenClaw committed 2026-03-07 16:05:58 +08:00
1 parent a1fd4a1f8a
commit b9a16ec134
2 files changed
+8

No files matched your search

@@ -702,6 +702,13 @@ class RemoteOpenClawRepository(
pendingTextQueue.remove(targetId)
textRetryStore.remove(targetId)
autoRetryMessageIds.remove(targetId)
val hasMorePendingText = pendingTextQueue.values.any { it.sessionId == sessionId }
if (!hasMorePendingText) {
val next = messageStore[sessionId].orEmpty().filterNot { it.id.startsWith("local-thinking-") }
messageStore = messageStore + (sessionId to next)
updateSessionPreview(sessionId, previewMessage(next))
}
}
private fun matchesPendingLocalText(local: ChatMessage, remote: ChatMessage): Boolean {