Skip to content

sessions: open customizations editor to agents page from mode picker#308252

Merged
joshspicer merged 1 commit intomainfrom
copilot/rural-thrush
Apr 7, 2026
Merged

sessions: open customizations editor to agents page from mode picker#308252
joshspicer merged 1 commit intomainfrom
copilot/rural-thrush

Conversation

@joshspicer
Copy link
Copy Markdown
Member

Summary

When clicking "Configure Custom Agents..." in the sessions mode picker dropdown, the customizations editor now opens directly to the Agents page instead of whichever page was previously viewed.

Change

In modePicker.ts, the AICustomizationManagementCommands.OpenEditor command is now called with AICustomizationManagementSection.Agents as the section argument. The OpenEditor command already supports this parameter — it calls pane.selectSectionById(section) when provided — so this is a one-line change plus the import.

Testing

  • Open the sessions window chat input dropdown
  • Click "Configure Custom Agents..."
  • Verify the customizations editor opens to the Agents section regardless of which section was last viewed

When clicking 'Configure Custom Agents...' in the chat input mode
picker dropdown, pass AICustomizationManagementSection.Agents to the
OpenEditor command so the customizations editor opens directly to the
agents page instead of the previously viewed page.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 7, 2026 16:27
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

Updates the Sessions window mode picker so that selecting “Configure Custom Agents…” opens the AI Customizations editor directly on the Agents section, rather than restoring whatever section was last viewed. This aligns the Sessions entry point with the expected “agent-focused” workflow.

Changes:

  • Pass AICustomizationManagementSection.Agents to AICustomizationManagementCommands.OpenEditor from the mode picker action.
  • Add the corresponding import for AICustomizationManagementSection.
Show a summary per file
File Description
src/vs/sessions/contrib/copilotChatSessions/browser/modePicker.ts Ensures “Configure Custom Agents…” opens the customizations editor on the Agents section.

Copilot's findings

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

Comment thread src/vs/sessions/contrib/copilotChatSessions/browser/modePicker.ts
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

Screenshot Changes

Base: c4a91a18 Current: ed6e8ee5

Changed (2)

editor/inlineCompletions/WordReplacementView/Dark
Before After
before after
editor/suggestWidget/MethodCompletions/Light
Before After
before after

@joshspicer joshspicer merged commit fc99d59 into main Apr 7, 2026
54 of 57 checks passed
@joshspicer joshspicer deleted the copilot/rural-thrush branch April 7, 2026 18:12
@vs-code-engineering vs-code-engineering Bot added this to the 1.116.0 milestone Apr 7, 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