Skip to content

Commit b2cfbc5

Browse files
committed
fix(desktop): forward mcpToolsets through Tauri bridge on agent create
createManagedAgent() built the input object explicitly but omitted mcpToolsets, so the value collected in the dialog was silently dropped. Per-agent toolset configuration did nothing at creation time.
1 parent c5fa287 commit b2cfbc5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

desktop/scripts/check-file-sizes.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const overrides = new Map([
4949
["src/features/agents/ui/AgentsView.tsx", 850], // remote agent lifecycle controls + persona/team management + built-in catalog/library state orchestration
5050
["src/features/agents/ui/CreateAgentDialog.tsx", 685], // provider selector + config form + schema-typed config coercion + required field validation + locked scopes
5151
["src/features/channels/ui/AddChannelBotDialog.tsx", 640], // provider mode: Run on selector, trust warning, probe effect, single-agent enforcement, provider warnings display
52-
["src/shared/api/types.ts", 530], // persona provider/model fields + forum types + workflow type re-exports + ephemeral channel TTL fields
52+
["src/shared/api/types.ts", 535], // persona provider/model fields + forum types + workflow type re-exports + ephemeral channel TTL fields + mcpToolsets
5353
]);
5454

5555
async function walkFiles(directory) {

desktop/src/shared/api/tauri.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ export async function createManagedAgent(input: CreateManagedAgentInput) {
927927
agentCommand: input.agentCommand,
928928
agentArgs: input.agentArgs,
929929
mcpCommand: input.mcpCommand,
930+
mcpToolsets: input.mcpToolsets,
930931
turnTimeoutSeconds: input.turnTimeoutSeconds,
931932
idleTimeoutSeconds: input.idleTimeoutSeconds,
932933
maxTurnDurationSeconds: input.maxTurnDurationSeconds,

0 commit comments

Comments
 (0)