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
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