From 839b03e71978479d4eebdfffd0d22f9503b27ef0 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 14 Aug 2025 18:16:51 -0700 Subject: [PATCH] fix: loggging for CI failures --- src/services/mcp.ts | 4 ++++ src/ui/MCPSelector.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/mcp.ts b/src/services/mcp.ts index c223fac14..8da21babc 100644 --- a/src/services/mcp.ts +++ b/src/services/mcp.ts @@ -66,6 +66,7 @@ export class MCPService { serverCount: assistant.mcpServers?.length || 0, }); + console.log("MCP INITIALIZATION: SHUTTING DOWN CONNS"); await this.shutdownConnections(); this.assistant = assistant; @@ -82,6 +83,7 @@ export class MCPService { } }); + console.log("MCP INITIALIZATION: CONNECTING"); const connectionInit = Promise.all(connectionPromises ?? []).then( (connections) => { logger.debug("MCP connections established", { @@ -90,9 +92,11 @@ export class MCPService { }, ); if (waitForConnections) { + console.log("MCP INITIALIZATION: WAITING FOR CONNS"); await connectionInit; } this.currentState.isReady = true; + console.log("MCP INITIALIZATION: UPDATING STATE"); this.updateState(); return this.currentState; diff --git a/src/ui/MCPSelector.tsx b/src/ui/MCPSelector.tsx index 3e6994f87..e89fa5cc9 100644 --- a/src/ui/MCPSelector.tsx +++ b/src/ui/MCPSelector.tsx @@ -222,7 +222,7 @@ export const MCPSelector: React.FC = ({ onCancel }) => { } if (key.downArrow) { - setSelectedIndex(selectedIndex >= maxIndex ? 0 : selectedIndex + 1); + setSelectedIndex((prev) => (prev >= maxIndex ? 0 : prev + 1)); return; }