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.
- package/package.json +1 -1
- package/src/session.ts +4 -1
package/package.json
CHANGED
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(
|
|
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;
|