WindsurfAPI icon indicating copy to clipboard operation
WindsurfAPI copied to clipboard

[Bug] No Tools get Called

Open KodokSatuw opened this issue 6 months ago • 8 comments

版本 / Version

latest

部署方式 / Deployment

自建服务器 / Self-hosted

问题描述 / What happened?

AI Only Writing Code without Calling Tools, so when ai give response no file get write or rewrite

复现步骤 / Steps to reproduce

Kilo Code and Opencode.

日志 / Logs


模型 / Model

GPT 5.4 xHigh

环境 / Environment

docker

KodokSatuw avatar May 14 '26 14:05 KodokSatuw

same issue in codex

f0rSee avatar May 17 '26 14:05 f0rSee

same issue

sugus-d avatar May 18 '26 06:05 sugus-d

Which model and which tool failed to be called?

At the time of this reply, v2.0.97 had already merged the Cascade reuse work from #181. Please retest with a Claude-family model such as claude-sonnet-4.6 and attach the nearby debug logs.

For a useful reproduction, I need:

  • client name and version,
  • exact model,
  • request route,
  • declared tool names and schema count,
  • the relevant Probe[...] and tool-routing log lines.

Without those, this issue can only be treated as a broad "tool not called" bucket, because the root cause can be client stripping, schema size, model behavior, prompt-emulation limits, or native-bridge gating.

dwgx avatar May 22 '26 01:05 dwgx

更新:此类“没有调用任何工具”现在有一条新的尝试路径。

如果您的客户端仅声明可映射工具,例如Read/Bash/Grep/Glob/WebSearch/WebFetch,可以尝试: WINDSURFAPI_NATIVE_TOOL_BRIDGE=all_mapped

这个模式不会再把这些工具塞进提示前言,而是走Cascade原生桥。刚在VPS上用claude-4.5-haiku + Read做了烟测,返回了标准的OpenAI tool_calls。

注意:

  • 默认还是关闭,原因见[Bug]Claude模型自动启用原生工具桥导致工具调用永久卡死 #124:很多客户端的Read/Bash是“本地工具”,而Cascade DEFAULT planner可能会尝试在工作空间执行。
  • 如果工具列表里混了MCP/custom/update_plan/apply_patch,这个模式不会开启,仍走仿真。
  • 如果复现,请贴Probe[...] tools=N、native bridge ON或emulateTools=true那几行日志,以及工具列表。

没有很理解大佬

xy-guli avatar Jun 05 '26 02:06 xy-guli

Keeping this open as the main bucket for concrete "tool not called" reproductions.

Please add client/version, model, route, tool names/schema count, and the matching Probe[...], ToolRoute[...], and BridgeResult[...] log lines. Without those, I cannot tell whether the client dropped tools, routing downgraded, a native-bridge gate blocked it, or the model simply did not emit a tool call.

dwgx avatar Jun 22 '26 23:06 dwgx

╭────────────────────────────────────────────────────────────╮
│ ❈────────────────────────────────────────────❈            │
│         WindsurfAPI → DevinAPI                             │
│ ❈────────────────────────────────────────────❈            │
│                                                            │
│ WindsurfAPI is reborn,                                     │
│ heralding the greatest version leap in its history.        │
│                                                            │
│ ✦Let your WindsurfAPI step into the new era ✦             │
╰────────────────────────────────────────────────────────────╯

dwgx avatar Jul 08 '26 21:07 dwgx

Try new version 尝试新版本

dwgx avatar Jul 10 '26 03:07 dwgx

验证回执(2026-08-12 代码核验)

今天对工具调用链路做了全量代码核验,确认这条线的修复都在位:

已确认在位:

  • 0c77824 — thinking 中提升 tool_call(v2.0.147)
  • 4905209 — SSE 块序修复("ORDERING IS CRITICAL",chat.js 注释可查)
  • 3a8d472 — ToolRoute 诊断日志
  • all_mapped 原生桥(拒绝有明确 reason + 统计,不再静默)

盲点已修(今天):GPT-5.4+(含 5.4 xhigh)在 /v1/chat/completions 路径原本默认走 openai_json_xml 方言——模型 routinely refuses(答 "please paste the file" 而不是调工具)。已切换到 gpt_native(commit 830ac65),5.4/5.5/5.6 点/连字符形态全覆盖。

如果还能复现 "No Tools get Called":请带上 Probe/ToolRoute[...] 日志(每轮工具调用的方言/过滤/降级原因都会打)——链路现在每条丢弃路径都有明确 reason,有日志就能定位到具体环节。

dwgx avatar Aug 12 '26 04:08 dwgx