Skip to content

provider: fledge-alpha-free returns finish_reason "tool_calls" without tool_calls delta #52691

Closed as not planned

Description

@xianshi3

Description

When using the fledge-alpha-free model via the built-in opencode provider, chat requests fail with OpenAI Chat tool call delta is missing id or name. The provider returns a final stream chunk with finish_reason: "tool_calls" but the delta contains no tool_calls payload, so the client cannot assemble the tool call.

Offending stream chunk:

{
  "id": "33aecb298ff74f9699d1572e86a4a816",
  "object": "chat.completion.chunk",
  "created": 1790924598,
  "model": "fledge-alpha-free",
  "choices": [
    {
      "index": 0,
      "finish_reason": "tool_calls",
      "logprobs": null,
      "delta": {
        "reasoning_content": null
      }
    }
  ]
}

Per the OpenAI streaming spec, a finish_reason of tool_calls must be preceded by valid tool_calls deltas carrying id/name/arguments. Here those deltas are missing entirely, so the OpenAI-compatible parser aborts.

Plugins

opencode.browser, openchamber-agent-tool

OpenCode version

1.18.33

Steps to reproduce

1. Run `opencode`, select model `opencode/fledge-alpha-free`.
2. Send any prompt where the model attempts a tool call (e.g. ask it to edit a file or use a tool).
3. The request fails with `OpenAI Chat tool call delta is missing id or name`.

Screenshot and/or share link

N/A — error occurs during message send.

Operating System

Windows 11 (Windows_NT 10.0.22000, win32 x64)

Terminal

xterm-256color (OpenChamber desktop app)

Expected behavior

The model either returns valid tool_calls deltas followed by finish_reason: "tool_calls", or returns normal content with a different finish_reason.

Actual behavior

The request errors out with OpenAI Chat tool call delta is missing id or name, and the prompt fails to send.

Additional context

Workaround: switch to another model via /models. Possibly related to #37841 / #36299, but those describe incomplete tool-call deltas in general; this report specifically points at fledge-alpha-free returning finish_reason: "tool_calls" with an empty delta.

Activity

  1. xianshi3 commented on Oct 2, 2026

    @xianshi3
    Author

    Note: this may be related to #37841 and #36299. If maintainers consider it a duplicate, please feel free to close it; the specific trigger here is the fledge-alpha-free model returning finish_reason tool_calls with a completely empty delta.

  2. github-actions commented on Oct 2, 2026

    @github-actions
    Contributor

    Thanks for updating the issue with the required details. It now meets our issue reporting guidelines.

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions