multica/packages/core/src
Jiang Bohan 47cbf60687 fix(agent): reload tools after setProvider to fix stale closure
setProvider() updated toolsOptions.provider but didn't reload tool
instances. The sessions_spawn tool captured the old provider in its
closure at creation time, causing subagents to inherit a stale provider.

Now calls resolveTools() + setTools() after updating toolsOptions so
sessions_spawn gets a fresh closure with the correct provider.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 18:58:24 +08:00
..
agent fix(agent): reload tools after setProvider to fix stale closure 2026-02-11 18:58:24 +08:00
channels refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
client refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
cron refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
heartbeat refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
hub refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
media refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
index.ts refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00