- {(!message.failed || Boolean(bubbleMessage.text) || regenerating) && (
+ {(!message.failed || Boolean(displayedMessage.text) || regenerating) && (
)}
{showActions && !regenerating && (
@@ -1224,7 +1280,7 @@ export function RectificationAgenticChat(props: RectificationAgenticChatProps) {
...current,
[message.renderKey]: toggleRectificationFeedback(current[message.renderKey], requested),
}))}
- onCopy={() => void copyMessage({ ...message, text: bubbleText })}
+ onCopy={() => void copyMessage(message)}
onRegenerate={() => void regenerateMessage(message)}
/>
)}
@@ -1236,72 +1292,9 @@ export function RectificationAgenticChat(props: RectificationAgenticChatProps) {
onAccept={(candidateId) => void acceptCandidate(candidateId)}
/>
)}
- {visibleChoiceCard && (
-
- )}
- {isLatestMessage && showQuestionSlot && (
-
- {showLiveChoiceCard && choiceCard && (
-
- )}
- {showMissingQuestion && (
-
- 当前没有可回答的问题,正在等待服务端更新。
-
- )}
- {showUnavailableQuestion && (
-
- 当前问题暂时无法显示,请等待服务端更新。
-
- )}
-
- )}
);
})}
- {messages.length === 0 && showQuestionSlot && (
-
已确认校正时间:{savedTime}
@@ -1328,6 +1321,13 @@ export function RectificationAgenticChat(props: RectificationAgenticChatProps) {
{!conversationAnchor.anchored && (
)}
+ {(showMissingQuestion || showUnavailableQuestion) && (
+
+ {showMissingQuestion
+ ? "当前没有可回答的问题,正在等待服务端更新。"
+ : "当前问题暂时无法显示,请等待服务端更新。"}
+
+ )}