Skip to content

SDK 1.0.5 + perf fixes (reasoning effort, task sub-agent) + gpt-5.6-sol with Priority processing - #54

Merged
Ali Reza Farahnak (alfarahn) merged 3 commits into
mainfrom
feature/upgrade-copilot-sdk
Jul 11, 2026
Merged

SDK 1.0.5 + perf fixes (reasoning effort, task sub-agent) + gpt-5.6-sol with Priority processing#54
Ali Reza Farahnak (alfarahn) merged 3 commits into
mainfrom
feature/upgrade-copilot-sdk

Conversation

@alfarahn

@alfarahn Ali Reza Farahnak (alfarahn) commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Three things in one shippable unit — SDK GA upgrade, the production slowness fixes from the App Insights investigation, and the model refresh to gpt-5.6-sol with Priority processing. Also applies the pending NuGet Dependabot bumps (supersedes #41, #42, #44, #51).

1. GitHub.Copilot.SDK 1.0.0-beta.41.0.5 (GA)

API surface confirmed by reflecting the shipped assembly:

Area beta.4 1.0.5
Namespace GitHub.Copilot.SDK GitHub.Copilot
Client home dir CopilotClientOptions.CopilotHome BaseDirectory
Permission handler new PermissionRequestResult { Kind = Approved } PermissionHandler.ApproveAll
Read transcript GetMessagesAsync() GetEventsAsync()
Session filter SessionListFilter.Cwd SessionListFilter.WorkingDirectory
Session metadata SessionMetadata.Context.Cwd .Context.WorkingDirectory
Tool collection List<AIFunction> List<AIFunctionDeclaration>

2. Performance fixes (prod App Insights showed 12.7-minute chat turns)

  • Reasoning effort configurable via AzureOpenAI:ReasoningEffort, default high (was hardcoded xhigh). Telemetry showed single xhigh LLM round-trips of 509 s and 489 s. xhigh remains available as an explicit opt-in.
  • task sub-agent excluded (SessionConfig.ExcludedTools = ["task"]) — one task call spawned a nested general-purpose agent that looped for 8.1 minutes in production. FinOps work uses direct tools only.

3. Model refresh: gpt-5.4gpt-5.6-sol + Priority processing

  • Default model/deployment gpt-5.6-sol (version 2026-07-09, GlobalStandard).
  • infra/modules/aoai.bicep now sets properties.serviceTier (new serviceTier param, default 'Priority') — the Foundry portal's "Priority processing" toggle, for faster time-to-first-token. Verified against the Microsoft.CognitiveServices/accounts/deployments@2026-03-01 ARM schema.
  • Production deployment gpt-5.6-sol (1M TPM, Priority, DefaultV2 guardrails) already created on finops-agent-ai via ARM.

4. Dependency updates

Type of change

  • Bug fix
  • New feature / new tool
  • Refactor
  • Documentation
  • Build / CI

Checklist

  • Builds locally (dotnet build) — Release, 0 warnings / 0 errors
  • Frontend builds (npm run build in src/Dashboard/frontend) — no frontend changes in this PR
  • No new secrets committed
  • No DELETE methods enabled in HTTP helpers
  • Updated .github/copilot-instructions.md if behaviour or structure changed
  • Updated CHANGELOG.md under [Unreleased]
  • Bicep compiles clean (bicep build)

Related issues

Closes #51

Migrate from GitHub.Copilot.SDK 1.0.0-beta.4 to 1.0.5. API changes: namespace GitHub.Copilot.SDK -> GitHub.Copilot; CopilotClientOptions.CopilotHome -> BaseDirectory; OnPermissionRequest -> PermissionHandler.ApproveAll (replaces PermissionRequestResult); CopilotSession.GetMessagesAsync -> GetEventsAsync; SessionListFilter.Cwd -> WorkingDirectory; SessionMetadata.Context.Cwd -> WorkingDirectory; SessionConfig.Tools is now ICollection<AIFunctionDeclaration> so tool-list types widened from List<AIFunction> to List<AIFunctionDeclaration>. Behavior-preserving. Verified: dotnet build Release GREEN (0/0). Supersedes #51. [skip ci] to avoid an unattended test-slot deploy; CI runs on merge to main.
…agent, gpt-5.6-sol + Priority processing, dep bumps

Slowness fixes from App Insights investigation (12.7-min chat turns): (1) ReasoningEffort now read from AzureOpenAI:ReasoningEffort, default 'high' — hardcoded 'xhigh' produced 8+ min single LLM round-trips; (2) Copilot CLI 'task' sub-agent excluded via SessionConfig.ExcludedTools — one call looped 8 min in prod; (3) default model gpt-5.6-sol 2026-07-09 with serviceTier Priority (new Bicep param, default Priority) for faster TTFT; (4) NuGet bumps: IdentityModel 8.19.1 x2 (#41 #42), OpenTelemetry 1.16.0 x2 (#44). Verified: dotnet build Release green; bicep build clean.
@alfarahn Ali Reza Farahnak (alfarahn) changed the title Upgrade GitHub.Copilot.SDK to 1.0.5 (+ API migration) SDK 1.0.5 + perf fixes (reasoning effort, task sub-agent) + gpt-5.6-sol with Priority processing Jul 11, 2026
@alfarahn
Ali Reza Farahnak (alfarahn) merged commit e85e719 into main Jul 11, 2026
5 checks passed
@alfarahn
Ali Reza Farahnak (alfarahn) deleted the feature/upgrade-copilot-sdk branch July 11, 2026 16:31
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.

1 participant