mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8262] [MERGED] fix(llm): send a tool call's Gemini thought signature back on the next round #8253
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8262
Author: @kolacheee
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @kolacheee
Base:
staging← Head:claude/game-mode-cloud-nx3wjf📝 Commits (1)
6ffe327fix(llm): send a tool call's Gemini thought signature back on the next round📊 Changes
3 files changed (+125 additions, -8 deletions)
View changed files
📝
packages/server/src/services/llm/providers/openai.provider.ts(+30 -1)📝
packages/shared/src/types/generation-integration.ts(+4 -0)📝
scripts/regressions/provider-compat.regression.ts(+91 -7)📄 Description
Linked issue
Closes #8261
Why this change
What changed
extra_content(Gemini's OpenAI endpoint puts the call's thought signature inextra_content.google.thought_signature), streamed or not. A streamed call merges what later deltas add to it.LLMToolCallcarries thatextra_content, so the tool loop sends it back on the call unchanged. Only a provider that sent it gets it back.Validation
check-localespass locallyCONTRIBUTING.mdManual verification notes
provider-compat.regression.tshas two new cases. In the first, a non-streamed call with a signature keeps it, and the next round sends it back on the call. In the second, a streamed call keeps the signature from its opening delta while its arguments come in later ones.claude-opus55.regression.tspasses too.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.