You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gemini tool-calls fail after first step because thought_signature is dropped #727
Disclaimer: this was found and patched locally by codex while i was working on a personal project. Apologies if this is off base.
When using DurableAgent with Gemini thinking models and tools, follow‑up steps fail with:
“Function call is missing a thought_signature in functionCall parts…”
This happens because the workflow reconstructs tool‑call history without providerOptions, so the Gemini adapter can’t read thoughtSignature.
Environment
@workflow/ai: 4.0.1-beta.40
ai: 6.0.5
@ai-sdk/google: 3.0.2
Model: gemini-3-flash-preview (thinking enabled)
Repro
Use DurableAgent with Gemini model + tools.
A tool call is generated and executed.
Next step errors:
“Function call is missing a thought_signature in functionCall parts…”
Root cause
In packages/ai/src/agent/stream-text-iterator.ts, when finishReason === 'tool-calls', the tool call is appended without providerOptions:
Activity
fix(ai): preserve providerMetadata as providerOptions in multi-turn t…
fix(ai): preserve providerMetadata as providerOptions in multi-turn t…
pranaygp commentedon Jan 7, 2026
Opened #733 to fix this
pruales commentedon Jan 7, 2026
verified it works locally for me! thanks!
fix(ai): preserve providerMetadata as providerOptions in multi-turn t…
Add queue-based health check (#743)
Add queue-based health check (#743)