agentgui 1.0.472 → 1.0.473
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/lib/tool-manager.js +1 -1
- package/package.json +1 -1
- package/server.js +15 -2
package/lib/tool-manager.js
CHANGED
|
@@ -42,7 +42,7 @@ const checkToolViaBunx = async (pkg) => {
|
|
|
42
42
|
const timer = setTimeout(() => {
|
|
43
43
|
try { proc.kill('SIGKILL'); } catch (_) {}
|
|
44
44
|
const installed = checkToolInstalled(pkg);
|
|
45
|
-
resolve({ installed, isUpToDate:
|
|
45
|
+
resolve({ installed, isUpToDate: installed, upgradeNeeded: false, output: 'timeout' });
|
|
46
46
|
}, 10000);
|
|
47
47
|
proc.on('close', (code) => {
|
|
48
48
|
clearTimeout(timer);
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -4258,8 +4258,21 @@ async function resumeInterruptedStreams() {
|
|
|
4258
4258
|
const messageId = lastMsg?.id || null;
|
|
4259
4259
|
console.log(`[RESUME] Resuming conv ${conv.id} (claude session: ${conv.claudeSessionId})`);
|
|
4260
4260
|
|
|
4261
|
-
|
|
4262
|
-
.
|
|
4261
|
+
try {
|
|
4262
|
+
await processMessageWithStreaming(conv.id, messageId, session.id, promptText, conv.agentType, conv.model, conv.subAgent);
|
|
4263
|
+
} catch (err) {
|
|
4264
|
+
console.error(`[RESUME] Error resuming conv ${conv.id}: ${err.message}`);
|
|
4265
|
+
queries.setIsStreaming(conv.id, false);
|
|
4266
|
+
const activeSessions = queries.getSessionsByStatus(conv.id, 'active');
|
|
4267
|
+
const pendingSessions = queries.getSessionsByStatus(conv.id, 'pending');
|
|
4268
|
+
for (const s of [...activeSessions, ...pendingSessions]) {
|
|
4269
|
+
queries.updateSession(s.id, {
|
|
4270
|
+
status: 'error',
|
|
4271
|
+
error: 'Resume failed: ' + err.message,
|
|
4272
|
+
completed_at: Date.now()
|
|
4273
|
+
});
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4263
4276
|
|
|
4264
4277
|
if (i < toResume.length - 1) {
|
|
4265
4278
|
await new Promise(r => setTimeout(r, 200));
|