Skip to content

Update Microsoft Copilot SDK to 2.0.6 - #331

Open
SIkebe wants to merge 7 commits into
mainfrom
sikebe-copilot-sdk-2-0-5-update
Open

SIkebe wants to merge 7 commits into
mainfrom
sikebe-copilot-sdk-2-0-5-update

Conversation

@SIkebe

@SIkebe SIkebe commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Update Microsoft.Copilot.SDK in separate version commits from 2.0.5-preview.3 through 2.0.5, 2.0.6-preview.0, 2.0.6-preview.1, 2.0.6-preview.2, 2.0.6-preview.3, and stable 2.0.6. The bundled native runtime advances from 1.0.118-3 to 1.0.119; update the third-party version notice.
  • Audit the 2.0.5 release, preview.0, preview.1, preview.2, preview.3, and 2.0.6, their preview.1-to-preview.2, preview.2-to-preview.3, and preview.3-to-stable tag diffs, and the exact NuGet package metadata, targets and XML documentation. The four latest packages bundle runtimes 1.0.119-1, 1.0.119-3, 1.0.119-4, and 1.0.119, respectively. Dependencies and build targets are unchanged; preview.3 and stable have the same XML member names. Package source metadata identifies a separate private runtime commit, not the public SDK tag.
  • Require both confirmed Manual mode and an explicitly false effective ApproveAllTools result before exposing a session. An enabled or unreported blanket-approval state fails closed; the check is a startup snapshot, not continuous monitoring. Offline native-runtime tests verify the app policy rejects an attempt to enable blanket approval.
  • Distinguish root query errors empty_turn and static_context_blocked using SDK error codes, with Japanese and English messages and no inferred retry advice. Offline BYOK tests reproduce both codes with the bundled runtime; cancellation, timeout, subagent, non-query, and unknown-code handling stay conservative.
  • Preserve the existing radar-only tools, shell denial, manual permission handling, disabled ambient extensions and file hooks, and SDK audit callbacks. Managed-policy hooks and required plugin contributions remain subject to SDK policy. Do not enable the new session-directory tool, plugin launch auto-approval, Assisted Permissions, ambient skills, telemetry exporters, or experimental feature flags.
  • The new third-party MCP policy RPC reports policy rather than active or approved servers, and execution-working-directory metadata has no current app flow; leave both unused. The stable release also reports shutdown, memory, telemetry-disabled overhead, and model-error improvements; their individual performance effects were not measured.
  • Retain the prior host/plugin hook fixture hardening, workflow-permission coverage, and shutdown cancellation observation fix. The plugin-hook fixture passed before these versions too and is security coverage, not proof of a version-specific behavior change.

Related Issues

N/A - no issue to close.

Scope

  • App UI / workflow
  • Core services / data model
  • Copilot SDK / agent behavior
  • Preview / WebView2
  • Documentation / release readiness
  • Tests / tooling
  • Other:

Validation

  • dotnet build RepoSyncRadar.sln --no-restore -warnaserror -m:1 -p:RepoSyncRadarStopRunningAppBeforeBuild=false -v:minimal — passed with zero warnings/errors for preview.2, preview.3, and stable.
  • dotnet test RepoSyncRadar.sln --no-build --no-restore --timeout 10m --max-parallel-test-modules 1 -p:RepoSyncRadarStopRunningAppBeforeBuild=false -- --filter-not-trait Category=Manual — passed 1,690 tests on preview.2 and 1,700 tests on both preview.3 and stable, including 30 automated WebView2 E2E tests each. The preceding preview.1 gate passed 1,687 tests.
  • Focused tests: dotnet test tests\RepoSyncRadar.App.Tests\RepoSyncRadar.App.Tests.csproj --no-build --no-restore --timeout 10m -p:RepoSyncRadarStopRunningAppBeforeBuild=false -- --filter-class RepoSyncRadar.App.Tests.Copilot.CopilotInProcessRuntimeTests — preview.3 passed 27/27; the same command with --filter-class RepoSyncRadar.App.Tests.Copilot.CopilotModelFailureTests passed 31/31, and with --filter-class RepoSyncRadar.App.Tests.Components.AppHeaderTests passed 46/46.
  • Manual smoke / screenshots: the image below shows the actual component-rendered Japanese static-context error inserted into the running WebView2 shell as a synthetic state. It is illustrative, not a live model invocation; the native offline tests above independently exercise both error codes.

Synthetic static-context error displayed in the RepoSyncRadar header

Normal restores for the three latest SDK versions returned NU1102 because the configured proxy did not yet contain them. The exact NuGet CDN packages were SHA-512 verified and restored with a temporary isolated package source and cache; repository and user feed configuration were not changed. GitHub CI and CodeQL results are reported by the checks on the latest head.

Risk And Rollback

  • User impact: SDK 2.0.6 and runtime 1.0.119 are used for Copilot workflows; users get distinct messages for empty turns and static-context budget blocks. A session is rejected if its initial manual/blanket-approval state cannot be confirmed.
  • Operational risk: permission status is a point-in-time SDK report, not proof of later state or individual permission decisions. The two query errors are runtime-generated extensible codes and must remain tolerant of unknown values. A previous local host-hook timeout and WebView SetContentAsync timeout passed later runs; an older session.detach timeout remained unexplained. Runtime release-note benefits beyond the exercised behavior were not independently measured.
  • Rollback plan: revert the stable, preview.3, and preview.2 commits in reverse order to return to SDK 2.0.6-preview.1 and runtime 1.0.119-1; revert the earlier version commits as needed to return to the original dependency.

Release Notes

  • User-facing change
  • Internal-only change
  • No release note needed

Release note draft: Updated the Copilot SDK and bundled runtime to 2.0.6 and 1.0.119, added explicit startup verification of blanket tool approval, and improved diagnostics for empty model turns and static-context budget failures.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 15:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Access restrictions prevented independent verification of the SDK’s API/build targets and bundled runtime compatibility, requiring human review of those details and the reported intermittent native host-hook test failure.

No open issues 🎉

What changed in this PR

Updates RepoSyncRadar’s Copilot integration from preview to stable SDK and bundled runtime releases, without changing application workflow logic.

Changes:

  • Upgrades Microsoft.Copilot.SDK from 2.0.5-preview.3 to 2.0.5.
  • Updates the expected bundled runtime version to 1.0.118.
  • Aligns third-party notices and their test with the stable SDK version.
File Description
tests/​RepoSyncRadar.App.Tests/​Copilot/​CopilotInProcessRuntimeTests.cs Expects bundled runtime version 1.0.118.
tests/​RepoSyncRadar.App.Tests/​Components/​ThirdPartyNoticesPanelTests.cs Verifies the displayed SDK version is 2.0.5.
src/​RepoSyncRadar.App/​Settings/​ThirdPartyNotices.cs Updates the SDK version in third-party notices.
Directory.Packages.props Pins the stable Copilot SDK package at 2.0.5.

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 00:30
@SIkebe SIkebe changed the title Update Microsoft Copilot SDK to 2.0.5 Update Microsoft Copilot SDK to 2.0.6-preview.0 Dec 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The selected prerelease dependency and runtime test version differ from the stable versions covered by the audit and validation, leaving the actual dependency changes unverified.

1 open issue

Review effort: Balanced

Comment thread Directory.Packages.props Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 02:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Unexplained intermittent shutdown and enabled-hook failures in the native-runtime upgrade require human review despite subsequent passing reruns.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings December 2, 2026 04:25
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@SIkebe SIkebe changed the title Update Microsoft Copilot SDK to 2.0.6-preview.0 Update Microsoft Copilot SDK to 2.0.6-preview.1 Dec 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Inaccessible upstream SDK/runtime sources prevented independent auditing of the preview upgrade’s compatibility and security-sensitive hook changes, requiring human confirmation.

No open issues 🎉

Review effort: Balanced

SIkebe and others added 3 commits December 3, 2026 00:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 15:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The dependency and runtime test target stable versions 2.0.6 and 1.0.119, but the PR’s audit, validation record, and rollback instructions still describe 2.0.6-preview.1 and 1.0.119-1. The documented validation and rollback guidance therefore do not match the current target.

1 open issue

Review effort: Balanced

Comment thread Directory.Packages.props Resolved
@SIkebe SIkebe changed the title Update Microsoft Copilot SDK to 2.0.6-preview.1 Update Microsoft Copilot SDK to 2.0.6 Dec 2, 2026
@SIkebe
SIkebe requested a balanced review from Copilot December 2, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Upstream SDK 2.0.6 release/source access was denied, leaving its native permission/error and hook contracts independently unverified. Windows native-runtime and installed-package validation results for the latest head also remain unconfirmed.

1 open issue

Review effort: Balanced

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.

2 participants