Skip to content

fix(ai): avoid truncated tool calls - #46040

Merged
rekram1-node merged 1 commit into
v2from
chat-length-tools
Aug 28, 2026
Merged

rekram1-node merged 1 commit into
v2from
chat-length-tools

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • treat length finishes as unconfirmed tool-call output
  • retain streamed tool input without finalizing it into executable calls
  • preserve normal tool_calls, compatible stop, and optional clean-EOF behavior

Testing

  • bun test test/provider/openai-chat.test.ts (63 pass)
  • bun typecheck
  • git diff --check

@rekram1-node
rekram1-node merged commit cf014bf into v2 Aug 28, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the chat-length-tools branch August 28, 2026 23:11
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant