Clear stale local thinking placeholders
This commit is contained in:
1 parent
a1fd4a1f8a
commit
b9a16ec134
2 files changed
+8
No files matched your search
+7
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user