From c011c40a42a1ef913ccd6bfd131864be11f9b669 Mon Sep 17 00:00:00 2001 From: Agando Date: Sun, 18 Oct 2026 16:30:46 +0200 Subject: newOS4 v4.6.30: per-agent session isolation (D1) --- modules/core/module-orchestrator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/core/module-orchestrator.js') diff --git a/modules/core/module-orchestrator.js b/modules/core/module-orchestrator.js index b695974..5cff89e 100644 --- a/modules/core/module-orchestrator.js +++ b/modules/core/module-orchestrator.js @@ -1150,7 +1150,9 @@ class OrchestratorModule { try { const aiModule = this.terminal.moduleManager.modules['WebX11AIAssistantModule']; if (aiModule && typeof aiModule.chat === 'function') { - const result = await aiModule.chat([`[DELEGATED] ${task}`], { agentTag: agent.id + '/' + (agent.role || 'worker') }); + const _agentTag = agent.id + '/' + (agent.role || 'worker'); + const result = await aiModule.chat([`[DELEGATED] ${task}`], { agentTag: _agentTag }); + try { aiModule._sessions.delete(_agentTag); } catch (_e) {} agent.status = 'completed'; // Write result to outbox -- cgit v1.2.3