mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 04:41:16 -05:00
Make prompt stricter around truncation and prevent getting stuck in a loop waiting for user input without using ask_followup_question
This commit is contained in:
@@ -175,7 +175,7 @@ const tools: Tool[] = [
|
|||||||
{
|
{
|
||||||
name: "write_to_file",
|
name: "write_to_file",
|
||||||
description:
|
description:
|
||||||
"Write content to a file at the specified path. If the file exists, only the necessary changes will be applied. If the file doesn't exist, it will be created. Always provide the full intended content of the file. This tool will automatically create any directories needed to write the file.",
|
"Write content to a file at the specified path. If the file exists, only the necessary changes will be applied. If the file doesn't exist, it will be created. Always provide the full intended content of the file, without any truncation. This tool will automatically create any directories needed to write the file.",
|
||||||
input_schema: {
|
input_schema: {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
@@ -377,7 +377,7 @@ export class ClaudeDev {
|
|||||||
// )
|
// )
|
||||||
textBlock = {
|
textBlock = {
|
||||||
type: "text",
|
type: "text",
|
||||||
text: "Ask yourself if you have completed the user's task. If you have, use the attempt_completion tool, otherwise proceed to the next step. (This is an automated message, so do not respond to it conversationally. Just proceed with the task.)",
|
text: "If you have completed the user's task, use the attempt_completion tool. If you require additional information from the user, use the ask_followup_question tool. Otherwise, if you have not completed the task and do not need additional information, then proceed with the next step of the task. (This is an automated message, so do not respond to it conversationally.)",
|
||||||
}
|
}
|
||||||
imageBlocks = []
|
imageBlocks = []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user