feat: reasoning text for Gemini 3 Pro in GH Copilot
initially was to solve #4468 but that has magically resolved itself, this should still make QoL better though
@aadishv why did you remove the handling for the reasoning_opaque field in https://github.com/anomalyco/opencode/pull/5346/commits/db519e8e6c2683205636af1eef993fa1994eccc7? From my testing the model does behave differently if you don't send the signatures back. Gemini 2.5 even gets in a loop quite often, but it does not if passing the reasoning_opaque back.
@SteffenDE My implementation did not send the reasoning_opaque back so I removed all stuff to that, as the AI SDK version we were using did not automatically propagate provider_metadata. I'm not sure how you implemented it in #8900 but if it works, then cool! I'd recommend you double-check the request content, however, as I am relatively sure it still doesn't get propagated based on your implementation.
I don't use OpenCode much anymore but hope this helps!
Interesting! I did debug log the body in the stream function and did see the reasoning_opaque being sent back iirc, but I’ll check again tomorrow when I’m back at the PC. Thanks for letting me know!