fix(creation-helper): stabilize Gemini tool turns#55
Conversation
Preserve raw Gemini function-call parts so thought signatures survive tool-response turns. Map raw Gemini function calls back to tool result names, guard against repeated successful tool calls in the Smart Creator loop, and treat tool-only assistant turns as valid UI output instead of showing a false failure banner. Verified with npm run build, cargo test preserves_raw_function_call_parts_with_thought_signatures --lib --release, codesign verification, hdiutil verify, and mounted-DMG app signature verification.
|
I think the In I also think the dedupe is too broad for the fix scope. The replay issue is Gemini-specific, but this changes behavior for every provider and for all tools. Some creation-helper tools are intentionally idempotent or flow-oriented ( I'd keep the raw |
Preserve raw Gemini function-call parts so thought signatures survive tool-response turns.
Map raw Gemini function calls back to tool result names, guard against repeated successful tool calls in the Smart Creator loop, and treat tool-only assistant turns as valid UI output instead of showing a false failure banner.
Verified with npm run build, cargo test preserves_raw_function_call_parts_with_thought_signatures --lib --release, codesign verification, hdiutil verify, and mounted-DMG app signature verification.