Skip to content

[Bug]: 在我问它有啥工具时,它在opencode会直接自爆 #196

@DragonBaiMo

Description

@DragonBaiMo

Summary

日志:

[INFO] [caller-key] body.user=%s subKey=%s (none) (none)
[INFO] Probe[sc49qx]: model=kimi-k2-6 stream=true rf=none tools=44 reasoning=none ctypes=[string] turns=36 lastUser=len=7 hash=1d29d31cbd4cd744
[INFO] Probe[sc49qx] msg[0] role=system len=45415 hash=8dc980f6121ee0d4
[INFO] Probe[sc49qx] msg[1] role=user len=3 hash=a665a45920422f9d
[INFO] Probe[sc49qx] msg[2] role=user len=4 hash=1be2e452b46d7a0d
[WARN] Probe[sc49qx]: large system prompt 44KB — heavy clients (OpenClaw / Cline / opencode) may hit upstream panel-state retries above ~30KB
[WARN] Probe[sc49qx]: toolPreamble 96KB exceeds soft cap 23KB; using schema-compact tier (19KB, 44 tools)
[INFO] ToolRoute[sc49qx]: requested=[ast_grep_replace,ast_grep_search,background_cancel,background_output,bash,context7_query-docs,context7_resolve-library-id,edit,glob,grep,grep_app_searchGitHub,look_at,lsp_diagnostics,lsp_find_references,lsp_goto_definition,lsp_prepare_rename,lsp_rename,lsp_symbols,pencil_batch_design,pencil_batch_get,pencil_export_nodes,pencil_find_empty_space_on_canvas,pencil_get_editor_state,pencil_get_guidelines,pencil_get_screenshot,pencil_get_variables,pencil_open_document,pencil_replace_all_matching_properties,pencil_search_all_unique_properties,pencil_set_variables,pencil_snapshot_layout,question,read,session_info,session_list,session_read,session_search,skill,skill_mcp,task,todowrite,webfetch,websearch_web_search_exa,write] effective=[ast_grep_replace,ast_grep_search,background_cancel,background_output,bash,context7_query-docs,context7_resolve-library-id,edit,glob,grep,grep_app_searchGitHub,look_at,lsp_diagnostics,lsp_find_references,lsp_goto_definition,lsp_prepare_rename,lsp_rename,lsp_symbols,pencil_batch_design,pencil_batch_get,pencil_export_nodes,pencil_find_empty_space_on_canvas,pencil_get_editor_state,pencil_get_guidelines,pencil_get_screenshot,pencil_get_variables,pencil_open_document,pencil_replace_all_matching_properties,pencil_search_all_unique_properties,pencil_set_variables,pencil_snapshot_layout,question,read,session_info,session_list,session_read,session_search,skill,skill_mcp,task,todowrite,webfetch,websearch_web_search_exa,write] mapped=[none] unmapped=[ast_grep_replace,ast_grep_search,background_cancel,background_output,bash,context7_query-docs,context7_resolve-library-id,edit,glob,grep,grep_app_searchGitHub,look_at,lsp_diagnostics,lsp_find_references,lsp_goto_definition,lsp_prepare_rename,lsp_rename,lsp_symbols,pencil_batch_design,pencil_batch_get,pencil_export_nodes,pencil_find_empty_space_on_canvas,pencil_get_editor_state,pencil_get_guidelines,pencil_get_screenshot,pencil_get_variables,pencil_open_document,pencil_replace_all_matching_properties,pencil_search_all_unique_properties,pencil_set_variables,pencil_snapshot_layout,question,read,session_info,session_list,session_read,session_search,skill,skill_mcp,task,todowrite,webfetch,websearch_web_search_exa,write] native=off nativeReason=native_bridge_mode_not_enabled preamble=schema-compact/19KB forced=none reasons=[native_bridge_mode_not_enabled,preamble_schema-compact,preamble_compacted]
[INFO] Chat[sc49qx]: env lifted into tool_calling_section: - Working directory: C:\Users\Dragon - Is the directory a git repo: no - Platform: win32
[INFO] [sticky] SKIP-CHECK callerKey=%s enabled=%s api:a9c43be948c5cabd56ef2bacff false
[INFO] Chat: model=kimi-k2-6 flow=cascade stream=true attempt=1 account=2c56611c labelHash=3770515f4e86 ls=42100 turns=36 chars=85899
[INFO] Cascade done {cascadeId=e8785389 reason=idle_done polls=19 textLen=1071 thinkingLen=1051 stepCount=3 toolCalls=0 sawActive=true sawText=true lastStatus=1 approvalError=null ms=9685}
[INFO] Cascade usage: in=3889 out=778 cache_r=5799 cache_w=0
[INFO] Chat[stream]: emulateTools=true but parser found 0 tool_calls (model=kimi-k2-6 provider=moonshot); markers=none; head="我有以下这些工具: **文件操作** - `read` — 读取文件或目录 - `write` — 写入文件 - `edit` — 精确替换文件内容 - `glob` — 文件模式匹配 **代码搜索与编辑** - `grep` — 内容搜索 - `ast_grep_search` — AST 感知的代码搜索 - `ast_grep_replace` — AST 感知的代码替换 - `grep_app_searchGitHub` — 在 GitHub 上搜索代码示例 **"
[INFO] NLU recovery: extracted 37 tool_call(s) from narrative — ast_grep_replace@backtick-quoted/0.80, ast_grep_search@backtick-quoted/0.80, background_cancel@backtick-quoted/0.80, background_output@backtick-quoted/0.80, bash@backtick-quoted/0.80, context7_query-docs@backtick-quoted/0.80, context7_resolve-library-id@backtick-quoted/0.80, edit@backtick-quoted/0.80, glob@backtick-quoted/0.80, grep@backtick-quoted/0.80, grep_app_searchGitHub@backtick-quoted/0.80, lsp_diagnostics@backtick-quoted/0.80, lsp_find_references@backtick-quoted/0.80, lsp_goto_definition@backtick-quoted/0.80, lsp_prepare_rename@backtick-quoted/0.80, lsp_rename@backtick-quoted/0.80, lsp_symbols@backtick-quoted/0.80, pencil_batch_design@backtick-quoted/0.80, pencil_batch_get@backtick-quoted/0.80, pencil_export_nodes@backtick-quoted/0.80, pencil_get_screenshot@backtick-quoted/0.80, pencil_open_document@backtick-quoted/0.80, pencil_set_variables@backtick-quoted/0.80, pencil_snapshot_layout@backtick-quoted/0.80, question@backtick-quoted/0.80, read@backtick-quoted/0.80, session_info@backtick-quoted/0.80, session_list@backtick-quoted/0.80, session_read@backtick-quoted/0.80, session_search@backtick-quoted/0.80, skill@backtick-quoted/0.80, skill_mcp@backtick-quoted/0.80, task@backtick-quoted/0.80, todowrite@backtick-quoted/0.80, webfetch@backtick-quoted/0.80, websearch_web_search_exa@backtick-quoted/0.80, write@backtick-quoted/0.80
[INFO] Chat[stream]: NLU recovery — promoted 37 narrative tool_call(s) mid-stream (markers=none)
[INFO] BridgeResult[sc49qx]: bridgeEnabled=false cascadeToolCalls=0 mappedToolCalls=0 unmappedToolCalls=0 emulatedToolCalls=37 totalToolCalls=37 noToolCalls=false argParseFailures=0 reverseFailures=0 cascadeKinds=[none] mapped=[none] unmapped=[none] emulated=[ast_grep_replace,ast_grep_search,background_cancel,background_output,bash,context7_query-docs,context7_resolve-library-id,edit,glob,grep,grep_app_searchGitHub,lsp_diagnostics,lsp_find_references,lsp_goto_definition,lsp_prepare_rename,lsp_rename,lsp_symbols,pencil_batch_design,pencil_batch_get,pencil_export_nodes,pencil_get_screenshot,pencil_open_document,pencil_set_variables,pencil_snapshot_layout,question,read,session_info,session_list,session_read,session_search,skill,skill_mcp,task,todowrite,webfetch,websearch_web_search_exa,write]
Image Image

Reproduction steps

使用反代
使用KIMI2.6模型
放到opencode+oh-myopencode体系中
问他有啥工具
boom

Expected behavior

无法使用

Environment

Windows+Devin的language server

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaves incorrectlyneeds-triageNeeds initial review and routing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions