Skip to content

[release/13.2] Fix dashboard GitHub Copilot integration#15381

Merged
joperezr merged 4 commits intorelease/13.2from
jamesnk/ghcp-dashboard-fix
Mar 19, 2026
Merged

[release/13.2] Fix dashboard GitHub Copilot integration#15381
joperezr merged 4 commits intorelease/13.2from
jamesnk/ghcp-dashboard-fix

Conversation

@JamesNK
Copy link
Member

@JamesNK JamesNK commented Mar 19, 2026

Description

Fix dashboard GitHub Copilot integration:

  • Update OpenAI package from 2.7.0 to 2.8.0
  • Update Microsoft.Extensions.AI.OpenAI package version
  • Make resourceName parameter required (non-nullable) for GetStructuredLogsAsync and GetTracesAsync tool methods in AssistantChatDataContext
  • Add gpt-5.4 to the default models list in AssistantChatViewModel

The core fix is changing resourceName to be non-nullable. I believe the issue is caused by Microsoft.OpenApi being updated to a newer version, and a change in the newer version is to provide the parameter type as an array instead of a string. Code in VS breaks on the unexpected JSON.

Changing resourceName to be non-nullable means type stays a string.

I've tested 13.2 dashboard GHCP works with 18.4.

Fixes #15311

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?

Copilot AI review requested due to automatic review settings March 19, 2026 09:06
@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

🚀 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/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15381

Or

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

@JamesNK JamesNK changed the title Fix dashboard GitHub Copilot integration [release/13.2] Fix dashboard GitHub Copilot integration Mar 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the Aspire Dashboard GitHub Copilot (GHCP) assistant integration by aligning package versions and tool/model configuration to current GHCP expectations.

Changes:

  • Bumps OpenAI to 2.8.0 and updates Microsoft.Extensions.AI.OpenAI version.
  • Makes resourceName non-nullable for GetStructuredLogsAsync / GetTracesAsync tool methods.
  • Adds gpt-5.4 to the assistant’s default model fallback list.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/Aspire.Dashboard/Model/Assistant/AssistantChatViewModel.cs Updates default model preference order to include gpt-5.4.
src/Aspire.Dashboard/Model/Assistant/AssistantChatDataContext.cs Updates AI tool method signatures for resourceName (now required).
eng/Versions.props Updates Microsoft.Extensions.AI.OpenAI version used by the repo.
Directory.Packages.props Updates the OpenAI NuGet package version to 2.8.0.

<!-- dotnet/extensions -->
<MicrosoftExtensionsAIVersion>10.2.0</MicrosoftExtensionsAIVersion>
<MicrosoftExtensionsAIOpenAIVersion>10.1.0-preview.1.25608.1</MicrosoftExtensionsAIOpenAIVersion>
<MicrosoftExtensionsAIOpenAIVersion>10.2.0-preview.1.26063.2</MicrosoftExtensionsAIOpenAIVersion>
Copy link
Member

Choose a reason for hiding this comment

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

(this comment shouldn't block - just me asking) There are stable versions of this package now, should we be using them instead?

https://www.nuget.org/packages/Microsoft.Extensions.AI.OpenAI

Image

Copy link
Member Author

Choose a reason for hiding this comment

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

I kept it in sync with Microsoft.Extensions.AI.OpenAI. We're using 10.2.0 for it, so using 10.2.0 preview. Can stablize when we update packages again.

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
@github-actions
Copy link
Contributor

🎬 CLI E2E Test Recordings — 53 recordings uploaded (commit 0a19d89)

View recordings
Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
AddPackageWhileAppHostRunningDetached ▶️ View Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_DefaultSelection_InstallsSkillOnly ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
AspireAddPackageVersionToDirectoryPackagesProps ▶️ View Recording
AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View Recording
Banner_DisplayedOnFirstRun ▶️ View Recording
Banner_DisplayedWithExplicitFlag ▶️ View Recording
CertificatesClean_RemovesCertificates ▶️ View Recording
CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate ▶️ View Recording
CertificatesTrust_WithUntrustedCert_TrustsCertificate ▶️ View Recording
ConfigSetGet_CreatesNestedJsonFormat ▶️ View Recording
CreateAndDeployToDockerCompose ▶️ View Recording
CreateAndDeployToDockerComposeInteractive ▶️ View Recording
CreateAndPublishToKubernetes ▶️ View Recording
CreateAndRunAspireStarterProject ▶️ View Recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
CreateAndRunEmptyAppHostProject ▶️ View Recording
CreateAndRunJsReactProject ▶️ View Recording
CreateAndRunPythonReactProject ▶️ View Recording
CreateAndRunTypeScriptEmptyAppHostProject ▶️ View Recording
CreateAndRunTypeScriptStarterProject ▶️ View Recording
CreateStartAndStopAspireProject ▶️ View Recording
CreateTypeScriptAppHostWithViteApp ▶️ View Recording
DescribeCommandResolvesReplicaNames ▶️ View Recording
DescribeCommandShowsRunningResources ▶️ View Recording
DetachFormatJsonProducesValidJson ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
GlobalMigration_HandlesCommentsAndTrailingCommas ▶️ View Recording
GlobalMigration_HandlesMalformedLegacyJson ▶️ View Recording
GlobalMigration_PreservesAllValueTypes ▶️ View Recording
GlobalMigration_SkipsWhenNewConfigExists ▶️ View Recording
GlobalSettings_MigratedFromLegacyFormat ▶️ View Recording
InvalidAppHostPathWithComments_IsHealedOnRun ▶️ View Recording
LegacySettingsMigration_AdjustsRelativeAppHostPath ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
PsFormatJsonOutputsOnlyJsonToStdout ▶️ View Recording
PublishWithDockerComposeServiceCallbackSucceeds ▶️ View Recording
RestoreGeneratesSdkFiles ▶️ View Recording
RunWithMissingAwaitShowsHelpfulError ▶️ View Recording
SecretCrudOnDotNetAppHost ▶️ View Recording
SecretCrudOnTypeScriptAppHost ▶️ View Recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording
StopAllAppHostsFromAppHostDirectory ▶️ View Recording
StopAllAppHostsFromUnrelatedDirectory ▶️ View Recording
StopNonInteractiveMultipleAppHostsShowsError ▶️ View Recording
StopNonInteractiveSingleAppHost ▶️ View Recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View Recording
TypeScriptAppHostWithProjectReferenceIntegration ▶️ View Recording

📹 Recordings uploaded automatically from CI run #23301590151

@joperezr joperezr added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Mar 19, 2026
@joperezr joperezr merged commit 2a24bf9 into release/13.2 Mar 19, 2026
998 of 1011 checks passed
@joperezr joperezr deleted the jamesnk/ghcp-dashboard-fix branch March 19, 2026 18:40
@joperezr
Copy link
Member

Thanks a bunch for the quick turnaround on this @JamesNK !

@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-dashboard Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants