GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Gemini 3 integration fail · Issue #6050 · anomalyco/opencode

Gemini 3 integration fail #6050

New issue
Copy link
New issue
Copy link
Closed
Closed
Gemini 3 integration fail#6050
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@ceo-s
ceo-s
opened on Dec 23, 2025
Issue body actions

Description

Gemini3 outputs JSON.

When Gemini3 models are used, everything they output is either thinking blocks or JSON instead of formatting it right.

Image Image

All Gemini models started acting weird

Sometimes it's ok and they do what i ask, sometimes they fail

This one went ok:

Image

This one failed

Image

OpenCode version

1.0.193

Steps to reproduce

  1. Open Opencode
  2. Add Google AI Studio API key
  3. Choose Gemini 3 Flash/Pro Preview model
  4. Prompt

Screenshot and/or share link

No response

Operating System

Arch linux

Terminal

Gnome Terminal

Reacted by Alexander Hirner, David Carvallo, Aitijya Sarkar, Hadrien David, Reijhanniel Jearl Campos, Chen-Sheng Lin, Jared Norman, Rafi Khardalian, Динь Чыонг Лам and Rodion Mostovoi

Activity

  1. ceo-s
    added
    bugSomething isn't working
    on Dec 23, 2025
  2. github-actions
    assigned
    thdxr
    on Dec 23, 2025
  3. github-actions commented on Dec 23, 2025

    @github-actions
    github-actionsBot
    on Dec 23, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • google/gemini-3-pro-preview output formatting went off the rails #4954: google/gemini-3-pro-preview output formatting went off the rails - Reports similar output formatting issues where the model stops showing any formatting
    • Gemini 3 pro preview issues #4632: Gemini 3 pro preview issues - Documents issues with google-vertex/gemini-3-pro-preview model behavior
    • [BUG]: Gemini 3 Pro function calling fails - missing thoughtSignature support #4832: [BUG]: Gemini 3 Pro function calling fails - missing thoughtSignature support - Addresses a critical issue where Gemini 3 Pro fails to handle function calling properly due to missing thoughtSignature preservation
    • Error with Gemini models when MCP enabled #5832: Error with Gemini models when MCP enabled - Another Gemini model integration issue when MCP is enabled

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

  4. rekram1-node
    assigned
    rekram1-node
    and unassigned
    thdxr
    on Dec 23, 2025
  5. longsman commented on Dec 23, 2025

    @longsman
    longsman
    on Dec 23, 2025
    More actions

    I'll add some additional details - because the provider somehow makes a difference.
    The OP's output format problems also happens with gemini 3 flash and gemini 3 pro, however:
    Openrouter: no output issues for gemini 3 flash
    Vercel AI gateway: no output issues for gemini 3 flash.
    Opencode Zen: I experience nested json output, sometimes with full content, sometimes empty responses "{}"
    I have not experimented with direct google's api provider.

    Upon further investigation, I found:
    vercel/ai#11396
    Which describes this issue upstream, and if I'm not mistaken, opencode zen uses this sdk, although I do no understand why Vercel AI gateway would not have this problem.

    I'm having trouble weighing what to do here else just switch providers and wait for upstream.

    EDIT: yeah keep an eye on that vercel issue someone making progress, probably best that this just gets resolved upstream.

  6. palekiwi commented on Dec 24, 2025

    @palekiwi
    palekiwi
    on Dec 24, 2025
    More actions

    I can confirm that google/gemini-3-pro-preview (direct Google provider via API key) has also started outputting JSON

  7. rekram1-node commented on Dec 24, 2025

    @rekram1-node
    rekram1-node
    on Dec 24, 2025
    Member
    More actions

    I heard a variety of people report degraded performance from gemini models elsewhere, nothing we did has changed... That said I need to do gemini optimizations regardless

  8. rmk40 commented on Dec 24, 2025

    @rmk40
    rmk40
    on Dec 24, 2025
    Contributor
    More actions

    Another confirmation that this issue consistently occurs with the Gemini 3 models.

  9. kaitokid2302 commented on Dec 25, 2025

    @kaitokid2302
    kaitokid2302
    on Dec 25, 2025
    More actions

    This problem occurs for me too; please fix it soon.

    Reacted by Jared Norman and Rodion Mostovoi
  10. longsman commented on Dec 26, 2025

    @longsman
    longsman
    on Dec 26, 2025
    More actions

    hey guys double check i believe it's resolved now. because of google. see the vercel issue I linked. @ceo-s see if its resolved

  11. rekram1-node commented on Dec 26, 2025

    @rekram1-node
    rekram1-node
    on Dec 26, 2025
    Member
    More actions

    Thank you @longsman it does indeed appear to be a google issue thank you for linking this!!!

  12. rekram1-node
    closed this as completedon Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.