feat: Add message history trimming to AI workflow builder (no-changelog) (#17829)

This commit is contained in:
Eugene
2025-08-05 15:16:12 +02:00
committed by GitHub
parent dd049249be
commit bac61a7e0d
10 changed files with 421 additions and 3 deletions

View File

@@ -135,6 +135,7 @@ watch(currentRoute, () => {
:show-stop="true"
:scroll-on-new-message="true"
:placeholder="i18n.baseText('aiAssistant.builder.placeholder')"
:max-length="1000"
@close="emit('close')"
@message="onUserMessage"
@feedback="onFeedback"

View File

@@ -127,6 +127,7 @@ function onAddNodeClick() {
:placeholder="i18n.baseText('aiAssistant.builder.placeholder')"
:read-only="false"
:rows="15"
:maxlength="1000"
@focus="isFocused = true"
@blur="isFocused = false"
@keydown.meta.enter.stop="onSubmit"

View File

@@ -9,7 +9,7 @@ exports[`CanvasNodeAIPrompt > should render component correctly 1`] = `
<form class="form">
<div class="el-textarea el-input--large n8n-input formTextarea formTextarea">
<!-- input -->
<!-- textarea --><textarea class="el-textarea__inner" name="aiBuilderPrompt" rows="15" title="" read-only="false" tabindex="0" autocomplete="off" placeholder="Ask n8n to build..."></textarea>
<!-- textarea --><textarea class="el-textarea__inner" name="aiBuilderPrompt" rows="15" title="" maxlength="1000" read-only="false" tabindex="0" autocomplete="off" placeholder="Ask n8n to build..."></textarea>
<!--v-if-->
</div>
<footer class="formFooter"><button class="button button primary medium disabled" disabled="" aria-disabled="true" aria-live="polite" type="submit">