[Bug] API Error: Content block not found
版本 / Version
2.0.90
部署方式 / Deployment
自建服务器 / Self-hosted
问题描述 / What happened?
先感谢作者大大的开源,下面是我在使用时遇到的问题。 在我使用前,已经 docker compose pull && docker compose up -d --force-recreate 过。
使用的是claude code,丢一个需求给它执行后,会 API Error: Content block not found cli: Searched for 8 patterns, read 2 files, listed 2 directories (ctrl+o to expand) ⎿ API Error: Content block not found
Searched for 3 patterns, read 1 file (ctrl+o to expand) ⎿ API Error: Content block not found
Read 1 file (ctrl+o to expand) ⎿ API Error: Content block not found
Read 1 file (ctrl+o to expand)
● ⎿ API Error: Content block not found
Searched for 5 patterns, read 2 files (ctrl+o to expand)
● ⎿ API Error: Content block not found
Searched for 1 pattern, read 1 file (ctrl+o to expand)
● ⎿ API Error: Content block not found
复现步骤 / Steps to reproduce
Claude Code连接了中转(new-api),从中转接到本项目,都是在线上linux
日志 / Logs
16:09:39
DEBUG
Cascade started: 093cc1c3-4fb2-4b85-bf46-71dc9c0f9ea3
16:09:42
DEBUG
ToolParser: matched xml format, name=Read
16:09:46
DEBUG
ToolParser: matched xml format, name=Grep
16:09:49
INFO
Probe[3qwrmf]: model=claude-opus-4.7 stream=true rf=none tools=30 reasoning=none ctypes=[string,text] turns=64 lastUser=len=75 hash=611fbe0490aa4b8d
16:09:49
INFO
Probe[3qwrmf] msg[0] role=system len=26576 hash=0ba15d28acc0613a
16:09:49
INFO
Probe[3qwrmf] msg[1] role=user len=3822 hash=699b3ebe91b909f3
16:09:49
INFO
Probe[3qwrmf] msg[2] role=assistant len=34 hash=e52e4ad75adb7839
16:09:49
WARN
Probe[3qwrmf]: large system prompt 26KB — heavy clients (OpenClaw / Cline / opencode) may hit upstream panel-state retries above ~30KB
16:09:49
WARN
Probe[3qwrmf]: toolPreamble 94KB exceeds soft cap 23KB; using schema-compact tier (13KB, 30 tools)
16:09:49
INFO
Chat[3qwrmf]: env lifted into tool_calling_section: - Working directory: D:\git\WindsurfAPI-master - Is the directory a git repo: true - Platform: win32 - OS version: Windows 11 Enterprise 10.0.26200
16:09:49
INFO
Chat: model=claude-opus-4.7 flow=cascade stream=true attempt=1 [email protected] ls=42101 turns=64 chars=90025
16:09:49
DEBUG
CascadeChat: uid=claude-opus-4-7-medium enum=0 msgs=64 reuse=false
16:09:49
DEBUG
Cascade started: 30b562cd-e91f-4be5-8e43-8a9e717e349e
16:09:49
DEBUG
ToolParser: matched xml format, name=Read
16:09:49
INFO
Client disconnected mid-stream, aborting upstream
16:09:49
INFO
Cascade done
16:09:53
DEBUG
ToolParser: matched xml format, name=PowerShell
16:09:54
INFO
Cascade done
16:09:54
INFO
Cascade usage: in=570 out=178 cache_r=7438 cache_w=5527
16:09:55
INFO
Probe[xabli4]: model=claude-opus-4.7 stream=true rf=none tools=30 reasoning=none ctypes=[string,text] turns=66 lastUser=len=75 hash=611fbe0490aa4b8d
16:09:55
INFO
Probe[xabli4] msg[0] role=system len=26576 hash=6267e75892617d95
16:09:55
INFO
Probe[xabli4] msg[1] role=user len=3822 hash=699b3ebe91b909f3
16:09:55
INFO
Probe[xabli4] msg[2] role=assistant len=34 hash=e52e4ad75adb7839
16:09:55
WARN
Probe[xabli4]: large system prompt 26KB — heavy clients (OpenClaw / Cline / opencode) may hit upstream panel-state retries above ~30KB
16:09:55
WARN
Probe[xabli4]: toolPreamble 94KB exceeds soft cap 23KB; using schema-compact tier (13KB, 30 tools)
16:09:55
INFO
Chat[xabli4]: env lifted into tool_calling_section: - Working directory: D:\git\WindsurfAPI-master - Is the directory a git repo: true - Platform: win32 - OS version: Windows 11 Enterprise 10.0.26200
16:09:55
INFO
Chat: model=claude-opus-4.7 flow=cascade stream=true attempt=1 [email protected] ls=42101 turns=66 chars=93102
16:09:55
DEBUG
CascadeChat: uid=claude-opus-4-7-medium enum=0 msgs=66 reuse=false
16:09:55
DEBUG
Cascade started: f4f444e5-403e-4fec-9f2e-42784c6b8693
16:09:59
DEBUG
ToolParser: matched xml format, name=Read
16:10:03
DEBUG
ToolParser: matched xml format, name=Read
16:10:09
INFO
Client disconnected mid-stream, aborting upstream
16:10:09
INFO
Cascade done
16:10:10
INFO
Probe[ts9vig]: model=claude-opus-4.7 stream=true rf=none tools=30 reasoning=none ctypes=[string,text] turns=68 lastUser=len=75 hash=611fbe0490aa4b8d
16:10:10
INFO
Probe[ts9vig] msg[0] role=system len=26576 hash=377cbc67d322b8da
16:10:10
INFO
Probe[ts9vig] msg[1] role=user len=3822 hash=699b3ebe91b909f3
16:10:10
INFO
Probe[ts9vig] msg[2] role=assistant len=34 hash=e52e4ad75adb7839
16:10:10
WARN
Probe[ts9vig]: large system prompt 26KB — heavy clients (OpenClaw / Cline / opencode) may hit upstream panel-state retries above ~30KB
16:10:10
WARN
Probe[ts9vig]: toolPreamble 94KB exceeds soft cap 23KB; using schema-compact tier (13KB, 30 tools)
16:10:10
INFO
Chat[ts9vig]: env lifted into tool_calling_section: - Working directory: D:\git\WindsurfAPI-master - Is the directory a git repo: true - Platform: win32 - OS version: Windows 11 Enterprise 10.0.26200
16:10:10
INFO
Chat: model=claude-opus-4.7 flow=cascade stream=true attempt=1 [email protected] ls=42101 turns=68 chars=97901
16:10:10
DEBUG
CascadeChat: uid=claude-opus-4-7-medium enum=0 msgs=68 reuse=false
16:10:10
DEBUG
Cascade started: 6778903e-37a1-498e-ae35-7de1044c3906
16:10:13
DEBUG
ToolParser: matched xml format, name=Grep
16:10:14
INFO
Cascade done
16:10:14
INFO
Cascade usage: in=570 out=158 cache_r=7469 cache_w=5088
16:13:15
INFO
Probe[s8f1ur]: model=claude-opus-4.7 stream=true rf=none tools=30 reasoning=none ctypes=[string,text] turns=4 lastUser=len=253 hash=88a7beafce38addd
16:13:15
INFO
Probe[s8f1ur] msg[0] role=system len=26576 hash=2793137151962e77
16:13:15
INFO
Probe[s8f1ur] msg[1] role=user len=3822 hash=699b3ebe91b909f3
16:13:15
INFO
Probe[s8f1ur] msg[2] role=assistant len=34 hash=e52e4ad75adb7839
16:13:15
WARN
Probe[s8f1ur]: large system prompt 26KB — heavy clients (OpenClaw / Cline / opencode) may hit upstream panel-state retries above ~30KB
16:13:15
WARN
Probe[s8f1ur]: toolPreamble 94KB exceeds soft cap 23KB; using schema-compact tier (13KB, 30 tools)
16:13:15
INFO
Chat[s8f1ur]: env lifted into tool_calling_section: - Working directory: D:\git\WindsurfAPI-master - Is the directory a git repo: true - Platform: win32 - OS version: Windows 11 Enterprise 10.0.26200
16:13:15
INFO
Chat: model=claude-opus-4.7 flow=cascade stream=true attempt=1 [email protected] ls=42101 turns=4 chars=30680
16:13:15
DEBUG
CascadeChat: uid=claude-opus-4-7-medium enum=0 msgs=4 reuse=false
16:13:15
DEBUG
Cascade started: db919c89-5ba2-443d-a0f3-7a4935a4596b
16:13:22
INFO
Cascade done
16:13:22
INFO
Cascade usage: in=570 out=47 cache_r=7438 cache_w=2268
16:13:22
INFO
Chat[stream]: emulateTools=true but parser found 0 tool_calls (model=claude-opus-4-7-medium provider=anthropic); markers=none; head="You asked which model I am; I confirmed Claude Opus 4.7. No active task. Next: tell me what you'd like to work on."
模型 / Model
claude-opus-4.7
环境 / Environment
node:22.x OS:Ubuntu 22.04.05 LTS LS:最新版本
╭────────────────────────────────────────────────────────────╮
│ ❈────────────────────────────────────────────❈ │
│ WindsurfAPI → DevinAPI │
│ ❈────────────────────────────────────────────❈ │
│ │
│ WindsurfAPI is reborn, │
│ heralding the greatest version leap in its history. │
│ │
│ ✦Let your WindsurfAPI step into the new era ✦ │
╰────────────────────────────────────────────────────────────╯
新版对流式与工具边界的处理已大幅改写,请升级到最新版重试。
亲~~~~收到你的邮件了!!!!