Commit Graph

12 Commits

Author SHA1 Message Date
xintaofei
9f82fdf350 feat(ui): add dedicated Agent subagent rendering with nested tool call display
Render Agent/Explore/Plan tool calls in a visually distinct collapsible
container with colored left border, replacing the generic tool card. Parse
subagent JSONL transcripts from {sessionId}/subagents/ to extract and
display the actual tool calls (Bash, Read, Grep, etc.) the subagent
executed, reusing the existing ToolCallPart for consistent appearance.

- Add AgentToolCallPart component with collapsible body, prompt section,
  execution stats, and nested tool call list via render prop injection
- Add AgentExecutionStats and AgentToolCall types (Rust + TypeScript)
- Parse toolUseResult.agentId to locate and read subagent JSONL files
- Validate agentId against path traversal before filesystem access
- Pass agentStats through adapter for both ID-matched and positional
  tool result pairing
- Strip agentStats in nested render to prevent recursive Agent expansion
- Add i18n keys for agent UI labels across all 10 languages
2026-04-16 21:32:25 +08:00
xintaofei
c0b3e9aff9 优化编辑工具调用的行号解析 2026-03-28 15:46:52 +08:00
xintaofei
d5471d2ceb 优化消息里的读/写工具代码样式 2026-03-28 14:30:12 +08:00
xintaofei
8bd19738d0 优化消息里读/写内容显示样式 2026-03-28 14:04:19 +08:00
xintaofei
0d16d82eb9 优化claude code系统消息显示 2026-03-24 21:13:25 +08:00
xintaofei
af6d8dd9a8 修复并行命令的执行结果没有对应到命令块 2026-03-24 19:29:45 +08:00
xintaofei
284e45fbdf 重构会话页面的消息渲染,支持块级虚拟化,提升长会话性能,减少卡断 2026-03-24 18:52:25 +08:00
xintaofei
a4805621f9 修改claude code模型的上下文窗口的上限为1M 2026-03-23 23:35:12 +08:00
xintaofei
0c843ec14e 优化上下文事件更新的处理逻辑 2026-03-13 22:07:29 +08:00
xintaofei
533064829f 支持claude code 的 Agent 解析用户消息里的图片 2026-03-08 17:39:53 +08:00
xintaofei
349845c137 folders.rs多语言处理 2026-03-07 15:59:14 +08:00
xggz
54d1097b41 Initial commit 2026-03-06 22:56:13 +08:00