|
@@ -762,15 +762,6 @@ export class Cline {
|
|
|
throw new Error("MCP hub not available")
|
|
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)
|
|
let systemPrompt = await SYSTEM_PROMPT(cwd, this.api.getModel().info.supportsComputerUse ?? false, mcpHub)
|
|
|
if (this.customInstructions && this.customInstructions.trim()) {
|
|
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>
|
|
// 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>
|