multica/packages
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
..
core fix(agent): reload tools after setProvider to fix stale closure 2026-02-11 18:58:24 +08:00
hooks refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
sdk refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
store refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
types refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
ui chore(ui): switch primary color to shadcn default 2026-02-10 22:16:57 +08:00
utils refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00