Implement clearTodoList function and hide widget when no todos are present#311285
Merged
DonJayamanne merged 3 commits intomainfrom Apr 20, 2026
Merged
Implement clearTodoList function and hide widget when no todos are present#311285DonJayamanne merged 3 commits intomainfrom
DonJayamanne merged 3 commits intomainfrom
Conversation
… widget when no todos are present
DonJayamanne
commented
Apr 20, 2026
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the Copilot Chat todo-list experience by (1) ensuring the todo widget is not shown when empty and (2) introducing a helper to clear todos when starting a Copilot CLI session.
Changes:
- Hide the chat todo list widget when there are no todos.
- Add a
clearTodoListhelper that writes an empty list via themanage_todo_listtool. - Invoke
clearTodoListduring Copilot CLI request handling.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.ts | Hide the widget when the todo list is empty. |
| extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSession.ts | Call todo-list clearing helper during request processing. |
| extensions/copilot/src/extension/chatSessions/copilotcli/common/copilotCLITools.ts | Add clearTodoList tool helper to write an empty todo list. |
Copilot's findings
- Files reviewed: 3/3 changed files
- Comments generated: 3
…n/copilotCLITools.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
rebornix
approved these changes
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a function to clear the todo list at the start of a session and ensure the widget is hidden when there are no todos. This improves the user experience by preventing the display of an empty todo list.