Просмотр исходного кода

Fix bug where always allow wasn't showing up for MCP tools

Matt Rubens 11 месяцев назад
Родитель
Сommit
d052bebed6
2 измененных файлов с 7 добавлено и 1 удалено
  1. 5 0
      .changeset/new-keys-relax.md
  2. 2 1
      webview-ui/src/components/chat/ChatRow.tsx

+ 5 - 0
.changeset/new-keys-relax.md

@@ -0,0 +1,5 @@
+---
+"roo-cline": patch
+---
+
+Fix bug where always allow wasn't showing up for MCP tools

+ 2 - 1
webview-ui/src/components/chat/ChatRow.tsx

@@ -78,7 +78,7 @@ export const ChatRowContent = ({
 	isLast,
 	isStreaming,
 }: ChatRowContentProps) => {
-	const { mcpServers } = useExtensionState()
+	const { mcpServers, alwaysAllowMcp } = useExtensionState()
 	const [cost, apiReqCancelReason, apiReqStreamingFailedMessage] = useMemo(() => {
 		if (message.text != null && message.say === "api_req_started") {
 			const info: ClineApiReqInfo = JSON.parse(message.text)
@@ -871,6 +871,7 @@ export const ChatRowContent = ({
 														)?.alwaysAllow || false,
 												}}
 												serverName={useMcpServer.serverName}
+												alwaysAllowMcp={alwaysAllowMcp}
 											/>
 										</div>
 										{useMcpServer.arguments && useMcpServer.arguments !== "{}" && (