mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Fixes
This commit is contained in:
parent
c1b1d87869
commit
37d940b137
3 changed files with 2 additions and 11 deletions
|
|
@ -762,15 +762,6 @@ export class Cline {
|
|||
throw new Error("MCP hub not available")
|
||||
}
|
||||
|
||||
console.log(
|
||||
"mcpServers for system prompt:",
|
||||
JSON.stringify(
|
||||
mcpHub.connections.map((conn) => conn.server),
|
||||
null,
|
||||
2,
|
||||
),
|
||||
)
|
||||
|
||||
let systemPrompt = await SYSTEM_PROMPT(cwd, this.api.getModel().info.supportsComputerUse ?? false, mcpHub)
|
||||
if (this.customInstructions && this.customInstructions.trim()) {
|
||||
// altering the system prompt mid-task will break the prompt cache, but in the grand scheme this will not change often so it's better to not pollute user messages with it the way we have to with <potentially relevant details>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import osName from "os-name"
|
||||
import defaultShell from "default-shell"
|
||||
import os from "os"
|
||||
import { McpServer } from "../../shared/mcp"
|
||||
import osName from "os-name"
|
||||
import { McpHub } from "../../services/mcp/McpHub"
|
||||
|
||||
export const SYSTEM_PROMPT = async (
|
||||
|
|
|
|||
|
|
@ -423,6 +423,7 @@ export class McpHub {
|
|||
vscode.window.showInformationMessage(`${serverName} MCP server connected`)
|
||||
} catch (error) {
|
||||
console.error(`Failed to restart connection for ${serverName}:`, error)
|
||||
vscode.window.showErrorMessage(`Failed to connect to ${serverName} MCP server`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue