agentgui 1.0.231 → 1.0.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/client.js +13 -0
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -833,6 +833,19 @@ class AgentGUIClient {
|
|
|
833
833
|
this.emit('message:created', data);
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
|
+
// Also check for pending ID (in case message-sending was already removed by _confirmOptimisticMessage)
|
|
837
|
+
const pendingById = outputEl.querySelector('[id^="pending-"]');
|
|
838
|
+
if (pendingById) {
|
|
839
|
+
pendingById.id = '';
|
|
840
|
+
pendingById.setAttribute('data-msg-id', data.message.id);
|
|
841
|
+
const ts = pendingById.querySelector('.message-timestamp');
|
|
842
|
+
if (ts) {
|
|
843
|
+
ts.style.opacity = '1';
|
|
844
|
+
ts.textContent = new Date(data.message.created_at).toLocaleString();
|
|
845
|
+
}
|
|
846
|
+
this.emit('message:created', data);
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
836
849
|
// Check if a user message with this ID already exists (prevents duplicate on race condition)
|
|
837
850
|
const existingMsg = outputEl.querySelector(`[data-msg-id="${data.message.id}"]`);
|
|
838
851
|
if (existingMsg) {
|