Skip to content

Set Dashboard AI disabled default to true - #16550

Merged
James Newton-King (JamesNK) merged 3 commits into
microsoft:mainfrom
JamesNK:jamesnk/ai-disabled-default-true
Apr 29, 2026
Merged

James Newton-King (JamesNK) merged 3 commits into
microsoft:mainfrom
JamesNK:jamesnk/ai-disabled-default-true

Conversation

@JamesNK

@JamesNK James Newton-King (JamesNK) commented Apr 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • default Dashboard:AI:Disabled to rue when the value is not configured
  • keep explicit config values unchanged when set to rue or alse
  • update Configuration_DisableAI_EnsureValueSetOnOptions to pass expected values directly in theory data

Validation

  • dotnet test --project tests/Aspire.Dashboard.Tests/Aspire.Dashboard.Tests.csproj --no-launch-profile -- --filter-method "*.Configuration_DisableAI_EnsureValueSetOnOptions" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"

fixes #13695

Default Dashboard:AI:Disabled to true when unset and update integration test theory to pass explicit expected values.
Copilot AI review requested due to automatic review settings April 29, 2026 05:53
@github-actions

github-actions Bot commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16550

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16550"

Copilot AI left a comment

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.

Pull request overview

This PR changes the Aspire Dashboard’s configuration post-processing so that AI is disabled by default when Dashboard:AI:Disabled is not configured, and updates the related integration test to assert the new default behavior.

Changes:

  • Default DashboardOptions.AI.Disabled to true when the config key is missing/unparseable.
  • Update Configuration_DisableAI_EnsureValueSetOnOptions to pass explicit expected values via theory data.
  • Adjust the AI-enabled assertion to align with the new default.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Aspire.Dashboard/Configuration/PostConfigureDashboardOptions.cs Sets the default for options.AI.Disabled to true when configuration doesn’t provide a value.
tests/Aspire.Dashboard.Tests/Integration/StartupTests.cs Updates the AI disablement test matrix to validate the new default and preserve explicit true/false behavior.

Update Configuration_OptionsMonitor_DebugSession theory to pass explicit expected AI disabled values for null, true, and false config inputs.
Keep existing Dashboard:AI:Disabled option value when already set and only default to true when unset.
@github-actions

Copy link
Copy Markdown
Contributor

Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
GitHub was asked to rerun all failed jobs for that attempt, and the rerun is being tracked in the rerun attempt.
The job links below point to the failed attempt jobs that matched the retry-safe transient failure rules.

@JamesNK
James Newton-King (JamesNK) merged commit 4d0d740 into microsoft:main Apr 29, 2026
562 of 567 checks passed
@github-actions github-actions Bot added this to the 13.3 milestone Apr 29, 2026
Nell Shamrell-Harrington (nellshamrell) pushed a commit to nellshamrell/aspire that referenced this pull request May 18, 2026
* Set Dashboard AI disabled default to true

Default Dashboard:AI:Disabled to true when unset and update integration test theory to pass explicit expected values.

* Parameterize debug session AI expectation

Update Configuration_OptionsMonitor_DebugSession theory to pass explicit expected AI disabled values for null, true, and false config inputs.

* Preserve preconfigured AI disabled value

Keep existing Dashboard:AI:Disabled option value when already set and only default to true when unset.
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

3 participants