mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-28 01:19:20 +08:00
CozeAgent, DifyAgent and N8nAgent built their shared asset gateway listener and per-connection service tasks inside the registering invocation, so the listener's accept handle retained the first caller's invocation Context (configuration plus revocable authority) and later connections inherited it. Create the listener and connection tasks in an explicit empty Context; an invocation Context is entered only per validated run token. Applies the same fix already used by DashScopeAgent and LangflowAgent, with a regression test. Co-authored-by: multica-agent <github@multica.ai>