fix(tui): enable GitHub Copilot Enterprise authentication in /connect… #6974
+273
−19
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.
Problem
GitHub Copilot Enterprise authentication is missing in TUI
/connectcommand. The CLI (auth login) supports enterprise login with deployment type selection and conditional prompts, but TUI/connecthas no option for enterprise authentication at all.Solution
Added enterprise authentication support to TUI
/connectby implementing the same prompt collection logic as CLI:github-copilot-enterprisevsgithub-copilot)Changes
provider.idinstead ofmodel.providerIDTesting
/connectwith GitHub Copilot (public)/connectwith GitHub Copilot EnterpriseNote: If these changes are approved, I will raise a separate PR for Desktop app support.
Before :
Screen.Recording.2026-01-05.at.11.12.39.PM.mov
After :
Screen.Recording.2026-01-05.at.11.19.25.PM.mov