Skip to content

fix: remove 0.6s copilot overhead when copilot is not in enabled_providers#37924

Open
quark-zju wants to merge 1 commit into
anomalyco:devfrom
quark-zju:disable-auth-plugin
Open

fix: remove 0.6s copilot overhead when copilot is not in enabled_providers#37924
quark-zju wants to merge 1 commit into
anomalyco:devfrom
quark-zju:disable-auth-plugin

Conversation

@quark-zju

Copy link
Copy Markdown

Issue for this PR

Closes #37922

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Auth plugins (e.g. GitHub Copilot) should respect the enabled_providers config, not just disabled_providers config.

The GitHub Copilot plugin can add noticable overhead (e.g. 0.6s) downloading api.githubcopilot.com/models. If it's not enabled in enabled_providers, the overhead should disappear.

How did you verify your code works?

On Linux, use strace -p $(pidof opencode). Before this change, downloading api.githubcopilot.com/models occurs. After this change, downloading api.githubcopilot.com/models disappears.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@quark-zju
quark-zju force-pushed the disable-auth-plugin branch from 427aed4 to 83bb39b Compare July 20, 2026 12:56
@quark-zju quark-zju changed the title fix: respect enabled_providers settings for auth plugins fix: remove 0.6s copilot overhead when copilot is not in enabled_providers Jul 20, 2026
@quark-zju
quark-zju force-pushed the disable-auth-plugin branch from 83bb39b to 24d4d69 Compare July 20, 2026 15:42
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.

Performance: auth plugin (e.g. copilot) is still loaded even if not listed inenabled_providers

1 participant