opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: reasoning text for Gemini 3 Pro in GH Copilot

Open aadishv opened this issue 1 month ago • 3 comments

initially was to solve #4468 but that has magically resolved itself, this should still make QoL better though

aadishv avatar Dec 10 '25 22:12 aadishv

@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 avatar Jan 16 '26 12:01 SteffenDE

@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!

aadishv avatar Jan 18 '26 20:01 aadishv

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!

SteffenDE avatar Jan 18 '26 22:01 SteffenDE