diff options
| author | Agando <roduccomm@gmail.com> | 2026-10-18 16:30:46 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-10-18 16:30:46 +0200 |
| commit | c011c40a42a1ef913ccd6bfd131864be11f9b669 (patch) | |
| tree | 24a030e7400c3136a6ab2f6443193b658fa2a4db /modules/core/module-orchestrator.js | |
| parent | eb888c1d4f13ce059694dc8a1b840429491fcb26 (diff) | |
newOS4 v4.6.30: per-agent session isolation (D1)
Diffstat (limited to 'modules/core/module-orchestrator.js')
| -rw-r--r-- | modules/core/module-orchestrator.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 |