GitHub Copilot Enterprise authentication CLI has broken since v1.1.21, and the TUI is confusing #8461

Closed
opened 2026-02-16 18:10:01 -05:00 by yindo · 2 comments
Owner

Originally created by @dotned on GitHub (Feb 3, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

GitHub Copilot Enterprise authentication stopped working after v1.1.20 on the CLI opencode auth login and appears to be with the introduction of the internal plug-in

v1.1.21

Image

v1.1.20

Image

Also the TUI doesn't seem to work and is requesting an API code, but will show connected if a legit auth.json entry exists. If the UI /connect command is used it will break this config.

The "normal" GitHub authentication

Image Image

The GitHub Enterprise authentication, expecting to be asked for domain and then similar code exchange.

Image Image

Plugins

None

OpenCode version

v1.1.20- and v1.1.21+

Steps to reproduce

Install v1.1.20 and use opencode auth login for GitHub Copilot Enterprise and see the code exchange
Install v1.1.21 and use opencode auth login for GitHub Copilot Enterprise and see the error

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @dotned on GitHub (Feb 3, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description GitHub Copilot Enterprise authentication stopped working after v1.1.20 on the CLI ```opencode auth login``` and appears to be with the introduction of the internal plug-in v1.1.21 <img width="1082" height="271" alt="Image" src="https://github.com/user-attachments/assets/1c44042d-b557-4ee1-8720-35da2e8ae41d" /> v1.1.20 <img width="475" height="338" alt="Image" src="https://github.com/user-attachments/assets/03003c86-f095-48ef-93e1-2f376fb8b592" /> --- Also the TUI doesn't seem to work and is requesting an API code, but will show connected if a legit auth.json entry exists. If the UI /connect command is used it will break this config. The "normal" GitHub authentication <img width="592" height="213" alt="Image" src="https://github.com/user-attachments/assets/dbf6f606-2cdc-427e-a28a-a1b90370f91c" /> <img width="596" height="217" alt="Image" src="https://github.com/user-attachments/assets/4eb05b29-7c9b-4f2b-a2eb-d691490ceaa6" /> The GitHub Enterprise authentication, expecting to be asked for domain and then similar code exchange. <img width="626" height="149" alt="Image" src="https://github.com/user-attachments/assets/ba850060-2bd8-43bb-8f6a-2a721611a790" /> <img width="599" height="184" alt="Image" src="https://github.com/user-attachments/assets/40f145ba-4f1f-4db9-9731-0b0b53704853" /> ### Plugins None ### OpenCode version v1.1.20- and v1.1.21+ ### Steps to reproduce Install v1.1.20 and use ```opencode auth login``` for GitHub Copilot Enterprise and see the code exchange Install v1.1.21 and use ```opencode auth login``` for GitHub Copilot Enterprise and see the error ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsopentuibug labels 2026-02-16 18:10:01 -05:00
yindo closed this issue 2026-02-16 18:10:01 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 3, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11554: Copilot enterprise login fails due to GitHub.com client ID - reports the same enterprise domain auth flow failure
  • #3936: Github Enterprise authorization - reports enterprise auth errors with device authorization failures
  • #11475: User auth plugins cannot override built-in plugins in CLI auth flow - may be related to the auth flow behavior changes introduced in v1.1.21

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 3, 2026): This issue might be a duplicate of existing issues. Please check: - #11554: Copilot enterprise login fails due to GitHub.com client ID - reports the same enterprise domain auth flow failure - #3936: Github Enterprise authorization - reports enterprise auth errors with device authorization failures - #11475: User auth plugins cannot override built-in plugins in CLI auth flow - may be related to the auth flow behavior changes introduced in v1.1.21 Feel free to ignore if none of these address your specific case.
Author
Owner

@dotned commented on GitHub (Feb 3, 2026):

I can see this is the same as the following issue so Ill close.
https://github.com/anomalyco/opencode/issues/3936

@dotned commented on GitHub (Feb 3, 2026): I can see this is the same as the following issue so Ill close. https://github.com/anomalyco/opencode/issues/3936
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8461