Skip to content

[BUG] todo does not support - as a prefix #8054

@NaccOll

Description

@NaccOll

Problem (one or two sentences)

The parseMarkdownChecklist method of updateTodoListTool does not support parsing checklists prefixed with '-'. Although the markdown preview syntax supports it

Context (who is affected and when)

When a user activates the to-do feature, the model sometimes returns a prefix of -.

- [X] A
- [ ] B

At this point the todo list will be displayed as an empty list

Reproduction steps

There are no exact steps to reproduce this issue. When using some models with poor instruction-following capabilities, LLM may return a to-do list with a - because the prompt word for update_todo_list contains a - (even though the example does not have a - as a prefix).

Expected result

The returned todo can be parsed regardless of whether it has a prefix of -

Actual result

Currently only todo lists without the - prefix can be parsed

Variations tried (optional)

No response

App Version

3.28.2

API Provider (optional)

OpenRouter

Model Used (optional)

N/A

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions