Skip to content

Conversation

@meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Dec 12, 2025

fixes #281597

todos.mov

Copilot AI review requested due to automatic review settings December 12, 2025 20:30
@meganrogge meganrogge assigned bhavyaus and meganrogge and unassigned bhavyaus Dec 12, 2025
@meganrogge meganrogge requested a review from bhavyaus December 12, 2025 20:30
@meganrogge meganrogge added this to the December / January 2026 milestone Dec 12, 2025
@meganrogge meganrogge enabled auto-merge (squash) December 12, 2025 20:32
Copy link
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 adds a command to toggle focus between the agent TODOs view and the chat input, addressing issue #281597. The implementation adds new methods across multiple layers of the chat widget architecture to support focusing and checking the state of the TODO list widget.

Key Changes

  • Added a new F1 command "Agent TODOs: Focus on Todos View" that toggles focus between the TODOs view and chat input
  • Implemented focus management methods across ChatTodoListWidget, ChatInputPart, and ChatWidget
  • Added comprehensive tests for the new focus and visibility checking functionality

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/chat.ts Added focusTodosView() and toggleTodosViewFocus() methods to IChatWidget interface
src/vs/workbench/contrib/chat/browser/chatWidget.ts Implemented the new interface methods to delegate todo list focus operations to the input part
src/vs/workbench/contrib/chat/browser/chatInputPart.ts Added helper methods to check and control todo list focus and visibility state
src/vs/workbench/contrib/chat/browser/chatContentParts/chatTodoListWidget.ts Implemented core focus management: hasTodos(), hasFocus(), and focus() methods
src/vs/workbench/contrib/chat/browser/actions/chatActions.ts Registered new command with preconditions for agent chat mode and imported aria alert utility
src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts Added accessibility help text explaining the new toggle focus command
src/vs/workbench/contrib/chat/test/browser/chatTodoListWidget.test.ts Added tests for focus expansion behavior and hasTodos() visibility reporting

meganrogge and others added 3 commits December 12, 2025 15:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…yHelp.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

Add command to toggle between Agent TODOs: Focus on Todos View and chat input

3 participants