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 | 4de231bc9a869ef5049224ad43e2200a882b424c (patch) | |
| tree | f0fe4789dce59bac6e3f24f643fc69b163ca27f4 /modules/core/module-orchestrator.js | |
| parent | c2863016f1708e4638640aac38d4cbadd495dbde (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 |