Misc. bug: WebUI “Show tool call in progress” toggle does not hide tool calls (still shown when disabled)

用户在运行 llama-server 时使用了包含 Agentic Content UX 改进(#25450)的 WebUI 构建,并连接了 MCP 服务器使模型能够调用工具。当用户在 WebUI 设置中关闭 "Show tool call in progress" 开关后,工具调用块仍然在推理过程

Misc. bug: WebUI "Show tool call in progress" toggle does not hide tool calls (still shown when disabled)

Misc. bug: WebUI “Show tool call in progress” toggle does not hide tool calls (still shown when disabled)

快速结论:该错误发生在 llama-server WebUI 的新界面中,用户在设置中关闭 “Show tool call in progress” 开关后,工具调用块仍然显示。优先排查是否使用了包含 #25450 提交的 WebUI 构建版本。

问题场景

用户在运行 llama-server 时使用了包含 Agentic Content UX 改进(#25450)的 WebUI 构建,并连接了 MCP 服务器使模型能够调用工具。当用户在 WebUI 设置中关闭 “Show tool call in progress” 开关后,工具调用块仍然在推理过程中或完成后显示。

报错原文

In the new WebUI, disabling the "Show tool call in progress" setting has no
effect — the tool-call block is still displayed during/after tool execution.

原因分析

可能原因:在 #25450 提交(commit 32beb244)的 “ui: Agentic Content UX improvements” 重构中,工具调用可见性开关与渲染路径断开了连接。这是一个 UI 渲染逻辑的回归问题。

环境排查

  • 确认 llama-server 版本:version: 10034 (505b1ed15) 或包含 commit 32beb244 的构建
  • 确认 WebUI 是否包含 #25450 的更改
  • 确认是否连接了 MCP 服务器以使模型能够触发工具调用

解决步骤

  1. 检查是否使用了包含 #25450 提交的 llama-server 构建版本。如果是,该问题已知且已有修复。
  2. 应用修复该问题的 PR(在 Issue 讨论中提到的修复补丁),该 PR 将开关重命名为 “Always show tool call content” 并修复了可见性逻辑。
  3. 如果无法应用 PR,可考虑回退到不包含 #25450 提交的版本作为临时解决方案。

验证方法

手动测试:在 WebUI 设置中关闭 “Show tool call in progress”(或修复后的 “Always show tool call content”)开关,然后发送一个会触发工具调用的请求。观察工具调用块是否按预期隐藏。修复后,未勾选该开关时工具调用块不应显示。

参考来源

ggml-org/llama.cpp #25743

GamsGo AI

AI 工具推荐

想把多个 AI 模型放在一个入口?

GamsGo AI 集成 ChatGPT、DeepSeek、Gemini、Claude、Midjourney、Veo 等常用模型,适合写作、绘图、视频和日常 AI 工作流。

了解 GamsGo AI

推广链接:通过此链接购买,我可能获得佣金,不影响你的价格。

celebrityanime
celebrityanime
文章: 14750

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注