Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,13 @@ export class AICustomizationListWidget extends Disposable {
break;
case 'remote-client':
label = localize('remoteClientGroupShort', "Local");
if (this.currentSection === AICustomizationManagementSection.Skills) {
description = localize(
'localSkillsGroupDescription',
"Skills stored on your local machine and synced to {0}, the active remote agent environment.",
this.harnessService.getActiveDescriptor().label,
);
Comment thread
hawkticehurst marked this conversation as resolved.
}
break;
default:
label = formatDisplayName(key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function createMockAgentHostCustomizationService(mcpServers: readonly FixtureAge
// item provider (bypassing the prompts-service discovery used by local
// harnesses). Provide items and writable folders so the fixture exercises
// the same discovery and migration availability as the real provider.
function createFixtureAgentHostItemProvider(files: readonly IFixtureFile[]): ICustomizationItemProvider {
function createFixtureAgentHostItemProvider(files: readonly IFixtureFile[], remoteClientSkillName?: string): ICustomizationItemProvider {
return {
onDidChange: Event.None,
async provideChatSessionCustomizations(): Promise<ICustomizationItem[]> {
Expand All @@ -178,7 +178,7 @@ function createFixtureAgentHostItemProvider(files: readonly IFixtureFile[]): ICu
name: file.name ?? '',
description: file.description,
source: file.storage as AICustomizationSource,
groupKey: 'remote-host',
groupKey: file.type === PromptsType.skill && file.name === remoteClientSkillName ? 'remote-client' : 'remote-host',
extensionId: file.extensionId,
pluginUri: undefined,
}));
Expand Down Expand Up @@ -681,6 +681,8 @@ interface IRenderEditorOptions {
readonly height?: number;
readonly skillUIIntegrations?: ReadonlyMap<string, string>;
readonly activeSessionMcpServers?: readonly FixtureAgentHostMcpServer[];
readonly agentHostFiles?: readonly IFixtureFile[];
readonly remoteClientSkillName?: string;
/** When true, simulates clicking the first list row to enter the embedded editor / detail view. */
readonly openFirstItem?: boolean;
readonly openItemLabel?: string;
Expand Down Expand Up @@ -767,7 +769,7 @@ async function renderEditor(ctx: ComponentFixtureContext, options: IRenderEditor
icon: ThemeIcon.fromId(Codicon.server.id),
hiddenSections: [AICustomizationManagementSection.Prompts],
hideGenerateButton: true,
itemProvider: createFixtureAgentHostItemProvider(allFiles),
itemProvider: createFixtureAgentHostItemProvider(options.agentHostFiles ?? allFiles, options.remoteClientSkillName),
},
];

Expand Down Expand Up @@ -1886,6 +1888,9 @@ export default defineThemedFixtureGroup({ path: 'chat/aiCustomizations/' }, {
render: ctx => renderEditor(ctx, {
sessionResource: agentHostCopilotSessionResource,
selectedSection: AICustomizationManagementSection.Skills,
agentHostFiles: allFiles.filter(file => file.type !== PromptsType.skill || file.name === 'Accessibility' || file.name === 'Code Review'),
remoteClientSkillName: 'Code Review',
height: 800,
}),
}),

Expand Down
Loading