You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: upgrade Copilot SDK to v0.3.0 and CLI to v1.0.36-0 (#8114)
* Migrate event system to Copilot SDK v0.3.0 typed events
Update all event handler code and tests to use the new SDK v0.3.0
event type constants (SessionEventType* prefix) and typed event data
structs (replacing the flat copilot.Data struct with per-event types
like AssistantMessageData, AssistantUsageData, etc.).
Key changes:
- Rename event constants: copilot.AssistantMessage -> copilot.SessionEventTypeAssistantMessage, etc.
- Replace event.Data.Field access with type assertions: event.Data.(*copilot.XxxData)
- Remove AssistantStreamingDelta case (SDK v0.3.0 only has TotalResponseSizeBytes, no phase/deltaContent)
- Update SessionShutdown handler: TotalPremiumRequests is now a plain float64
- Update ToolExecutionComplete error handling: simplified Error struct
- Guard Model assignment against empty string (now plain string, not *string)
- Update PermissionRequestKind constants in types_test.go
- Remove unused derefStr helper
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* chore: upgrade copilot SDK to v0.3.0 and CLI to v1.0.36-0
Upgrade github.com/github/copilot-sdk/go from v0.1.32 to v0.3.0
and update the bundled CLI version from 1.0.2 to 1.0.36-0.
Breaking changes addressed:
- MCPServerConfig changed from map[string]any to a typed interface
with MCPStdioServerConfig and MCPHTTPServerConfig structs
- PermissionRequestKind constants renamed (e.g. MCP -> PermissionRequestKindMcp)
- PermissionRequestResult Kind field now uses typed constants
- CLI version regex in tests updated to allow prerelease suffixes
This addresses issue #8108 where azd init Copilot Preview silently
falls back from claude-opus-4.7 to claude-opus-4.6 due to the older
SDK/CLI version not fully supporting newer models.
Fixes#8108
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* chore: apply preflight auto-fixes (formatting, spelling)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: address PR review feedback
- Require type assertion success in E2E test to prevent silent pass
- Broaden CLI version regex to support full SemVer prerelease identifiers
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: use Rejected result kind for explicit denials
Update permission result kind mappings:
- User skip (ErrToolExecutionSkipped): UserNotAvailable -> Rejected
(user was consulted and actively chose to skip)
- Rules deny (pre-check denial): UserNotAvailable -> Rejected
(definitive policy denial, not transient unavailability)
This ensures the Copilot service correctly treats these as final
denials rather than retryable unavailability scenarios.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments