feat: 合并工具调用+文本+结果为单一卡片,简化飞书卡片体验 - #223
Conversation
- 新增 buildCombinedProgressCard,文本直接展示,工具调用收入折叠面板 - 执行中:折叠面板标题显示计数+最新 tool call,充当实时状态指示器 - 完成后:工具调用始终折叠,文本条件折叠(长文本时) - event-handler 删除独立文本卡片逻辑,统一维护单一卡片 ID - conditionalCollapsible 支持 summaryLines/alwaysFold/showSummaryHeader 选项 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- buildCombinedProgressCard 新增 CombinedCardResult 参数 - 完成时原地更新为成功(绿)/失败(红)/超时(橙)状态 - Header/footer 显示状态、耗时和花费 - thread 模式不再新发 result card,非 thread 模式降级不变 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
状态信息已在底部状态栏展示,header 不再重复显示执行状态, 仅通过颜色区分:蓝(执行中)/绿(成功)/红(失败)/橙(超时)/靛(活动记录) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
去掉卡片顶部 header 和颜色条,卡片更简洁,状态通过底部 note 展示 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
原 prompt 中"不要猜测"过于保守,导致 agent 即使能从上下文明显 推断出唯一仓库也不敢主动 setup_workspace。改为仅在确实存在多个 同等可能候选时才询问用户。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- "绝对不要切换工作区" 改为 "不要对当前仓库重复调用" - restart 模式下补充 setup_workspace 可用提示,允许跨仓库切换 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
b61a5bc to
283f37f
Compare
|
Claude finished @lishuceo's task in 3m 19s —— View job PR Review: feat: 合并工具调用+文本+结果为单一卡片
Verdict:
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 1m 59s —— View job PR Review: feat: 合并工具调用+文本+结果为单一卡片
Verdict:
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 2m 0s —— View job PR Review: feat: 合并工具调用+文本+结果为单一卡片
Verdict: ✅ Approved1 previous issue fixed: markdown in No new issues found (confidence ≥ 75) in this push. Overall AssessmentClean, well-structured PR. The single-card lifecycle (
|

Summary
Test plan
npx vitest run全部通过(63 个 message-builder 测试)🤖 Generated with Claude Code