From dc3e2136a01e5bf98e45f23e34158b936dd05eb2 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 19 Aug 2025 22:26:34 -0700 Subject: [PATCH] fix: copy errors --- core/llm/defaultSystemMessages.ts | 6 +++--- core/tools/definitions/readCurrentlyOpenFile.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/llm/defaultSystemMessages.ts b/core/llm/defaultSystemMessages.ts index 394dfbcc7..9d79966b9 100644 --- a/core/llm/defaultSystemMessages.ts +++ b/core/llm/defaultSystemMessages.ts @@ -46,7 +46,7 @@ export const EDIT_CODE_INSTRUCTIONS = `\ of changes unless the user specifically asks for code only. `; -const BRIEF_LAZY_INSTRUCTIONS = `For larger codeblocks, use brief language-appropriate placeholders for unmodified sections, e.g. '// ... existing code ...'";`; +const BRIEF_LAZY_INSTRUCTIONS = `For larger codeblocks (>20 lines), use brief language-appropriate placeholders for unmodified sections, e.g. '// ... existing code ...'`; export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ @@ -69,7 +69,7 @@ ${CODEBLOCK_FORMATTING_INSTRUCTIONS} ${BRIEF_LAZY_INSTRUCTIONS} -However, only output codeblocks for suggestion and demonstration purposes. For examle, when enumerating multiple hypothetical options, output codeblocks rather than using the tool. But for making any actual changes, use the edit tools. +However, only output codeblocks for suggestion and demonstration purposes, for examle, when enumerating multiple hypothetical options. For implementing changes, use the edit tools. `; @@ -85,7 +85,7 @@ ${CODEBLOCK_FORMATTING_INSTRUCTIONS} ${BRIEF_LAZY_INSTRUCTIONS} -However, only output codeblocks for suggestion and planning purposes. For making changes, request to switch to Agent mode. +However, only output codeblocks for suggestion and planning purposes. When ready to implement changes, request to switch to Agent mode. In plan mode, only write code when directly suggesting changes. Prioritize understanding and developing a plan. `; diff --git a/core/tools/definitions/readCurrentlyOpenFile.ts b/core/tools/definitions/readCurrentlyOpenFile.ts index 6a7e3010e..da1cb129b 100644 --- a/core/tools/definitions/readCurrentlyOpenFile.ts +++ b/core/tools/definitions/readCurrentlyOpenFile.ts @@ -13,7 +13,7 @@ export const readCurrentlyOpenFileTool: Tool = { function: { name: BuiltInToolNames.ReadCurrentlyOpenFile, description: - "Read the currently open file in the IDE. If the user seems to be referring to a file that you can't see, or is requestion an action on content that seems missing, try using this tool.", + "Read the currently open file in the IDE. If the user seems to be referring to a file that you can't see, or is requesting an action on content that seems missing, try using this tool.", parameters: { type: "object", properties: {},