[Skills] UX Polishing: Transparent feedback and CLI refinements (#15954)

This commit is contained in:
N. Taylor Mullen
2026-01-07 22:30:33 -08:00
committed by GitHub
parent aca6bf6aa0
commit 3e2f4eb8ba
6 changed files with 31 additions and 18 deletions

View File

@@ -182,7 +182,7 @@ describe('skillsCommand', () => {
expect(context.ui.addItem).toHaveBeenCalledWith(
expect.objectContaining({
type: MessageType.INFO,
text: 'Skill "skill1" disabled by adding it to the disabled list in project settings. Use "/skills reload" for it to take effect.',
text: 'Skill "skill1" disabled by adding it to the disabled list in project (/workspace) settings. Use "/skills reload" for it to take effect.',
}),
expect.any(Number),
);
@@ -211,7 +211,7 @@ describe('skillsCommand', () => {
expect(context.ui.addItem).toHaveBeenCalledWith(
expect.objectContaining({
type: MessageType.INFO,
text: 'Skill "skill1" enabled by removing it from the disabled list in project and user settings. Use "/skills reload" for it to take effect.',
text: 'Skill "skill1" enabled by removing it from the disabled list in project (/workspace) and user (/user/settings.json) settings. Use "/skills reload" for it to take effect.',
}),
expect.any(Number),
);
@@ -251,7 +251,7 @@ describe('skillsCommand', () => {
expect(context.ui.addItem).toHaveBeenCalledWith(
expect.objectContaining({
type: MessageType.INFO,
text: 'Skill "skill1" enabled by removing it from the disabled list in project and user settings. Use "/skills reload" for it to take effect.',
text: 'Skill "skill1" enabled by removing it from the disabled list in project (/workspace) and user (/user/settings.json) settings. Use "/skills reload" for it to take effect.',
}),
expect.any(Number),
);

View File

@@ -96,7 +96,7 @@ async function disableAction(
let feedback = renderSkillActionFeedback(
result,
(label, _path) => `${label}`,
(label, path) => `${label} (${path})`,
);
if (result.status === 'success') {
feedback += ' Use "/skills reload" for it to take effect.';
@@ -131,7 +131,7 @@ async function enableAction(
let feedback = renderSkillActionFeedback(
result,
(label, _path) => `${label}`,
(label, path) => `${label} (${path})`,
);
if (result.status === 'success') {
feedback += ' Use "/skills reload" for it to take effect.';