newSession() only rebuilt the tool registry when cwd changed. When cwd stayed the same (e.g., discuss → plan-slice in the same worktree), any tool narrowing from setActiveTools() persisted — stripping gsd_plan_slice and other DB tools from auto-mode subagent sessions. Add an else-branch that calls _refreshToolRegistry with includeAllExtensionTools:true on every session switch, regardless of cwd. Also call resetExtensionLoaderCache() in DefaultResourceLoader.reload() so hot-updated extension code on disk is re-compiled instead of served from the stale jiti module cache. Closes #3616 |
||
|---|---|---|
| .. | ||
| daemon | ||
| mcp-server | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||
| rpc-client | ||