Skip to content

Fix customizations sidebar restoring previous section on reopen#311458

Open
joshspicer wants to merge 2 commits intomainfrom
agents/fix-customizations-welcome-page-bug
Open

Fix customizations sidebar restoring previous section on reopen#311458
joshspicer wants to merge 2 commits intomainfrom
agents/fix-customizations-welcome-page-bug

Conversation

@joshspicer
Copy link
Copy Markdown
Member

Fixes a bug where clicking a sidebar category in the Agents app customizations view would restore the previously selected section instead of always opening the welcome page.

Steps to reproduce:

  1. Open customizations UI
  2. Select a category (e.g. Agents)
  3. Close
  4. Click a different category in the sidebar (e.g. Hooks)
  5. ❌ Opens back to 'Agents' instead of the welcome page

Fix:

  • Made showWelcomePage() public on AICustomizationManagementEditor
  • Call showWelcomePage() after opening the editor from the sidebar's openOverview(), so the persisted section is always cleared when navigating from the sidebar

When clicking a sidebar category to open the Chat Customizations editor,
always reset to the welcome page instead of restoring the previously
selected section. This fixes the bug where clicking a different category
(e.g. Hooks) after previously viewing another (e.g. Agents) would
incorrectly reopen the old section.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 19:04
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 navigation state in the Agents app AI Customizations flow so opening the management editor from the sidebar always lands on the welcome/overview page instead of restoring the last persisted section.

Changes:

  • Expose showWelcomePage() publicly on AICustomizationManagementEditor.
  • After opening the management editor from the sidebar overview, explicitly reset the editor to the welcome page to clear the persisted section.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts Makes showWelcomePage() public so it can be invoked by external callers to clear persisted section state.
src/vs/sessions/contrib/aiCustomizationTreeView/browser/aiCustomizationOverviewView.ts Calls showWelcomePage() after opening the management editor to ensure sidebar navigation always starts at the welcome page.

Copilot's findings

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

@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: a557dbcf Current: 335f448a

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after

@joshspicer joshspicer enabled auto-merge (squash) April 20, 2026 20:35
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.

4 participants