Skip to content

sessions: support Open Chat Agent keybinding - #332448

Merged
roblourens merged 5 commits into
microsoft:mainfrom
roblourens:roblou/agents/fix-agents-window-keybinding
Aug 25, 2026
Merged

sessions: support Open Chat Agent keybinding#332448
roblourens merged 5 commits into
microsoft:mainfrom
roblourens:roblou/agents/fix-agents-window-keybinding

Conversation

@roblourens

Copy link
Copy Markdown
Member

Summary

  • route the Open Chat (Agent) shortcut to Focus Active Session in the Agents Window
  • preserve the existing Linux Format Document shortcut by using the platform-specific Agent shortcut
  • document the alias in accessibility help and add cross-platform keybinding coverage

Validation

  • npm run typecheck-client
  • targeted ESLint for the changed files
  • ./scripts/test.sh src/vs/sessions/contrib/sessions/test/browser/sessionsFocusActiveSessionKeybinding.test.ts src/vs/sessions/contrib/sessions/test/browser/sessionsReopenKeybinding.test.ts

(Written by Copilot)

Route the Open Chat (Agent) shortcuts to Focus Active Session in the Agents Window, preserving the Linux formatting shortcut and documenting the alias in accessibility help. Add cross-platform keybinding coverage.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 24, 2026 23:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Routes platform-specific Open Chat (Agent) shortcuts to the active Agents Window session.

Changes:

  • Adds shared Focus Active Session command ID and keybindings.
  • Documents the shortcut in accessibility help.
  • Adds cross-platform keybinding tests.
Show a summary per file
File Description
sessionCommands.ts Defines the shared command ID.
sessionsActions.ts Registers platform-specific shortcuts.
sessionsChatAccessibilityHelp.ts Documents focus behavior.
sessionsFocusActiveSessionKeybinding.test.ts Tests platform bindings.

Review details

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts Outdated
Clarify that the copied Open Chat Agent chord is a default binding, and compare the Sessions alias directly against the registered cross-platform command defaults. Verify the Linux Format Document command retains Ctrl+Shift+I.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Share the Open Chat Agent default keybinding between the workbench and Sessions registrations so the regression test can compare defaults without registering the full Chat action catalog. This avoids changing global command state in aggregate browser tests.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the platform-specific alias explicit in the Sessions action and test instead of exporting a shared workbench keybinding constant.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore the existing explanation for why Focus Active Session uses the Sessions keybinding weight.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@roblourens
roblourens marked this pull request as ready for review August 25, 2026 00:59
@roblourens
roblourens enabled auto-merge (squash) August 25, 2026 00:59
@roblourens
roblourens merged commit 713452e into microsoft:main Aug 25, 2026
27 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 25, 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