You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): apply session tool and MCP selections to the running agent
`agent_config.tools` and `agent_config.mcp_servers` were accepted by the
profile route and then dropped. They now persist to session metadata and
reach `ToolManager`.
The two fields merge independently, so a patch that supplies only MCP
servers keeps the current builtin tool selection instead of stripping it.
An empty array still clears its own half. `SessionService.update` resumes
an inactive session first, and the selection is applied in one
`setActiveTools` call so the replay record stays complete.
MCP server names go through `mcpServerToolPattern`, which sanitizes the
name the same way qualified tool names are built, so a server called
`My Search` matches its own tools.
Make `agent_config.tools` and `agent_config.mcp_servers` reach the running agent. A session profile update now persists the selection, merges each field independently so supplying one half does not clear the other, resumes an inactive session before the mutation, and applies the result through a single `setActiveTools` call. MCP server names are turned into tool patterns with the shared naming helper, so a server whose name needs sanitizing still matches its tools.
0 commit comments