We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48a01a3 commit 2bf430aCopy full SHA for 2bf430a
1 file changed
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