refactor(sessions)!: retire the global shared session (#6621)

Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
This commit is contained in:
Xubin Renandchengyongru authored and GitHub committed 2026-11-12 09:55:55 +08:00
1 parent 28d73b6942
commit e6b0aec2a8
77 files changed
+311 -1255

No files matched your search

+2 -2
View File
@@ -33,8 +33,8 @@ async def save_completed_subagent(loop: AgentLoop, task_id: str, owner: str) ->
async def run_session(loop: AgentLoop, msg: InboundMessage) -> None:
"""Submit input and wait for its session worker to finish."""
(await loop._enqueue_session_message(msg))
await asyncio.gather(*loop._active_tasks[loop._effective_session_key(msg)])
await loop._enqueue_session_message(msg)
await asyncio.gather(*loop._active_tasks[msg.session_key])
async def stop_loop(loop: AgentLoop, worker: asyncio.Task[None], *, timeout: float) -> None: