We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be35c4f commit 4d22d4bCopy full SHA for 4d22d4b
apps/twig/src/main/services/agent/service.ts
@@ -393,6 +393,9 @@ export class AgentService extends TypedEventEmitter<AgentServiceEvents> {
393
if (existing) {
394
return existing;
395
}
396
+
397
+ // Clean up any prior session for this taskRunId before creating a new one
398
+ await this.cleanupSession(taskRunId);
399
400
401
const channel = `agent-event:${taskRunId}`;
0 commit comments