docs(wiki): 更新搜索功能修复记录 — hands-skills/feature-map/known-issues/log
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- hands-skills.md: Researcher 搜索能力详细说明 + 数据流 + 修复清单
- feature-map.md: 新增 F-09.5 Agent 搜索链路 (搜索引擎/网页获取/UI处理)
- known-issues.md: 搜索 04-22 P1×3 修复记录 (SEARCH-1/2/3)
- log.md: 追加 04-22 变更日志
This commit is contained in:
iven
2026-04-22 16:33:01 +08:00
parent 81005c39f9
commit 8b3e43710b
4 changed files with 66 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
---
title: 功能链路映射
updated: 2026-04-21
updated: 2026-04-22
status: active
tags: [reference, feature-map, testing]
---
@@ -122,6 +122,21 @@ tags: [reference, feature-map, testing]
## 自主能力 / Hands (4 条)
### F-09.5: Agent 搜索(网络搜索)
| 维度 | 内容 |
|------|------|
| 用户入口 | 聊天中输入搜索请求(如"搜索今天的新闻" |
| 前端关键文件 | ChatArea.tsx (stripToolNarration), StreamingText.tsx (ReactMarkdown) |
| 触发机制 | LLM 判断需要搜索 → ToolUse{hand_researcher} → AgentLoop 执行 |
| Tauri 命令 | 无独立命令,通过 agent_chat_stream → loop_runner → hand_execute |
| Rust 核心 | zclaw-hands/researcher.rs: search_native() → Baidu + Bing CN 并行 |
| 网页获取 | fetch_via_jina() (Jina Reader API) → fetch_direct() (降级) |
| LLM 兼容 | 扁平 input_schema + empty-input 回退_fallback_query 注入) |
| UI 处理 | hand 消息隐藏 + stripToolNarration 行级过滤 + ReactMarkdown 渲染 |
| 搜索引擎 | Baidu + Bing CN国内优先, DuckDuckGo fallback |
| 测试状态 | ✅ E2E 验证通过 (commit 5816f56 + 81005c3) |
### F-10: 触发 Hand
| 维度 | 内容 |