chatccc 0.2.91 → 0.2.92

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 +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.91",
3
+ "version": "0.2.92",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/session.ts CHANGED
@@ -813,7 +813,7 @@ export async function runAgentSession(
813
813
  const nextSeq = display.sequence + 1;
814
814
  const headerTitle = prevState.status === "stopped" ? "已停止" : "完成";
815
815
  const headerTemplate = prevState.status === "stopped" ? "red" : undefined;
816
- const cardContent = prevState.accumulatedContent || " ";
816
+ const cardContent = truncateContent(prevState.accumulatedContent + prevState.finalReply) || " ";
817
817
  const doneCard = buildProgressCard(cardContent, { showStop: false, headerTitle, headerTemplate });
818
818
  await pp.cardUpdate(display.cardId, doneCard, nextSeq).catch(() => {});
819
819
  displayCards.delete(displayChatId);
@@ -1107,7 +1107,7 @@ export function ensureDisplayLoop(sessionId: string): void {
1107
1107
  const nextSeq = display.sequence + 1;
1108
1108
  const headerTitle = state.status === "stopped" ? "已停止" : "完成";
1109
1109
  const headerTemplate = state.status === "stopped" ? "red" : undefined;
1110
- const cardContent = state.accumulatedContent || " ";
1110
+ const cardContent = truncateContent(state.accumulatedContent + state.finalReply) || " ";
1111
1111
  const doneCard = buildProgressCard(cardContent, { showStop: false, headerTitle, headerTemplate });
1112
1112
  await p.cardUpdate(display.cardId, doneCard, nextSeq).catch(() => {});
1113
1113
  const finalSt = state.status === "stopped" ? "stopped" : "done";