Skip to content

Implement clearTodoList function and hide widget when no todos are present#311285

Merged
DonJayamanne merged 3 commits intomainfrom
don/sorry-egret
Apr 20, 2026
Merged

Implement clearTodoList function and hide widget when no todos are present#311285
DonJayamanne merged 3 commits intomainfrom
don/sorry-egret

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

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.

Copilot AI review requested due to automatic review settings April 20, 2026 00:51
@DonJayamanne DonJayamanne self-assigned this Apr 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 20, 2026

Screenshot Changes

Base: df49d483 Current: 42b93eb1

Changed (3)

editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after
agentSessionsViewer/CloudProvider/Dark
Before After
before after
agentSessionsViewer/CloudProvider/Light
Before After
before after

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 clearTodoList helper that writes an empty list via the manage_todo_list tool.
  • Invoke clearTodoList during 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

DonJayamanne and others added 2 commits April 20, 2026 11:24
…n/copilotCLITools.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
@DonJayamanne DonJayamanne marked this pull request as ready for review April 20, 2026 03:06
@DonJayamanne DonJayamanne enabled auto-merge (squash) April 20, 2026 03:06
@DonJayamanne DonJayamanne merged commit 173f07e into main Apr 20, 2026
26 checks passed
@DonJayamanne DonJayamanne deleted the don/sorry-egret branch April 20, 2026 03:39
@vs-code-engineering vs-code-engineering bot added this to the 1.117.0 milestone Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants