Skip to content

fix(ai): preserve Gemini agent loop parity - #41109

Merged
rekram1-node merged 4 commits into
v2from
gemini-loop-parity
Aug 7, 2026
Merged

fix(ai): preserve Gemini agent loop parity#41109
rekram1-node merged 4 commits into
v2from
gemini-loop-parity

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replay unsigned Gemini 3 function calls with Google's documented validator-bypass sentinel so persisted histories with missing thought signatures can continue instead of failing with HTTP 400
  • forward seed, frequencyPenalty, and presencePenalty through the native Gemini generation config
  • preserve nested empty-object tool schemas and their descriptions while retaining the existing root empty-schema behavior
  • preserve multi-type and nullable JSON Schema type arrays by projecting them to Gemini-compatible anyOf and nullable fields instead of silently selecting the first type
  • add focused regression coverage for each behavior

Validation

  • bun test test/provider/gemini.test.ts (26 passed)
  • bun typecheck
  • bun run build
  • full packages/ai suite: 479 passed, 28 skipped, 4 unrelated existing failures in Azure URL expectations and stale OpenRouter recorded fixtures

Requested by: @rekram1-node (Aiden Cline via Slack)

@rekram1-node
rekram1-node merged commit db3b54a into v2 Aug 7, 2026
7 of 8 checks passed
@rekram1-node
rekram1-node deleted the gemini-loop-parity branch August 7, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant