Skip to content

Add --include-hidden support to aspire describe#16036

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/add-include-hidden-option
Draft

Add --include-hidden support to aspire describe#16036
Copilot wants to merge 5 commits intomainfrom
copilot/add-include-hidden-option

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

Description

aspire describe only returned visible resources, so hidden resources such as the dashboard could not be listed from the CLI. This change adds an opt-in path that mirrors the dashboard’s “Show hidden resources” behavior.

  • CLI surface

    • Adds --include-hidden to aspire describe
    • Keeps the default output unchanged; hidden resources remain excluded unless explicitly requested
  • Backchannel contract

    • Extends the existing v2 resource request objects with an optional IncludeHidden flag
    • Routes describe through the request-object-based v2 resource APIs instead of adding new positional backchannel methods
  • Server-side filtering

    • Applies hidden-resource filtering in the AppHost backchannel for both snapshot and watch flows
    • Preserves legacy v1 behavior for callers that do not use the new v2 request property
  • Coverage

    • Adds focused CLI tests for:
      • default exclusion of hidden resources
      • inclusion when --include-hidden is specified

Example:

# Existing behavior
aspire describe

# Include hidden resources such as the dashboard
aspire describe --include-hidden

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?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • centralus-2.in.applicationinsights.azure.com
    • Triggering command: /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.Cli/Debug/net10.0/aspire /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.Cli/Debug/net10.0/aspire new aspire-empty -n HiddenDescribeApp -o /tmp/aspire-include-hidden-verify --non-interactive --nologo (dns block)
    • Triggering command: /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.Cli/Debug/net10.0/aspire /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.Cli/Debug/net10.0/aspire run --non-interactive --apphost /tmp/aspire-include-hidden-verify/apphost.cs --log-file /home/REDACTED/.aspire/logs/cli_20260410T082119438_detach-child_1e19f98a5d0649f4b2ffad8dccb60aff.log ep/bin/linux-x64/rg (dns block)
    • Triggering command: /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.Cli/Debug/net10.0/aspire /home/REDACTED/work/aspire/aspire/artifacts/bin/Aspire.Cli/Debug/net10.0/aspire start --apphost /tmp/aspire-include-hidden-verify/apphost.cs --format json --non-interactive --nologo (dns block)
  • dnceng.pkgs.visualstudio.com
    • Triggering command: /usr/share/dotnet/dotnet dotnet test tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj -- --filter-method *.DescribeCommand_* --filter-not-trait quarantined=true --filter-not-trait outerloop=true (dns block)
    • Triggering command: /home/REDACTED/work/aspire/aspire/.dotnet/dotnet /home/REDACTED/work/aspire/aspire/.dotnet/dotnet exec /home/REDACTED/work/aspire/aspire/.dotnet/sdk/10.0.201/NuGet.CommandLine.XPlat.dll package search Aspire.Cli --take:1000 --skip:0 --prerelease --format:json (dns block)
    • Triggering command: /home/REDACTED/work/aspire/aspire/.dotnet/dotnet /home/REDACTED/work/aspire/aspire/.dotnet/dotnet exec /home/REDACTED/work/aspire/aspire/.dotnet/sdk/10.0.201/NuGet.CommandLine.XPlat.dll package search Aspire.ProjectTemplates --take:1000 --skip:0 --format:json (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI and others added 4 commits April 10, 2026 08:17
Agent-Logs-Url: https://github.com/microsoft/aspire/sessions/96f31bec-f57d-4861-8792-cd1728fef918

Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/aspire/sessions/96f31bec-f57d-4861-8792-cd1728fef918

Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Copilot AI changed the title [WIP] Add --include-hidden option to aspire describe Add --include-hidden support to aspire describe Apr 10, 2026
Copilot AI requested a review from davidfowl April 10, 2026 08:35
/// <param name="cancellationToken">A cancellation token.</param>
/// <returns>An async enumerable of resource snapshots as they change.</returns>
public IAsyncEnumerable<ResourceSnapshot> WatchResourceSnapshotsAsync([EnumeratorCancellation] CancellationToken cancellationToken = default)
public IAsyncEnumerable<ResourceSnapshot> WatchResourceSnapshotsAsync(CancellationToken cancellationToken = default)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

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.

aspire describe should have an option to include hidden resources

2 participants