Fixing the prompts

This commit is contained in:
2026-01-31 19:20:36 -05:00
parent 0cd557a3fe
commit 8691b926fb
12 changed files with 1376 additions and 358 deletions

View File

@@ -325,7 +325,14 @@ export const runAgentLoopStream = async (
// Initialize
await initializePermissions();
await refreshMCPTools();
// Refresh MCP tools and log results
const mcpResult = await refreshMCPTools();
if (mcpResult.success && mcpResult.toolCount > 0) {
state.options.onText?.(`[Loaded ${mcpResult.toolCount} MCP tool(s)]\n`);
} else if (mcpResult.error) {
state.options.onWarning?.(`MCP tools unavailable: ${mcpResult.error}`);
}
const agentMessages: AgentMessage[] = [...messages];