Skip to content

Fix Copilot Gemini image understanding - #81429

Merged
steipete merged 4 commits into
mainfrom
codex/copilot-gemini-image-fix
May 13, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/copilot-gemini-image-fix

Conversation

@steipete

@steipete steipete commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Supersedes #80393 and #80442 while preserving the contributor commits from @afunnyhy.

Real behavior proof

Before fix, the real Copilot key against the old Responses route reproduced the failure:

OLD_ROUTE_RESULT stop=error error=400 model gemini-3.1-pro-preview does not support Responses API. text=

After fix, the same real Copilot key and image through the fixed Chat Completions route returned:

FIXED_ROUTE_RESULT stop=stop text=Cat

Final CLI live smoke on the rebased branch head:

OPENCLAW_LIVE_TEST=1 pnpm openclaw infer image describe --file /tmp/openclaw-copilot-cat.png --model github-copilot/gemini-3.1-pro-preview --prompt 'What animal is shown in the image? Reply with one word.' --json --timeout-ms 300000

{
  "ok": true,
  "capability": "image.describe",
  "transport": "local",
  "provider": "github-copilot",
  "model": "gemini-3.1-pro-preview",
  "attempts": [],
  "outputs": [
    {
      "path": "/tmp/openclaw-copilot-cat.png",
      "text": "Cat",
      "provider": "github-copilot",
      "model": "gemini-3.1-pro-preview",
      "kind": "image.description"
    }
  ]
}

Verification

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling extensions: github-copilot size: M maintainer Maintainer-authored PR labels May 13, 2026
@clawsweeper

clawsweeper Bot commented May 13, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: Fix Copilot Gemini image understanding This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling extensions: github-copilot maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants