sync update from LAN repo (source master @ ca48c4ec)

This commit is contained in:
gozeros committed 2026-11-05 10:53:54 +08:00
1 parent 8bc8b0e082
commit ea9dcff9c0
873 files changed
+107866 -14011

No files matched your search

@@ -2092,7 +2092,12 @@ async def build_llmwiki_smart_reasoning_context(
)
agent_id = _assistant_agent_id(body)
if agent_id and agent_id not in {"default", "lead_agent"}:
# Built-in research agents use the caller-selected scope, like general chat.
# Each mapping still passes get_authorized below; custom agents retain their
# configured binding restriction.
if agent_id and agent_id not in {
"default", "lead_agent", "deep-research-planner", "deep-research-collector",
}:
allowed_ids = set(_agent_bound_ids(body))
if any(mapping_id not in allowed_ids for mapping_id in selected_ids):
raise HTTPException(