Skip to content

have error with tool call from 1.0.62 build ( current 1.0.65 still have this issue ) #4322

Closed

Description

@Wierzciu

Description

have problem with tool call on 1.0.65 - its also be on 1.0.62 issue

Thinking: <tool_call>edit
<arg_key>filePath</arg_key>
<arg_value> Project file </arg_value>
<arg_key>oldString</arg_key>
<arg_value> SearchResultRow(result: result) {
Task {
await Project file (to: result.id)
}
}</arg_value>
<arg_key>newString</arg_key>
<arg_value> SearchResultRow(result: result) {
Task {
await Project file(to: result.id)
}
}</arg_value>
</tool_call>

using Z.AI Coding Plan GLM 4.6

on v1.0.59 - rlease don't have this issue

OpenCode version

1.0.65

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 26.1 (25B78)

Terminal

Warp ( Ghostty have same issue )

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 14, 2025
  2. github-actions commented on Nov 14, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. rekram1-node commented on Nov 14, 2025

    @rekram1-node
    Contributor

    what is your problem with tool calling? Is rhe model failing to call tools correctly?

  4. added and removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 14, 2025
  5. Wierzciu commented on Nov 14, 2025

    @Wierzciu
    Author

    @rekram1-node Hi there!

    I’m not using any custom tools, but I’m seeing this fragment:

    Thinking: <tool_call>edit
    <arg_key>filePath</arg_key>
    <arg_value>Project file</arg_value>
    <arg_key>oldString</arg_key>
    <arg_value>SearchResultRow(result: result) {
    Task {
    await Project file (to: result.id)
    }
    }</arg_value>
    <arg_key>newString</arg_key>
    <arg_value>SearchResultRow(result: result) {
    Task {
    await Project file(to: result.id)
    }
    }</arg_value>
    </tool_call>

    After this, nothing happens — there’s no animation or indication that the model is working. It feels like the session just freezes or crash.

  6. rekram1-node commented on Nov 14, 2025

    @rekram1-node
    Contributor

    @Wierzciu so that's the model failing to call tools, it is sending back text instead of tool call parts and we render it as is. This happens typically with the OSS models sometimes.

    It shouldn't be causing any freezes tho, I bet the model stops in place but you should be able to follow up and tell it to correct how it is calling tools.

    This isn't really opencode's fault tho we could try to do an additional layer of tool call parsing (provider does it for us rn), generally you just have to correct the model with prompting

  7. self-assigned this
    on Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions