Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/environment/getEnvironmentDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,6 @@ export async function getEnvironmentDetails(cline: Task, includeFileDetails: boo
}
}

const reminderSection = formatReminderSection(cline.todoList)
const reminderSection = formatReminderSection(cline.todoList, state?.alwaysAllowUpdateTodoList)
return `<environment_details>\n${details.trim()}\n${reminderSection}\n</environment_details>`
}
22 changes: 15 additions & 7 deletions src/core/environment/reminder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ import { TodoItem, TodoStatus } from "@roo-code/types"
/**
* Format the reminders section as a markdown block in English, with basic instructions.
*/
export function formatReminderSection(todoList?: TodoItem[]): string {
export function formatReminderSection(todoList?: TodoItem[], isUpdateTodoListEnabled?: boolean): string {
if (!todoList || todoList.length === 0) {
return "You have not created a todo list yet. Create one with `update_todo_list` if your task is complicated or involves multiple steps."
if (isUpdateTodoListEnabled !== false) {
return "You have not created a todo list yet. Create one with `update_todo_list` if your task is complicated or involves multiple steps."
} else {
return "You have not created a todo list yet."
}
}
const statusMap: Record<TodoStatus, string> = {
pending: "Pending",
Expand All @@ -29,10 +33,14 @@ export function formatReminderSection(todoList?: TodoItem[]): string {
})
lines.push("")

lines.push(
"",
"IMPORTANT: When task status changes, remember to call the `update_todo_list` tool to update your progress.",
"",
)
if (isUpdateTodoListEnabled !== false) {
lines.push(
"",
"IMPORTANT: When task status changes, remember to call the `update_todo_list` tool to update your progress.",
"",
)
} else {
lines.push("")
}
return lines.join("\n")
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading