Gemini Bad Request with Github Copilot #5701

Open
opened 2026-02-16 17:55:47 -05:00 by yindo · 0 comments
Owner

Originally created by @ngt-sg on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

No matter which Gemini model I use with Github Copilot authentication I get a Bad Request: Bad Request error

It works for a colleague with the same Github Copilot license from our company.

I can prompt Gemini from the Copilot CLI

EDIT:
Found the issue. Gemini models fail with the Docker Gateway MCP with the Linear plugin enabled

Plugins

Tried both with and without "opencode-openai-codex-auth" installed

OpenCode version

1.1.19

Steps to reproduce

  1. Authenticate with Github Copilot
  2. Have Docker MCP gateway with Linear plugin enabled
  3. Select any Gemini model
  4. Write any prompt
  5. Receive Bad Request: Bad Request error

Screenshot and/or share link

Image Image

Operating System

macOS 26.1

Terminal

Ghostty and macOS Terminal

Originally created by @ngt-sg on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description No matter which Gemini model I use with Github Copilot authentication I get a `Bad Request: Bad Request` error It works for a colleague with the same Github Copilot license from our company. I can prompt Gemini from the Copilot CLI EDIT: Found the issue. Gemini models fail with the Docker Gateway MCP with the Linear plugin enabled ### Plugins Tried both with and without "opencode-openai-codex-auth" installed ### OpenCode version 1.1.19 ### Steps to reproduce 1. Authenticate with Github Copilot 2. Have Docker MCP gateway with Linear plugin enabled 3. Select any Gemini model 4. Write any prompt 5. Receive `Bad Request: Bad Request` error ### Screenshot and/or share link <img width="445" height="265" alt="Image" src="https://github.com/user-attachments/assets/a9861bd3-4c50-4bb6-8059-96bdcdbe96ef" /> <img width="446" height="271" alt="Image" src="https://github.com/user-attachments/assets/54a40152-12a7-41f2-a973-225414bde6ab" /> ### Operating System macOS 26.1 ### Terminal Ghostty and macOS Terminal
yindo added the bug label 2026-02-16 17:55:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5701