Skip to content

show harness name instead of 'Overview'#319585

Merged
aeschli merged 1 commit into
mainfrom
aeschli/available-caribou-731
Jun 2, 2026
Merged

show harness name instead of 'Overview'#319585
aeschli merged 1 commit into
mainfrom
aeschli/available-caribou-731

Conversation

@aeschli
Copy link
Copy Markdown
Contributor

@aeschli aeschli commented Jun 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 2, 2026 14:04
@aeschli aeschli enabled auto-merge (squash) June 2, 2026 14:04
@aeschli aeschli self-assigned this Jun 2, 2026
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

This PR updates the AI Customization management editor’s sidebar “Overview” (home) button to reflect the active customization harness (icon + label) when the harness selector dropdown is disabled, and documents that behavior for the Sessions window.

Changes:

  • Add logic to update the sidebar home button’s icon/label/aria-label based on the active harness when the selector is disabled.
  • Trigger the home button presentation update on harness changes and after header creation.
  • Document the intended sidebar behavior in AI_CUSTOMIZATIONS.md.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts Updates the sidebar home button presentation based on the active harness.
src/vs/sessions/AI_CUSTOMIZATIONS.md Documents the sidebar behavior when the harness selector dropdown is disabled.

Copilot's findings

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

Comment on lines 632 to +636
const homeButton = this.homeButton = DOM.append(headerRow, $('button.sidebar-home-button'));
homeButton.classList.add('sidebar-harness-home-button');
homeButton.setAttribute('aria-label', localize('homeButton', "Overview"));
this.editorDisposables.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('element'), homeButton, localize('homeButtonTooltip', "Back to overview")));
const homeIcon = DOM.append(homeButton, $('span.sidebar-home-icon'));
const homeIcon = this.homeButtonIcon = DOM.append(homeButton, $('span.sidebar-home-icon'));
Comment on lines +714 to +728
const descriptor = this.harnessService.getActiveDescriptor();
if (!descriptor) {
this.homeButtonIcon.className = 'sidebar-home-icon';
this.homeButtonIcon.classList.add(...ThemeIcon.asClassNameArray(Codicon.home));
this.homeButtonLabel.textContent = localize('overview', "Overview");
this.homeButton.setAttribute('aria-label', localize('homeButton', "Overview"));
this.homeButton.title = localize('homeButtonTooltip', "Back to overview");
return;
}

this.homeButtonIcon.className = 'sidebar-home-icon';
this.homeButtonIcon.classList.add(...ThemeIcon.asClassNameArray(descriptor.icon));
this.homeButtonLabel.textContent = descriptor.label;
this.homeButton.setAttribute('aria-label', localize('homeButtonWithHarness', "{0}, Back to overview", descriptor.label));
this.homeButton.title = localize('homeButtonTooltipWithHarness', "Current harness: {0}. Click to go to overview", descriptor.label);

The Agents sidebar `AICustomizationShortcutsWidget` supports three entrypoint modes via `sessions.customizations.sidebarMode`: `welcome` (default) keeps the per-category sidebar rows but opens the AI Customization management editor welcome page, `section` restores per-category deep linking, and `single` replaces the per-category rows with one Customizations entry that opens the welcome page. All modes keep the active customization harness in sync with the active session before opening the editor.

When the harness selector dropdown is disabled in the management editor, the sidebar overview button displays the active harness name and harness icon (matching the picker icon) with a distinct background treatment.
@aeschli aeschli merged commit 89bc8bc into main Jun 2, 2026
26 checks passed
@aeschli aeschli deleted the aeschli/available-caribou-731 branch June 2, 2026 14:25
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 2, 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