Skip to content

fix(opencode): revert google sdk tool call id change - #29310

Merged
rekram1-node merged 1 commit into
devfrom
fix/opencode-google-tool-call-regression
May 26, 2026
Merged

fix(opencode): revert google sdk tool call id change#29310
rekram1-node merged 1 commit into
devfrom
fix/opencode-google-tool-call-regression

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • revert the direct @ai-sdk/google pin from 3.0.75 to 3.0.63 in opencode and core
  • retain @ai-sdk/google-vertex@4.0.131 and its nested Google SDK update
  • refresh bun.lock to isolate the rollback to the non-Vertex Google path

Context

@ai-sdk/google@3.0.74+ replays Gemini function calls with functionCall.id and matching functionResponse.id. This works against Google directly, but Zen-routed opencode/gemini-3.1-pro requests hitting a managed GCP /v1 connection fail after the first tool call with HTTP 400:

Invalid JSON payload received. Unknown name "id" at contents[1].parts[1].function_call
Invalid JSON payload received. Unknown name "id" at contents[2].parts[0].function_response

This rolls back the direct Google SDK path while preserving the Google Vertex thought-signature update.

Verification

  • bun install --lockfile-only
  • git diff --check
  • bun typecheck in packages/opencode
  • bun typecheck in packages/core

@rekram1-node
rekram1-node merged commit 87e9e70 into dev May 26, 2026
7 of 12 checks passed
@rekram1-node
rekram1-node deleted the fix/opencode-google-tool-call-regression branch May 26, 2026 04:42
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
leduyphuc1702 pushed a commit to leduyphuc1702/opencode-workflow that referenced this pull request Jun 16, 2026
banlanzs pushed a commit to banlanzs/opencode that referenced this pull request Aug 6, 2026
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.

1 participant