Skip to content

Upgrade Copilot SDK to 1.0.5 and implement direct HTTP transport#2683

Merged
hillary-mutisya merged 8 commits into
microsoft:mainfrom
hillary-mutisya:copilotMode3
Jul 16, 2026
Merged

Upgrade Copilot SDK to 1.0.5 and implement direct HTTP transport#2683
hillary-mutisya merged 8 commits into
microsoft:mainfrom
hillary-mutisya:copilotMode3

Conversation

@hillary-mutisya

@hillary-mutisya hillary-mutisya commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces significant improvements to the Copilot AI client by adding a new direct transport layer, updating dependencies, and enhancing test flexibility. The main focus is enabling direct HTTP requests to Copilot endpoints, improving compatibility, and ensuring robust endpoint management.

Key changes include:

Copilot Direct Transport Integration

  • Added a new module copilotDirectTransport.ts that implements a direct HTTP transport for Copilot, supporting endpoint acquisition, credential management, streaming, and vision input. This improves reliability and matches Azure/OpenAI HTTP behavior for retries, timeouts, and throttling.

Dependency Updates

  • Upgraded @github/copilot-sdk to version 1.0.5 in both ts/examples/workflow/engine/package.json and ts/packages/aiclient/package.json for improved Copilot SDK compatibility and features. [1] [2]

Update @github/copilot-sdk from 0.2.0/0.3.0 to 1.0.5 and implement direct-CAPI HTTP transport for model requests.

This replaces the SDK's session-based API with direct HTTP calls to the session's provider endpoint, reducing latency and SDK overhead. Key changes:

- Add copilotDirectTransport.ts with HTTP-based chat model implementation
- Refactor copilotModels.ts to use endpoint provider pattern with caching
- Create CopilotEndpointProvider for endpoint acquisition and refresh management
- Update RuntimeConnection API usage for SDK 1.0.5 compatibility
- Add comprehensive tests for direct transport including error recovery
@hillary-mutisya hillary-mutisya added this pull request to the merge queue Jul 16, 2026
Merged via the queue into microsoft:main with commit 8dcf7cb Jul 16, 2026
26 checks passed
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