agentgui 1.0.697 → 1.0.699
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/ws-handlers-conv.js +3 -0
- package/package.json +1 -1
- package/server.js +5 -4
package/lib/ws-handlers-conv.js
CHANGED
|
@@ -186,6 +186,9 @@ export function register(router, deps) {
|
|
|
186
186
|
queries.setIsStreaming(p.id, false);
|
|
187
187
|
activeExecutions.delete(p.id);
|
|
188
188
|
|
|
189
|
+
// Clear claudeSessionId so new execution starts fresh without --resume on a killed session
|
|
190
|
+
queries.setClaudeSessionId(p.id, null);
|
|
191
|
+
|
|
189
192
|
broadcastSync({ type: 'streaming_complete', sessionId, conversationId: p.id, interrupted: true, timestamp: Date.now() });
|
|
190
193
|
|
|
191
194
|
const agentId = conv.agentType || conv.agentId || 'claude-code';
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -3483,6 +3483,7 @@ async function processMessageWithStreaming(conversationId, messageId, sessionId,
|
|
|
3483
3483
|
|
|
3484
3484
|
if (parsed.type === 'system') {
|
|
3485
3485
|
if (parsed.subtype === 'task_notification') return;
|
|
3486
|
+
if (!parsed.model && !parsed.cwd && !parsed.tools) return;
|
|
3486
3487
|
|
|
3487
3488
|
const systemBlock = {
|
|
3488
3489
|
type: 'system',
|
|
@@ -3773,10 +3774,10 @@ async function processMessageWithStreaming(conversationId, messageId, sessionId,
|
|
|
3773
3774
|
batcher.drain();
|
|
3774
3775
|
debugLog(`[stream] Claude returned ${outputs.length} outputs, sessionId=${claudeSessionId}`);
|
|
3775
3776
|
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3777
|
+
// Clear claudeSessionId after successful completion so next message starts fresh
|
|
3778
|
+
// --resume on a completed session causes "No response requested." from the gm plugin
|
|
3779
|
+
queries.setClaudeSessionId(conversationId, null);
|
|
3780
|
+
debugLog(`[stream] Cleared claudeSessionId after successful completion`);
|
|
3780
3781
|
|
|
3781
3782
|
// Mark session as complete
|
|
3782
3783
|
queries.updateSession(sessionId, {
|