From 37049a5a1343b0411d2990e6671cf4059c7ff415 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 00:00:25 -0500 Subject: [PATCH] fix(tui): skip model selection after MCP connection (#51448) Co-authored-by: rekram1-node --- packages/tui/src/component/dialog-integration.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tui/src/component/dialog-integration.tsx b/packages/tui/src/component/dialog-integration.tsx index 82b773479e4..a5c746bc61f 100644 --- a/packages/tui/src/component/dialog-integration.tsx +++ b/packages/tui/src/component/dialog-integration.tsx @@ -1012,7 +1012,7 @@ async function connected( data.location.provider.sync(location), ]) toast.show({ variant: "success", message: `Connected ${integration.name}` }) - if (onConnected) { + if (onConnected && integration.metadata?.source !== "mcp") { onConnected(providerID(data, location, integration.id)) return }