Skip to content

Commit 5922eef

Browse files
committed
feat: conditionally include reminder section based on todo list configuration
1 parent 8f7ac57 commit 5922eef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/environment/getEnvironmentDetails.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ export async function getEnvironmentDetails(cline: Task, includeFileDetails: boo
268268
}
269269
}
270270

271-
const reminderSection = formatReminderSection(cline.todoList)
271+
const todoListEnabled =
272+
state && typeof state.apiConfiguration?.todoListEnabled === "boolean"
273+
? state.apiConfiguration.todoListEnabled
274+
: true
275+
const reminderSection = todoListEnabled ? formatReminderSection(cline.todoList) : ""
272276
return `<environment_details>\n${details.trim()}\n${reminderSection}\n</environment_details>`
273277
}

0 commit comments

Comments
 (0)