You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show agent init warnings during skills selection - #21769
Move the existing skill-source information, trust warning, and local Aspire skill warning above the aspire agent init skills picker, so they are visible while selecting Aspire instead of after confirming it. Keep the existing wording, formatting, and relative/~/ paths. Local-skill scan errors only block setup when Aspire is selected.
Condensed example with a project-local Aspire skill:
Before
Which skills and tools do you want to configure?
> [X] aspire
[Press Enter]
ℹ️ Skill sources:
https://github.com/microsoft/aspire-skills
🚨 Only use sources you trust. Content from these sources can run code on your machine.
🚨 Local Aspire skill files may override plugin skills:
.agents/skills/aspire/SKILL.md
After
ℹ️ Skill sources:
https://github.com/microsoft/aspire-skills
🚨 Only use sources you trust. Content from these sources can run code on your machine.
🚨 Local Aspire skill files may override plugin skills:
.agents/skills/aspire/SKILL.md
Which skills and tools do you want to configure?
> [X] aspire
Checklist
Is this feature complete?
Yes. Ready to ship.
No. Follow-up changes expected.
Are you including unit tests for the changes and scenario tests if relevant?
Yes
No
Did you add public API?
Yes
If yes, did you have an API Review for it?
Yes
No
Did you add <remarks /> and <code /> elements on your triple slash comments?
Yes
No
No
Does the change make any security assumptions or guarantees?
Yes
If yes, have you done a threat model and had a security review?
The new tests do not verify that warnings remain in terminal history after the interactive skills picker closes, leaving this persistence behavior without regression coverage. Extend AgentInitCommand_DefaultSelection_RegistersRemotePlugin in tests/Aspire.Cli.EndToEnd.Tests/AgentCommandTests.cs with a configured source and a local Aspire skill copy. Assert that the warnings and absolute paths appear before selection and remain after the picker closes.
Show effective skill source when environment variables override defaults
SkillSource.Resolve still consumes environment variables, so the absence of a file-defined skillSources section does not imply that the built-in repository is being used. For example, with skillSources__default__repository=example/team and no skillSources in either settings file, this warning directs the user to review microsoft/aspire-skills, but selecting Aspire registers example/team. Report the effective repository/catalog URLs or environment provenance in this case, and reserve the official-URL fallback for the actual built-in source.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The updated warning breaks two existing E2E assertions, while eager source validation can abort interactive setup before users can opt out of Aspire and configure unrelated tools.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The warnings still omit contributing configuration file paths for skillSources and render conflicting paths as relative or ~/ entries with extra indentation, leaving users unable to identify the relevant files unambiguously.
Ella Hathaway (ellahathaway)
changed the title
Improve agent init warning provenance and readability
Show agent init warnings during skills selection
Nov 4, 2026
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Interactive initialization aborts on invalid skill sources or unreadable local skills before users can deselect Aspire, blocking otherwise unrelated tools-only or MCP-only configuration.
Display the existing skill-source information, trust warning, and local Aspire skill warning before confirming the skills picker. Preserve the existing wording and display paths.
Co-authored-by: Copilot App <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Invalid skill-source settings can throw before the interactive picker opens, blocking MCP-only or tools-only setup even when Aspire would be deselected.
## Description
Static Aspire skill files can take precedence over skills supplied by
agent plugins. `aspire doctor` now points out those files and suggests
deleting them, then running `aspire agent init --skills aspire`.
The check uses the same discovery as `aspire agent init` and checks both
project and global locations. It only reports what it finds: it does not
delete files, create backups, change registrations, or install skills.
Both output formats share the same warning message and `files` list,
using workspace-relative and `~/` paths with absolute fallback outside
both roots. JSON keeps `metadata.workspaceRoot` as context. There is no
separate `details` field or repeated file list for this warning.
Related to #19726. Depends on #21769.
### Examples
Terminal warning, from the output regression snapshot:
```text
AppHost
🚨 Local Aspire skill files may override plugin skills
Delete these files, then run 'aspire agent init --skills aspire'.
Files:
.agents/skills/aspire/SKILL.md
~/.agents/skills/aspire/SKILL.md
```
The matching JSON check, with an example workspace root:
```json
{
"category": "apphost",
"name": "aspire-skill-sources",
"status": "warning",
"message": "Local Aspire skill files may override plugin skills",
"fix": "Delete these files, then run 'aspire agent init --skills aspire'.",
"files": [
".agents/skills/aspire/SKILL.md",
"~/.agents/skills/aspire/SKILL.md"
],
"metadata": {
"workspaceRoot": "C:\\Users\\dev\\src\\my-app"
}
}
```
## Checklist
- Is this feature complete?
- [x] Yes. Ready to ship.
- [ ] No. Follow-up changes expected.
- Are you including unit tests for the changes and scenario tests if
relevant?
- [x] Yes
- [ ] No
- Did you add public API?
- [ ] Yes
- If yes, did you have an API Review for it?
- [ ] Yes
- [ ] No
- Did you add `<remarks />` and `<code />` elements on your triple slash
comments?
- [ ] Yes
- [ ] No
- [x] No
- Does the change make any security assumptions or guarantees?
- [ ] Yes
- If yes, have you done a threat model and had a security review?
- [ ] Yes
- [ ] No
- [x] No
---------
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b0dbbde1-69ad-48f0-acf6-9b8a33672808
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Move the existing skill-source information, trust warning, and local Aspire skill warning above the
aspire agent initskills picker, so they are visible while selecting Aspire instead of after confirming it. Keep the existing wording, formatting, and relative/~/paths. Local-skill scan errors only block setup when Aspire is selected.Fixes #21405
Condensed example with a project-local Aspire skill:
Before
After
Checklist
<remarks />and<code />elements on your triple slash comments?