[moz] feat(frontend): 工具链面板加 from/to 显示 + 筛选 + 修复事件类型未知 #78
Reference in New Issue
Block a user
Delete Branch "feat/toolchain-from-to-filter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
审查结论:✅ Approve
风险级别:标准(toolchain_handler.py + ToolchainPanel.tsx,+47 -2)
审查清单
逻辑分析
后端(toolchain_handler.py):
前端(ToolchainPanel.tsx):
🟡 建议改(不阻断):
S1. [ToolchainPanel.tsx] AGENT_NAMES['system'] || '系统' 语义冗余 — 该值永远等于 '系统'。建议改为 AGENT_NAMES[t.from_agent] || t.from_agent || '系统',为将来非 system 来源预留扩展性
S2. [两文件] EVENT_LABELS 前后端各维护一份,新增事件类型需同步两处。建议后续考虑从后端 API 返回中文标签,前端不再 hardcode