agentgui 1.0.729 → 1.0.730
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 +0 -17
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -862,23 +862,6 @@ class AgentGUIClient {
|
|
|
862
862
|
<div class="conversation-messages"></div>
|
|
863
863
|
`;
|
|
864
864
|
messagesEl = outputEl.querySelector('.conversation-messages');
|
|
865
|
-
try {
|
|
866
|
-
const fullData = await window.wsClient.rpc('conv.full', { id: data.conversationId });
|
|
867
|
-
if (fullData) {
|
|
868
|
-
const priorChunks = (fullData.chunks || []).map(c => ({
|
|
869
|
-
...c,
|
|
870
|
-
block: typeof c.data === 'string' ? JSON.parse(c.data) : c.data
|
|
871
|
-
}));
|
|
872
|
-
const userMsgs = (fullData.messages || []).filter(m => m.role === 'user');
|
|
873
|
-
if (priorChunks.length > 0) {
|
|
874
|
-
this._renderConversationContent(messagesEl, priorChunks, userMsgs, null);
|
|
875
|
-
} else {
|
|
876
|
-
messagesEl.appendChild(this.renderMessagesFragment(fullData.messages || []));
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
} catch (e) {
|
|
880
|
-
console.warn('Failed to load prior messages for streaming view:', e);
|
|
881
|
-
}
|
|
882
865
|
}
|
|
883
866
|
let streamingDiv = document.getElementById(`streaming-${data.sessionId}`);
|
|
884
867
|
if (!streamingDiv) {
|