mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-20 02:16:39 +00:00
Search every agent source in scheduled and webhook runs
Headless runs searched only the agent's primary source, so an agent whose knowledge sat in its extra sources answered a schedule or webhook without it. They now take the primary and every extra source through the same owner-or-sponsor check a chat uses, shared as one helper, and retrieve through the per-source dispatcher so each source keeps its own settings.
This commit is contained in:
1 parent
454557c3b0
commit
121b6dd071
5 files changed
+121
-83
No files matched your search
@@ -375,4 +375,4 @@ class TestRunAgentHeadlessFromWebhook:
|
||||
outcome = headless_runner.run_agent_headless(agent_config, "hello")
|
||||
|
||||
assert outcome["answer"] == "done"
|
||||
assert captured_source.get("active_docs") == source_id
|
||||
assert captured_source.get("active_docs") == [source_id]
|
||||
Reference in new issue
Block a user