fix: loggging for CI failures

This commit is contained in:
Dallin Romney 2025-08-14 18:16:51 -07:00
parent 843b954472
commit 839b03e719
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -222,7 +222,7 @@ export const MCPSelector: React.FC<MCPSelectorProps> = ({ onCancel }) => {
}
if (key.downArrow) {
setSelectedIndex(selectedIndex >= maxIndex ? 0 : selectedIndex + 1);
setSelectedIndex((prev) => (prev >= maxIndex ? 0 : prev + 1));
return;
}