fix: 文本卡片去重 — 最后一轮输出不再同时出现在文本卡片和结果卡片 - #116
Conversation
路由 agent 通过工具搜索 ls 项目目录时,仍会匹配到非仓库目录 (如 talktype-target 编译产物)。即使 use_existing 验证能拒绝, 回退到 use_default 仍不符合预期。 修复: 在搜索指令中明确告知 agent 只有含 .git 的目录才是有效仓库, 编译产物目录不应被选择,部分名称匹配应继续查找更精确的结果。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
完成时不将 pendingTurn.textContent 追加到 accumulatedText, 文本卡片只展示 turn 1..N-1,最后一轮由结果卡片独占显示。 同时 vitest.config.ts 加载 dotenv,测试自动读取 .env 中的 API Key。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 55s —— View job PR Review: Text Card Dedup
✅ Approved — Clean, minimal fix with correct logic. Analysis
Key observations:
Minor Note (not blocking)The VerdictThe dedup logic is correct — turns 1..N-1 go to the text card, turn N goes exclusively to the result card, and error paths preserve full visibility. LGTM. |
* fix: 路由 prompt 搜索指令要求验证 .git 目录 路由 agent 通过工具搜索 ls 项目目录时,仍会匹配到非仓库目录 (如 talktype-target 编译产物)。即使 use_existing 验证能拒绝, 回退到 use_default 仍不符合预期。 修复: 在搜索指令中明确告知 agent 只有含 .git 的目录才是有效仓库, 编译产物目录不应被选择,部分名称匹配应继续查找更精确的结果。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: 文本卡片去重 — 最后一轮输出不再同时出现在文本卡片和结果卡片 完成时不将 pendingTurn.textContent 追加到 accumulatedText, 文本卡片只展示 turn 1..N-1,最后一轮由结果卡片独占显示。 同时 vitest.config.ts 加载 dotenv,测试自动读取 .env 中的 API Key。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
pendingTurn.textContent追加到accumulatedText,文本卡片只展示 turn 1..N-1 的内容,最后一轮由结果卡片独占显示,消除重复vitest.config.ts顶部加载dotenv.config(),测试自动从.env读取 API KeyTest plan
npx vitest run确认测试通过🤖 Generated with Claude Code