feat(subagent): add session-owned task messaging and cancellation (#5985)
let's go!
This commit is contained in:
1 parent
f75470e72f
commit
6ff96f2a8f
93 files changed
+5632
-1156
No files matched your search
@@ -6,7 +6,7 @@ from unittest.mock import AsyncMock, MagicMock
|
||||
|
||||
import pytest
|
||||
|
||||
from agent.session_helpers import run_session
|
||||
from agent.session_helpers import run_session, save_completed_subagent
|
||||
from nanobot.agent.context import TranscriptInput
|
||||
from nanobot.agent.hooks import create_file_edit_activity_hook
|
||||
from nanobot.agent.loop import AgentLoop
|
||||
@@ -869,6 +869,7 @@ class TestToolEventProgress:
|
||||
session.add_message("user", "Run this in the background")
|
||||
session.metadata.update({"webui": True, "title": "Existing title"})
|
||||
loop.sessions.save(session)
|
||||
save_completed_subagent(loop, "sub-1", session_key)
|
||||
dispatch = asyncio.create_task(run_session(loop, InboundMessage(
|
||||
channel="system",
|
||||
sender_id="subagent",
|
||||
|
||||
Reference in new issue
Block a user