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