Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c45fb9c941 | |||
| 6a40040573 | |||
| d3fe1b21ed |
@@ -148,5 +148,3 @@ pnpm start:prod
|
||||
聊天滚动将“跟随最新”与当前底部距离分开:停在底部时,流式回复、结束后操作栏及软键盘导致的尺寸变化均继续贴底;主动上翻才暂停跟随,点击“回到最新”重新启用。等待首段正文仅显示思考点,收到文字后才显示打字光标,结束时移除生成提示。
|
||||
|
||||
聊天输入区“继续”让 NPC 基于上一段内容继续说话,不发送或清空输入框草稿,也不插入用户气泡;可连续点击生成多段,生成时沿用停止按钮。角色尚无可接续内容时按钮不可用。
|
||||
|
||||
NPC 尚未出字就停止或失败时,“继续”仍可接续此前已完成的角色内容,输入草稿保持不变。
|
||||
|
||||
@@ -184,15 +184,7 @@ export function DigitalHome({
|
||||
books = boot?.catalog.filter((c) => c.kind === "worldbook") ?? [],
|
||||
presets = boot?.catalog.filter((c) => c.kind === "preset") ?? [];
|
||||
const conversationId = conversation?.id;
|
||||
// 尚未产生正文的失败/停止不算新台词,继续时接回上一段;真实用户消息仍是边界。
|
||||
const lastReply = conversation?.messages.findLast(
|
||||
(m) =>
|
||||
!(
|
||||
m.role === "assistant" &&
|
||||
["stopped", "failed"].includes(m.status) &&
|
||||
!m.content.trim()
|
||||
),
|
||||
);
|
||||
const lastReply = conversation?.messages.at(-1);
|
||||
const canContinue =
|
||||
lastReply?.role === "assistant" &&
|
||||
["complete", "stopped"].includes(lastReply.status) &&
|
||||
|
||||
Reference in New Issue
Block a user