mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
feat(editor): Improve feedback buttons behavior (#18247)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -56,6 +56,7 @@ export const useBuilderStore = defineStore(STORES.BUILDER, () => {
|
||||
createErrorMessage,
|
||||
clearMessages,
|
||||
mapAssistantMessageToUI,
|
||||
clearRatingLogic,
|
||||
} = useBuilderMessages();
|
||||
|
||||
// Computed properties
|
||||
@@ -203,7 +204,7 @@ export const useBuilderStore = defineStore(STORES.BUILDER, () => {
|
||||
*/
|
||||
function prepareForStreaming(userMessage: string, messageId: string) {
|
||||
const userMsg = createUserMessage(userMessage, messageId);
|
||||
chatMessages.value = [...chatMessages.value, userMsg];
|
||||
chatMessages.value = clearRatingLogic([...chatMessages.value, userMsg]);
|
||||
addLoadingAssistantMessage(locale.baseText('aiAssistant.thinkingSteps.thinking'));
|
||||
streaming.value = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user