feat: add text content card to display agent output in threads - #110
Conversation
Previously in thread mode, only the last turn's text was shown in the result card. Intermediate turns' text content was accumulated in memory but never sent to Feishu, causing users to miss detailed conclusions. Add a continuously-updated text content card between the progress card (tool calls) and the result card (status). Also fix pre-existing bug where the normal completion path dropped the last turn's tool calls from the progress card. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 1m 43s —— View job Code Review for PR #110
✅ ApprovedClean, well-structured PR that follows existing patterns and fixes a real bug. No issues found with confidence ≥ 75. What was reviewed1.
2. Text card lifecycle in
3. Bug fix: missing last-turn tool calls on normal completion (lines 1407-1414) This is a legitimate fix. The 4. Tests ( Good coverage of the key scenarios:
Minor observations (not blocking)
Overall: well-written, follows existing patterns, good test coverage, and the pre-existing bug fix is a nice bonus. |
Previously in thread mode, only the last turn's text was shown in the result card. Intermediate turns' text content was accumulated in memory but never sent to Feishu, causing users to miss detailed conclusions. Add a continuously-updated text content card between the progress card (tool calls) and the result card (status). Also fix pre-existing bug where the normal completion path dropped the last turn's tool calls from the progress card. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* ci: 增加 CI 测试门禁 + 文档变更跳过部署 - deploy.yml: 加 paths-ignore 跳过 docs/md 等纯文档变更 - deploy.yml: 新增 test job (ubuntu-latest) 作为部署前门禁,typecheck + 单元测试 - 新建 ci.yml: PR 级别测试 (typecheck + lint + unit tests) - 测试排除 quality.test.ts 和 integration.test.ts (外部 API 依赖) - 新增 docs/ci-improvements.md 改进方案文档 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add text content card to display agent output in threads (#110) Previously in thread mode, only the last turn's text was shown in the result card. Intermediate turns' text content was accumulated in memory but never sent to Feishu, causing users to miss detailed conclusions. Add a continuously-updated text content card between the progress card (tool calls) and the result card (status). Also fix pre-existing bug where the normal completion path dropped the last turn's tool calls from the progress card. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: CI 移除 lint 步骤 — ESLint v10 缺少 flat config ESLint v10 要求 eslint.config.js (flat config),项目尚未配置, 本地和 CI 均无法运行 npm run lint。先移除 CI lint 步骤, 待后续 PR 单独修复 ESLint 配置。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Previously in thread mode, only the last turn's text was shown in the result card. Intermediate turns' text content was accumulated in memory but never sent to Feishu, causing users to miss detailed conclusions. Add a continuously-updated text content card between the progress card (tool calls) and the result card (status). Also fix pre-existing bug where the normal completion path dropped the last turn's tool calls from the progress card. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* ci: 增加 CI 测试门禁 + 文档变更跳过部署 - deploy.yml: 加 paths-ignore 跳过 docs/md 等纯文档变更 - deploy.yml: 新增 test job (ubuntu-latest) 作为部署前门禁,typecheck + 单元测试 - 新建 ci.yml: PR 级别测试 (typecheck + lint + unit tests) - 测试排除 quality.test.ts 和 integration.test.ts (外部 API 依赖) - 新增 docs/ci-improvements.md 改进方案文档 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add text content card to display agent output in threads (#110) Previously in thread mode, only the last turn's text was shown in the result card. Intermediate turns' text content was accumulated in memory but never sent to Feishu, causing users to miss detailed conclusions. Add a continuously-updated text content card between the progress card (tool calls) and the result card (status). Also fix pre-existing bug where the normal completion path dropped the last turn's tool calls from the progress card. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: CI 移除 lint 步骤 — ESLint v10 缺少 flat config ESLint v10 要求 eslint.config.js (flat config),项目尚未配置, 本地和 CI 均无法运行 npm run lint。先移除 CI lint 步骤, 待后续 PR 单独修复 ESLint 配置。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
buildTextContentCard),在话题模式下持续追加显示 agent 的文本输出,解决中间 turn 文本丢失问题Test plan
npm run typecheck通过npx vitest run相关测试全部通过(52 + 42 = 94 tests)🤖 Generated with Claude Code