chatccc 0.2.83 → 0.2.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/session.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.83",
3
+ "version": "0.2.84",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/session.ts CHANGED
@@ -1153,7 +1153,10 @@ export function ensureDisplayLoop(sessionId: string): void {
1153
1153
  const oldDisplayContent = truncateContent(state.accumulatedContent + state.finalReply) || "处理中...";
1154
1154
  const oldCard = buildProgressCard(oldDisplayContent, { showStop: false, headerTitle: "生成中...(上轮)" });
1155
1155
  await p.cardUpdate(display.cardId, oldCard, oldSeqBase + 1).catch(() => {});
1156
- const newCardId = await p.cardCreate(buildProgressCard("", { showStop: true, headerTitle: "生成中..." }));
1156
+ const newCardId = await p.cardCreate(buildProgressCard(
1157
+ truncateContent(state.accumulatedContent) || "处理中...",
1158
+ { showStop: true, headerTitle: "生成中..." },
1159
+ ));
1157
1160
  if (newCardId) {
1158
1161
  await p.cardSend(chatId, newCardId);
1159
1162
  display.cardId = newCardId;