mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fix bug where always allow wasn't showing up for MCP tools
This commit is contained in:
5
.changeset/new-keys-relax.md
Normal file
5
.changeset/new-keys-relax.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"roo-cline": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix bug where always allow wasn't showing up for MCP tools
|
||||||
@@ -78,7 +78,7 @@ export const ChatRowContent = ({
|
|||||||
isLast,
|
isLast,
|
||||||
isStreaming,
|
isStreaming,
|
||||||
}: ChatRowContentProps) => {
|
}: ChatRowContentProps) => {
|
||||||
const { mcpServers } = useExtensionState()
|
const { mcpServers, alwaysAllowMcp } = useExtensionState()
|
||||||
const [cost, apiReqCancelReason, apiReqStreamingFailedMessage] = useMemo(() => {
|
const [cost, apiReqCancelReason, apiReqStreamingFailedMessage] = useMemo(() => {
|
||||||
if (message.text != null && message.say === "api_req_started") {
|
if (message.text != null && message.say === "api_req_started") {
|
||||||
const info: ClineApiReqInfo = JSON.parse(message.text)
|
const info: ClineApiReqInfo = JSON.parse(message.text)
|
||||||
@@ -871,6 +871,7 @@ export const ChatRowContent = ({
|
|||||||
)?.alwaysAllow || false,
|
)?.alwaysAllow || false,
|
||||||
}}
|
}}
|
||||||
serverName={useMcpServer.serverName}
|
serverName={useMcpServer.serverName}
|
||||||
|
alwaysAllowMcp={alwaysAllowMcp}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{useMcpServer.arguments && useMcpServer.arguments !== "{}" && (
|
{useMcpServer.arguments && useMcpServer.arguments !== "{}" && (
|
||||||
|
|||||||
Reference in New Issue
Block a user