Skip to content

[Bug]: Claude 联网搜索重复调用并异常覆盖最终回复 #34

Description

@chenyme

Affected area

Conversations / streaming

Version or commit

v0.1.1

Environment

OS:MacOS
Browser:Chrome
Deployment:Local
Model provider:Claude / Anthropic 兼容渠道
Model:claude-sonnet-4-6
Tools:已启用网页搜索

Reproduction steps

  1. 配置并选择支持 Claude 模型的上游渠道。
  2. 在对话中启用网页搜索工具。
  3. 选择 Claude 模型,例如 claude-sonnet-4-6
  4. 发送需要联网获取实时信息的问题,例如“北京今天天气”。
  5. 观察工具调用记录和最终助手回复。

Expected behavior

  • Claude 应在当前运行启用了网页搜索时正常调用 web_search
  • 已成功获得搜索结果后,应基于搜索结果生成并保留最终回答。
  • 如果工具不可用,应在调用前避免向模型暴露不可用工具,或返回清晰错误提示。
  • 工具调用失败不应覆盖此前已经生成的正常回复内容。

Actual behavior

Image

Logs, screenshots, or request samples

tool web_search is not enabled for this run

Configuration and deployment context

No response

Pre-submit checklist

  • I searched existing issues and pull requests.
  • I removed secrets, tokens, credentials, and personal data from this report.
  • This is not a security vulnerability report.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions