Repository navigation
Show configuration source repositories and Git acquisition progress - #21982
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21982Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21982" |
There was a problem hiding this comment.
🔵 Needs a closer look
Only unit tests were reported, leaving the live spinner’s effect on Git prompt visibility and credential input unverified by the existing New_GitAuthenticationPromptReceivesTerminalInput E2E test.
No open issues 🎉
7 files not reviewed
src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SecretCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SharedCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/TrayCommandStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/ControlsStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file
What changed in this PR
This PR makes Git configuration-source acquisition more visible in the Aspire CLI by identifying the repository and showing a status indicator, while preserving quiet cache hits and background version checks.
Changes:
- Adds redacted repository URLs to configuration-source fetch notices and wraps acquisition in the existing status UI.
- Consolidates shared fetch-message formatting and updates localization resources.
- Updates regression tests, console snapshots, and the configuration-source specification.
| File | Description |
|---|---|
| tests/Aspire.Cli.Tests/Snapshots/ConsoleInteractionServiceTests.ConfigSource_RendersFetchNotice_interactive=True.verified.txt | Records interactive repository notice and status text. |
| tests/Aspire.Cli.Tests/Snapshots/ConsoleInteractionServiceTests.ConfigSource_RendersFetchNotice_interactive=False.verified.txt | Records non-interactive repository notice and status text. |
| tests/Aspire.Cli.Tests/Interaction/ConsoleInteractionServiceTests.cs | Updates expected template fetch-message formatting. |
| tests/Aspire.Cli.Tests/Configuration/ConfigSourceServiceTests.cs | Covers repository notices, status ordering, escaping, and quiet cache hits. |
| tests/Aspire.Cli.Tests/Commands/NewCommandLocalTemplateTests.cs | Updates expected repository-template notices. |
| tests/Aspire.Cli.Tests/Commands/NewCommandLocalTemplateTests.ConfiguredGitSources.cs | Aligns configured-source assertions with shared formatting. |
| src/Aspire.Dashboard/Resources/ControlsStrings.Designer.cs | Incidental regeneration changes formatting, comments, and constructor accessibility. |
| src/Aspire.Cli/Utils/ConsoleHelpers.cs | Formats fetch notices with separate content and repository arguments. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.zh-Hant.xlf | Synchronizes Traditional Chinese localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.zh-Hans.xlf | Synchronizes Simplified Chinese localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.tr.xlf | Synchronizes Turkish localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.ru.xlf | Synchronizes Russian localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.pt-BR.xlf | Synchronizes Brazilian Portuguese localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.pl.xlf | Synchronizes Polish localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.ko.xlf | Synchronizes Korean localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.ja.xlf | Synchronizes Japanese localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.it.xlf | Synchronizes Italian localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.fr.xlf | Synchronizes French localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.es.xlf | Synchronizes Spanish localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.de.xlf | Synchronizes German localization entries. |
| src/Aspire.Cli/Resources/xlf/SharedCommandStrings.cs.xlf | Synchronizes Czech localization entries. |
| src/Aspire.Cli/Resources/TrayCommandStrings.Designer.cs | Refreshes generated comments, ordering, and whitespace; lookup behavior is unchanged. |
| src/Aspire.Cli/Resources/SharedCommandStrings.resx | Adds repository placeholders and a separate acquisition-status message. |
| src/Aspire.Cli/Resources/SharedCommandStrings.Designer.cs | Synchronizes accessors with the revised shared resources. |
| src/Aspire.Cli/Resources/SecretCommandStrings.Designer.cs | Refreshes generated documentation and whitespace. |
| src/Aspire.Cli/Resources/NewCommandStrings.Designer.cs | Contains incidental generated whitespace changes. |
| src/Aspire.Cli/Resources/InitCommandStrings.Designer.cs | Contains incidental generated whitespace changes. |
| src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs | Refreshes generated comment formatting and whitespace. |
| src/Aspire.Cli/Resources/ConfigSourceStrings.Designer.cs | Contains incidental generated whitespace changes. |
| src/Aspire.Cli/Resources/AgentCommandStrings.Designer.cs | Contains incidental generated whitespace changes. |
| src/Aspire.Cli/Resources/AddCommandStrings.Designer.cs | Contains an incidental generated whitespace change. |
| src/Aspire.Cli/Configuration/ConfigSourceService.cs | Displays the redacted repository and acquisition status. |
| docs/specs/cli-config-sources.md | Documents repository notices, status display, redaction, and quiet paths. |
Review effort: Balanced
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
The spinner can erase Git or SSH authentication prompts in interactive terminals, leaving the subprocess waiting for input without a visible prompt.
1 open issue
7 files not reviewed
src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SecretCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SharedCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/TrayCommandStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/ControlsStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file
Review effort: Balanced
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 Needs a closer look
Interactive validation is needed to confirm that the live spinner preserves Git authentication-prompt visibility and terminal input, which fake-based tests and non-ANSI snapshots do not establish.
7 files not reviewed
src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SecretCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SharedCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/TrayCommandStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/ControlsStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file
Review effort: Balanced
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
The PR title, description, and recording TODO still promise acquisition progress spinners, contradicting the intentional no-spinner behavior needed to keep authentication prompts visible.
1 open issue
1 resolved since last review
8 files not reviewed
src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/NewCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SecretCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SharedCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/TrayCommandStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/ControlsStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file
Review effort: Balanced
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 Needs a closer look
The advertised Git acquisition spinner conflicts with the implementation and tests, which intentionally show no status indicators, leaving the PR claims and behavior misaligned.
8 files not reviewed
src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/NewCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SecretCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SharedCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/TrayCommandStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/ControlsStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file
Review effort: Balanced
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
8ad8ce8 to
64005e8
Compare
Tests selector16 / 101 PR test projects · 5 PR jobs, from 63 changed files. Selected PR test projects (16 / 101)
Selected PR jobs (5)
How these were chosen — grouped by what changed
🔧 📦 affected project 📦 affected project 🔧 🔧 🔧 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 Job reasons
Selection computed for commit |
There was a problem hiding this comment.
🔵 Needs a closer look
The PR description promises a Git acquisition spinner, but the implementation and tests intentionally omit status UI, so the description and recording instructions need to match the delivered behavior.
No open issues 🎉
1 resolved since last review
8 files not reviewed
src/Aspire.Cli/Resources/DoctorCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/NewCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SecretCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/SharedCommandStrings.Designer.cs: Generated filesrc/Aspire.Cli/Resources/TrayCommandStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/ControlsStrings.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated filesrc/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file
Review effort: Balanced
|
Pull request created: #2097
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#2097 targeting Added Note This draft PR needs human review before merging. |
## Description Backport five merged CLI changes to `release/17.0` so users can identify configured content sources, understand agent setup results, and see acquisition progress without routine Git output clutter. Cherry-picked in order: 1. #21831 (`db62c35564`) - Show repository and ref in template picker group headings. 2. #21883 (`2fefac5abe`) - Clarify source and skill summaries in `aspire agent init`. 3. #21855 (`4954c76a62`) - Unify CLI source onboarding, presentation, and selection. 4. #21852 (`575c3bc76b`) - Quiet routine Git acquisition output. 5. #21982 (`7f897adec4`) - Show configuration source repositories and Git acquisition progress. The first four cherry-picks applied cleanly. The fifth conflicted in four dashboard resource designer files; those changes were excluded by retaining the release branch's versions. This PR contains no dashboard changes and no additional prerequisite commits. ### User-facing usage With configuration and template sources configured, run: ```shell aspire new --use-config-source ``` The CLI identifies source repositories, shows acquisition progress, and includes repository/ref information in template-source headings. ```shell aspire agent init ``` The setup summary separates configured remote sources from installed skills and identifies their agent-specific locations. ### Screenshots / Recordings > **This PR includes UI changes.** Please add screenshots or screen recordings so reviewers can evaluate the visual changes without running locally. > > - For before/after comparisons, place them side-by-side or label them clearly. > - For interactive changes (animations, transitions, new flows), prefer a short screen recording (GIF or video). > - If you cannot capture visuals now, note what scenario to test and mark this section as TODO. TODO: Capture the template-source picker, configuration-source acquisition progress, and `aspire agent init` source/skill summaries. No screenshots or recordings were captured for this backport. <!-- Add screenshots/recordings here --> ### Validation Focused CLI tests using the repository's existing .NET SDK (`11.0.100-rc.2.26504.105`): ```powershell dotnet test --project tests\Aspire.Cli.Tests\Aspire.Cli.Tests.csproj --no-launch-profile -- --filter-class '*.ConfigSourceServiceGitTests' --filter-class '*.ConfigSourceServiceTests' --filter-class '*.ConfigSourceCommandTests' --filter-class '*.AgentInitCommandTests' --filter-class '*.AgentInitClientSelectionTests' --filter-class '*.GitClientTests' --filter-class '*.GitCommandRunnerTests' --filter-class '*.ConsoleInteractionServiceTests' --filter-class '*.NewCommandLocalTemplateTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' ``` **Passed:** 1,453 succeeded, 2 skipped, 0 failed. The build emitted the existing NU1903 advisory for the pinned `Microsoft.DotNet.ILCompiler` package. This PR does not change dependency versions. Verified that the branch contains exactly five commits on top of `release/17.0`, that the cherry-picked patches match the originals apart from the excluded dashboard files, and that the backport worktree is clean. CLI E2E tests and live interactive scenarios were not run. Fixes # (issue) ## 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: Mitch Denny <[email protected]> Co-authored-by: Copilot App <[email protected]> Co-authored-by: Ella Hathaway <[email protected]> Copilot-Session: a47a61ad-c59b-4674-8e74-e493bff49b02


Description
Git configuration-source acquisition currently shows a generic fetching notice without identifying the repository or displaying progress. This makes it harder to tell which repository the CLI is contacting or whether acquisition is still running.
This change:
from {1}wording into the parent fetch messages, using separate content and repository arguments instead of nested resource formatting.User-facing usage
When a Git configuration source is configured, users can accept it with:
The relevant message text now identifies the repository before acquisition:
The acquisition status reads
Fetching configuration source using Git.... The fetch notice retains its blue styling and stderr routing, and the existing display redaction and markup escaping are reused.Screenshots / Recordings
TODO: Add a terminal recording of
aspire new --use-config-sourcewith a configured Git source, showing the repository notice and acquisition spinner. No live terminal recording was captured on this Windows host; the message text is covered by console snapshots.Validation
Localization regeneration:
Passed: 0 warnings, 0 errors.
Focused CLI regression tests:
Passed: 937 tests passed, 2 skipped, 0 failed. Both commands were run with
MSBUILDTERMINALLOGGER=false. The test build reported an existingNU1903advisory forMicrosoft.DotNet.ILCompiler; dependencies are unchanged.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?