refactor(agent): move provider refresh into subsystem owners

This commit is contained in:
Xubin Ren
2026-04-26 14:18:37 +00:00
parent f670da6c70
commit b2aec5528a
4 changed files with 25 additions and 11 deletions
+5
View File
@@ -96,6 +96,11 @@ class SubagentManager:
self._task_statuses: dict[str, SubagentStatus] = {}
self._session_tasks: dict[str, set[str]] = {} # session_key -> {task_id, ...}
def set_provider(self, provider: LLMProvider, model: str) -> None:
self.provider = provider
self.model = model
self.runner.provider = provider
async def spawn(
self,
task: str,