当输出出现tool call的时候,对话被终止 #6473

Open
opened 2026-02-16 18:04:19 -05:00 by yindo · 3 comments
Owner

Originally created by @zt449569708 on GitHub (Jan 16, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

在模型对话输出的时候,如”Thinking: 您说得对!我需要重新检查。让我删除之前的所有修改文件,重新解压原始文档,然后仔细诊断问题:<tool_call>bash<arg_key>command</arg_key><arg_value> ...“,当出现“<tool_call>bash<arg_key>command....”的时候对话中断,不再继续输出。今天更新到1.1.23才出现的,之前使用都没出现。

Plugins

Oh My OpenCode

OpenCode version

1.1.23

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @zt449569708 on GitHub (Jan 16, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 在模型对话输出的时候,如”Thinking: 您说得对!我需要重新检查。让我删除之前的所有修改文件,重新解压原始文档,然后仔细诊断问题:<tool_call>bash<arg_key>command</arg_key><arg_value> ...“,当出现“<tool_call>bash<arg_key>command....”的时候对话中断,不再继续输出。今天更新到1.1.23才出现的,之前使用都没出现。 ### Plugins Oh My OpenCode ### OpenCode version 1.1.23 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:04:19 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2026):

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

  • #8012: Function call auto-truncation - Reports that conversation stops and cannot continue after a function call, with output appearing as XML
  • #6244: Response terminates prematurely when using Gemini 3 via LiteLLM - Reports OpenCode stops processing as soon as the model triggers a tool call

Both issues describe conversations being interrupted when tool calls appear in the output, similar to your report. Feel free to ignore if your specific case differs.

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate of existing issues. Please check: - #8012: Function call auto-truncation - Reports that conversation stops and cannot continue after a function call, with output appearing as XML - #6244: Response terminates prematurely when using Gemini 3 via LiteLLM - Reports OpenCode stops processing as soon as the model triggers a tool call Both issues describe conversations being interrupted when tool calls appear in the output, similar to your report. Feel free to ignore if your specific case differs.
Author
Owner

@bi-kai commented on GitHub (Jan 22, 2026):

same issue, with version 1.1.27

mark & focus

@bi-kai commented on GitHub (Jan 22, 2026): same issue, with version 1.1.27 mark & focus
Author
Owner

@imjoey commented on GitHub (Feb 5, 2026):

same issue, version 1.1.51 with GLM-4.7 model

@imjoey commented on GitHub (Feb 5, 2026): same issue, version 1.1.51 with GLM-4.7 model
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6473