agentgui 1.0.574 → 1.0.575
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/server.js +6 -1
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -4495,7 +4495,12 @@ async function resumeInterruptedStreams() {
|
|
|
4495
4495
|
let toResume = [];
|
|
4496
4496
|
|
|
4497
4497
|
// Primary: Check database isStreaming flag for conversations still marked as active
|
|
4498
|
-
|
|
4498
|
+
// Exclude conversations whose last session completed - they should not be resumed
|
|
4499
|
+
const streamingConvs = queries.getConversations().filter(c => {
|
|
4500
|
+
if (c.isStreaming !== 1) return false;
|
|
4501
|
+
const lastSession = queries.getLatestSession(c.id);
|
|
4502
|
+
return !lastSession || lastSession.status !== 'complete';
|
|
4503
|
+
});
|
|
4499
4504
|
|
|
4500
4505
|
if (streamingConvs.length > 0) {
|
|
4501
4506
|
toResume = streamingConvs;
|