[PR #5139] provider: treat tool_calls finish without calls as stop #11260

Closed
opened 2026-02-16 18:16:04 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5139

State: closed
Merged: No


  • Treats finish_reason: "tool_calls" as stop when no tool-call deltas were seen (prevents hangs when providers return an empty tool_calls list).
  • Keeps tool-calls when actual tool-call chunks were emitted.
  • Added a regression test for the mapping.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5139 **State:** closed **Merged:** No --- - Treats finish_reason: "tool_calls" as stop when no tool-call deltas were seen (prevents hangs when providers return an empty tool_calls list). - Keeps tool-calls when actual tool-call chunks were emitted. - Added a regression test for the mapping.
yindo added the pull-request label 2026-02-16 18:16:04 -05:00
yindo closed this issue 2026-02-16 18:16:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11260