Skip to content

[Bug] 工具调用一直不行,不知道为什么,看提交好像是支持的啊 #125

@DuZunTianXia

Description

@DuZunTianXia

版本 / Version

release: 2.0.77 — NLU recovery 入口扩宽 (v2.0.76 实测发现真问题)

部署方式 / Deployment

本地开发 / Local dev

问题描述 / What happened?

Image Image Image

一直调用不成功

复现步骤 / Steps to reproduce

使用Claude Code搭配cc Switch进行使用,询问本地有哪些文件就是一直调用不了

日志 / Logs

: false - Platform: darwin - OS version: Darwin 25.2.0
[INFO] Chat: model=glm-5.1 flow=cascade stream=true attempt=1 [email protected] ls=42100 turns=4 chars=30859
[WARN] Cascade short reply {cascadeId=a5148a3b reason=idle_empty polls=9 textLen=0 thinkingLen=37 stepCount=3 toolCalls=0 sawActive=true sawText=false lastStatus=1 ms=4539}
[INFO] Cascade usage: in=3315 out=48 cache_r=202 cache_w=0
[INFO] Chat[stream]: emulateTools=true but parser found 0 tool_calls (model=glm-5.1 provider=zhipu); markers=none; head="用户想查看项目目录下的文件。让我用 Bash 来列出当前工作目录下的文件。"
[INFO] Cascade done {cascadeId=aa2edd62 reason=idle_done polls=12 textLen=31 thinkingLen=564 stepCount=3 toolCalls=0 sawActive=true sawText=true lastStatus=1 ms=6050}
[INFO] Cascade usage: in=315 out=135 cache_r=1286 cache_w=0
[INFO] Probe[d5yyte]: model=glm-5.1 stream=true rf=none tools=8 reasoning=high ctypes=[string] turns=5 lastUser=len=14 hash=1894295a4667d5ed
[INFO] Probe[d5yyte] msg[0] role=system len=26506 hash=c0000650404fd7f3
[INFO] Probe[d5yyte] msg[1] role=user len=4222 hash=4c773926cfef2247
[INFO] Probe[d5yyte] msg[2] role=assistant len=117 hash=1ebb37bd7b7b2919
[WARN] Probe[d5yyte]: large system prompt 26KB — heavy clients (OpenClaw / Cline / opencode) may hit upstream panel-state retries above ~30KB
[WARN] Probe[d5yyte]: toolPreamble 35KB exceeds soft cap 23KB; using schema-compact tier (5KB, 8 tools)
[INFO] Chat[d5yyte]: env lifted into tool_calling_section: - Working directory: /Users/xiaolang - Is the directory a git repo: false - Platform: darwin - OS version: Darwin 25.2.0
[INFO] Chat: model=glm-5.1 flow=cascade stream=true attempt=1 [email protected] ls=42100 turns=5 chars=30873
[WARN] Cascade short reply {cascadeId=fab6cb06 reason=idle_empty polls=13 textLen=0 thinkingLen=110 stepCount=3 toolCalls=0 sawActive=true sawText=false lastStatus=1 ms=6560}
[INFO] Cascade usage: in=1391 out=58 cache_r=2139 cache_w=0
[INFO] Chat[stream]: emulateTools=true but parser found 0 tool_calls (model=glm-5.1 provider=zhipu); markers=none; head="The user wants to see what files are in the current project directory. Let me list the files in the workspace."
^C[INFO] SIGINT received — draining 0 in-flight requests (up to 30s)...
[INFO] HTTP server closed, flushing state + stopping language server
[INFO] LS instance default stopped
xiaolang@xiaolangdeMac-mini WindsurfAPI % 
xiaolang@xiaolangdeMac-mini WindsurfAPI % clear
xiaolang@xiaolangdeMac-mini WindsurfAPI % node src/index.js

   _    _ _           _                   __    _    ____ ___
  | |  | (_)         | |                 / _|  / \  |  _ \_ _|
  | |  | |_ _ __   __| |___ _   _ _ __ _| |_  / _ \ | |_) | |
  | |/\| | | '_ \ / _` / __| | | | '__|_   _|/ ___ \|  __/| |
  \  /\  / | | | | (_| \__ \ |_| | |    |_| /_/   \_\_|  |___|
   \/  \/|_|_| |_|\__,_|___/\__,_|_|
                                          WindsurfAPI bydwgx1337 v2.0.77

  OpenAI-compatible proxy for Windsurf — by dwgx1337

[INFO] Starting LS instance key=default port=42100 proxy=none
[WARN] [LS:default:err] 2026/05/03 21:10:46 maxprocs: Leaving GOMAXPROCS=10: CPU quota undefined
[WARN] [LS:default:err] I0503 21:10:46.082494 70856 main.go:609] [Language Server Manager] Setting GOMAXPROCS to 4
[WARN] [LS:default:err] I0503 21:10:46.082593 70856 main.go:841] [Language Server Manager] Starting language server manager with pid 70856
[WARN] [LS:default:err] I0503 21:10:46.084191 70856 main.go:329] [Language Server Manager] Attempting to connect to language server at 127.0.0.1:42100
[WARN] [LS:default:err] 2026/05/03 21:10:46 maxprocs: Leaving GOMAXPROCS=10: CPU quota undefined
[WARN] [LS:default:err] I0503 21:10:46.114704 70857 main.go:609] Setting GOMAXPROCS to 4
[WARN] [LS:default:err] I0503 21:10:46.115032 70857 main.go:824] Starting language server process with pid 70857
[WARN] [LS:default:err] I0503 21:10:46.115109 70857 server.go:368] Language server will attempt to listen on host 127.0.0.1
I0503 21:10:46.115185 70857 server.go:375] Language server listening on fixed port at 42100
[INFO] LS instance default ready on port 42100
[INFO] Loaded 3 account(s) from disk
[INFO] Auth pool: 3 active, 0 error, 3 total
[INFO] quiet-window: watcher started (window=5min threshold=5 cooldown=24h enabled=false)
[INFO] Server on http://0.0.0.0:3003
[INFO]   POST /v1/chat/completions
[INFO]   POST /v1/responses
[INFO]   GET  /v1/models
[INFO]   POST /auth/login          (add account)
[INFO]   GET  /auth/accounts       (list accounts)
[INFO]   DELETE /auth/accounts/:id (remove account)
[WARN] [LS:default:err] I0503 21:10:46.801289 70857 server.go:1323] Child process attempting to acquire lock file /var/folders/c9/jjwym9n9627cwq1h9zpf2fjw0000gn/T/child_lock_1777813846082678000_7008429164674942126
[WARN] [LS:default:err] I0503 21:10:46.801534 70857 server.go:1331] Child process acquired lock file /var/folders/c9/jjwym9n9627cwq1h9zpf2fjw0000gn/T/child_lock_1777813846082678000_7008429164674942126
[WARN] [LS:default:err] I0503 21:10:46.811439 70856 main.go:383] [Language Server Manager] Successfully connected to new language server at 127.0.0.1:42100
[INFO] Model catalog: 73 cloud models, 4 new entries merged
[INFO] Probe[wgqoba]: model=glm-5.1 stream=true rf=none tools=8 reasoning=high ctypes=[string] turns=6 lastUser=len=14 hash=1894295a4667d5ed
[INFO] Probe[wgqoba] msg[0] role=system len=26506 hash=a0ef26737fbb7a49
[INFO] Probe[wgqoba] msg[1] role=user len=4222 hash=4c773926cfef2247
[INFO] Probe[wgqoba] msg[2] role=assistant len=117 hash=1ebb37bd7b7b2919
[WARN] Probe[wgqoba]: large system prompt 26KB — heavy clients (OpenClaw / Cline / opencode) may hit upstream panel-state retries above ~30KB
[WARN] Probe[wgqoba]: toolPreamble 35KB exceeds soft cap 23KB; using schema-compact tier (5KB, 8 tools)
[INFO] Chat[wgqoba]: env lifted into tool_calling_section: - Working directory: /Users/xiaolang - Is the directory a git repo: false - Platform: darwin - OS version: Darwin 25.2.0
[INFO] Chat: model=glm-5.1 flow=cascade stream=true attempt=1 [email protected] ls=42100 turns=6 chars=30887
[WARN] [LS:default:err] E0503 21:10:59.677950 70857 interceptor.go:78] /exa.language_server_pb.LanguageServerService/AddTrackedWorkspace (unknown): stat /home/user/projects/workspace-skxwsx01: no such file or directory
[WARN] AddTrackedWorkspace: stat /home/user/projects/workspace-skxwsx01: no such file or directory
[INFO] Cascade workspace init complete for LS port=42100
[WARN] Cascade short reply {cascadeId=d178d96c reason=idle_empty polls=7 textLen=0 thinkingLen=118 stepCount=3 toolCalls=0 sawActive=true sawText=false lastStatus=1 ms=3538}
[INFO] Cascade usage: in=3540 out=50 cache_r=3 cache_w=0
[INFO] Chat[stream]: emulateTools=true but parser found 0 tool_calls (model=glm-5.1 provider=zhipu); markers=none; head="The user wants to see what files are in the current project directory. Let me list the files in the working directory."

模型 / Model

glm-5.1

环境 / Environment

Node:v22.22.0
OS:MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed已修复 等待确认upstream上游/第三方问题

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions