Rebuild GitHub Copilot provider support on upstream reset#43
Merged
Rebuild GitHub Copilot provider support on upstream reset#43
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Important Review skippedToo many files! This PR contains 300 files, which is 150 over the limit of 150. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (300)
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
This PR rebuilds GitHub Copilot provider support from scratch after resetting the fork to the upstream
pingdotgg/t3code@mainbaseline. The integration follows upstream patterns for providers, using@github/copilot-sdkfor runtime operations.Contracts & Schemas
copilottoProviderKindliterals in orchestration and provider schemasCopilotProviderStartOptionsforcliPathandconfigDirconfigurationServerProviderStateandModelCapabilitiesto support Copilot modelsServer Integration
CopilotAdapter(apps/server/src/provider/Layers/CopilotAdapter.ts) wrapping@github/copilot-sdkfor session lifecycle, turn execution, MCP servers, and event streamingCopilotProviderfor health checks, model discovery, and built-in model fallbacks (gpt-5,gpt-5-mini, etc.)copilotCliPathandcopilotMcpServershelpers for CLI override resolution and MCPmcp-config.jsonloadingWeb UI & State
copilottoPROVIDER_OPTIONSin session logic and provider pickermodelSelection.tsandcomposerDraftStore.tsto handle Copilot model selection andreasoningEffortoptionsTraitsPickerto support Copilot-specific traits with provider branchingDocumentation & Packaging
@github/copilot-sdkdependency toapps/server/package.jsonGit / Routing Layer Fixes
RoutingTextGenerationto useProviderKindinstead of deprecatedTextGenerationProviderWhy
The previous fork had drifted significantly from upstream and carried forward legacy patterns. Resetting to upstream first eliminates that drift, allowing Copilot support to be rebuilt using current upstream abstractions (provider registry, snapshot services, runtime ingestion) rather than carrying forward stale code. This results in a cleaner, more maintainable integration that follows the project's current architecture.