fix: recall_project_memory 工具返回实际内容而非仅行号范围
复用 read_file 的格式化逻辑,修复只返回"行 X~Y"摘要、丢失 content 的问题 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
f43025047e
commit
ea4e5dc14b
@ -274,7 +274,7 @@ def format_tool_result_for_context(function_name: str, result_data: Any, raw_tex
|
|||||||
return text
|
return text
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
if function_name in {"read_file", "read_skill"} and isinstance(result_data, dict):
|
if function_name in {"read_file", "read_skill", "recall_project_memory"} and isinstance(result_data, dict):
|
||||||
return format_read_file_result(result_data)
|
return format_read_file_result(result_data)
|
||||||
|
|
||||||
if function_name == "write_file_diff" and isinstance(result_data, dict):
|
if function_name == "write_file_diff" and isinstance(result_data, dict):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user