mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix: fork session (#7219)
This commit is contained in:
@@ -36,7 +36,7 @@ interface ProgressiveMessageListProps {
|
||||
// Custom render function for messages
|
||||
renderMessage?: (message: Message, index: number) => React.ReactNode | null;
|
||||
isStreamingMessage?: boolean; // Whether messages are currently being streamed
|
||||
onMessageUpdate?: (messageId: string, newContent: string) => void;
|
||||
onMessageUpdate?: (messageId: string, newContent: string, editType?: 'fork' | 'edit') => void;
|
||||
onRenderingComplete?: () => void; // Callback when all messages are rendered
|
||||
submitElicitationResponse?: (
|
||||
elicitationId: string,
|
||||
|
||||
@@ -80,7 +80,7 @@ export default function UserMessage({ message, onMessageUpdate }: UserMessagePro
|
||||
|
||||
setIsEditing(false);
|
||||
|
||||
if (editContent.trim() === textContent.trim()) {
|
||||
if (editType === 'edit' && editContent.trim() === textContent.trim()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user