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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.574",
3
+ "version": "1.0.575",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
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
- const streamingConvs = queries.getConversations().filter(c => c.isStreaming === 1);
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;