Skip to content

Fix Ctrl+Tab/Ctrl+Shift+Tab session navigation in Agents window#319937

Merged
ulugbekna merged 1 commit into
mainfrom
agents/what-are-the-default-keybindings-for-agent-windo-972b98d0
Jun 4, 2026
Merged

Fix Ctrl+Tab/Ctrl+Shift+Tab session navigation in Agents window#319937
ulugbekna merged 1 commit into
mainfrom
agents/what-are-the-default-keybindings-for-agent-windo-972b98d0

Conversation

@ulugbekna
Copy link
Copy Markdown
Contributor

Problem

Ctrl+Tab / Ctrl+Shift+Tab did not navigate forward/back between sessions in the Agents window.

Root cause

The sessions.goBack / sessions.goForward actions register Ctrl+Shift+Tab and Ctrl+Tab as secondary keybindings at weight KeybindingWeight. the same chords and same weight as the workbench editor quick-open actions:WorkbenchContrib

Ctrl+Tab
Ctrl+Shift+Tab

With equal weight, the resolver tiebreaks by command name; workbench.action.* sorts after sessions.*, so the editor actions were evaluated first and won the conflict in the Agents window. The session chords therefore never fired.

Fix

Higher-weight bindings on these chords (quickOpenNavigate*InEditorPicker, quickInputBack at WorkbenchContrib + 50) are gated on active picker contexts and intentionally still win while a picker is open.

cc @sandy081

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

The `sessions.goBack`/`sessions.goForward` actions registered Ctrl+Shift+Tab
and Ctrl+Tab as secondary keybindings at `WorkbenchContrib`  the sameweight
chords and weight as the editor quick-open actions. With equal weight the editor
actions won the conflict in the Agents window, so the chords never triggered
session navigation.

Bump the weight to `WorkbenchContrib + 1` so the session bindings win. The
the Agents window, leaving the main workbench Ctrl+Tab behavior untouched.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 4, 2026 14:44
@ulugbekna ulugbekna enabled auto-merge (squash) June 4, 2026 14:44
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

Fixes session navigation in the Agents window so Ctrl+Tab / Ctrl+Shift+Tab correctly move forward/back between sessions instead of being shadowed by the workbench editor quick-open bindings.

Changes:

  • Increase the keybinding weight for sessions.goBack / sessions.goForward so their Ctrl+Shift+Tab / Ctrl+Tab secondary bindings win over the editor quick-open actions at the same chord/weight.
  • Add inline comments documenting why the higher weight is required (to avoid the workbench conflict).
Show a summary per file
File Description
src/vs/sessions/contrib/sessions/browser/sessionsActions.ts Raises keybinding weight for session back/forward actions to resolve Ctrl+Tab chord conflicts in the Agents window.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@ulugbekna ulugbekna merged commit be44358 into main Jun 4, 2026
26 checks passed
@ulugbekna ulugbekna deleted the agents/what-are-the-default-keybindings-for-agent-windo-972b98d0 branch June 4, 2026 16:24
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 4, 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