agentgui 1.0.162 → 1.0.163
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 +16 -16
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -44,6 +44,22 @@ class AgentGUIClient {
|
|
|
44
44
|
sendButton: null,
|
|
45
45
|
agentSelector: null
|
|
46
46
|
};
|
|
47
|
+
|
|
48
|
+
// Chunk polling state (must be in constructor so it exists before any event handlers fire)
|
|
49
|
+
this.chunkPollState = {
|
|
50
|
+
isPolling: false,
|
|
51
|
+
lastFetchTimestamp: 0,
|
|
52
|
+
pollTimer: null,
|
|
53
|
+
backoffDelay: 100,
|
|
54
|
+
maxBackoffDelay: 400,
|
|
55
|
+
abortController: null
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// Router state
|
|
59
|
+
this.routerState = {
|
|
60
|
+
currentConversationId: null,
|
|
61
|
+
currentSessionId: null
|
|
62
|
+
};
|
|
47
63
|
}
|
|
48
64
|
|
|
49
65
|
/**
|
|
@@ -75,22 +91,6 @@ class AgentGUIClient {
|
|
|
75
91
|
await this.connectWebSocket();
|
|
76
92
|
}
|
|
77
93
|
|
|
78
|
-
// Initialize chunk polling state
|
|
79
|
-
this.chunkPollState = {
|
|
80
|
-
isPolling: false,
|
|
81
|
-
lastFetchTimestamp: 0,
|
|
82
|
-
pollTimer: null,
|
|
83
|
-
backoffDelay: 100,
|
|
84
|
-
maxBackoffDelay: 400,
|
|
85
|
-
abortController: null
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
// Initialize router state
|
|
89
|
-
this.routerState = {
|
|
90
|
-
currentConversationId: null,
|
|
91
|
-
currentSessionId: null
|
|
92
|
-
};
|
|
93
|
-
|
|
94
94
|
// Restore state from URL on page load
|
|
95
95
|
this.restoreStateFromUrl();
|
|
96
96
|
|