Skip to content

Commit 76790d6

Browse files
authored
feat(webview): reduce delay in MCP enabled change handling (#695)
1 parent 03c4d52 commit 76790d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ export const webviewMessageHandler = async (
683683
const mcpHub = provider.getMcpHub()
684684

685685
if (mcpHub) {
686-
await Promise.race([mcpHub.handleMcpEnabledChange(newValue as boolean), delay(500)]).catch(
686+
await Promise.race([mcpHub.handleMcpEnabledChange(newValue as boolean), delay(150)]).catch(
687687
() => {},
688688
)
689689
}

0 commit comments

Comments
 (0)