Skip to content

fix(ai-builder): Fix chat fade, keyboard shortcuts, node tidy-up, and feedback styling#26200

Merged
mike12345567 merged 4 commits intomasterfrom
fix/ai-builder-bugs-2097-2100-2101
Feb 25, 2026
Merged

fix(ai-builder): Fix chat fade, keyboard shortcuts, node tidy-up, and feedback styling#26200
mike12345567 merged 4 commits intomasterfrom
fix/ai-builder-bugs-2097-2100-2101

Conversation

@mike12345567
Copy link
Contributor

@mike12345567 mike12345567 commented Feb 24, 2026

Summary

  • Remove gradient fade from chat messages area and prompt container background (AI-2097)
  • Stop stealing focus to chat input when clicking canvas nodes, so keyboard shortcuts (copy/paste/delete) work while WFB is open (AI-2100)
  • Run tidy-up on every workflow update and add final tidy-up when streaming ends so nodes stay arranged during generation (AI-2101)
  • Remove full-width background/borders from feedback icons wrapper and add top padding to expanded feedback form

Addresses: https://linear.app/n8n/issue/AI-2101/bug-tidy-up-of-nodes-after-wfb-finishes-not-working-correctly
Addresses: https://linear.app/n8n/issue/AI-2100/bug-copypaste-keyboard-shortcuts-in-general-captured-by-wfb
Addresses: https://linear.app/n8n/issue/AI-2097/bug-wfb-chat-remove-fade-as-hard-borders-make-it-un-necessary

Screenshots

image image image

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

mike12345567 and others added 2 commits February 24, 2026 17:37
… feedback styling

- Remove gradient fade from chat messages area and prompt container
  background (AI-2097)
- Stop stealing focus to chat input when clicking canvas nodes, so
  keyboard shortcuts (copy/paste/delete) work while WFB is open
  (AI-2100)
- Run tidy-up on every workflow update and add final tidy-up when
  streaming ends so nodes stay arranged during generation (AI-2101)
- Remove full-width background/borders from feedback icons wrapper
  and add top padding to expanded feedback form

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 24, 2026

Bundle Report

Changes will increase total bundle size by 17.48kB (0.04%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
editor-ui-esm 42.43MB 17.48kB (0.04%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: editor-ui-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/typescript.worker-*.js 5.05kB 10.64MB 0.05%
assets/worker-*.js 2.9MB 2.92MB 21723.21% ⚠️
assets/worker-*.js -2.9MB 13.37kB -99.54%
assets/constants-*.js 5.46kB 2.89MB 0.19%
assets/src-*.js 133 bytes 2.22MB 0.01%
assets/ParameterInputList-*.js 58 bytes 1.47MB 0.0%
assets/index-*.js 158 bytes 1.14MB 0.01%
assets/RunData-*.js 30 bytes 1.06MB 0.0%
assets/_MapCache-*.js 1.05kB 574.56kB 0.18%
assets/src-*.css -147 bytes 475.06kB -0.03%
assets/useCanvasMapping-*.js -139 bytes 441.76kB -0.03%
assets/NodeView-*.js 208 bytes 146.1kB 0.14%
assets/ChatView-*.css -37 bytes 85.78kB -0.04%
assets/SettingsSecretsProviders.ee-*.js -106 bytes 22.97kB -0.46%
assets/ProjectRoleView-*.js 333 bytes 17.2kB 1.97%
assets/SettingsExternalSecrets-*.js 110 bytes 11.05kB 1.01%
assets/projectRoleScopes-*.js 161 bytes 1.19kB 15.65% ⚠️
assets/ProjectRoleView-*.css 119 bytes 992 bytes 13.63% ⚠️

Files in assets/index-*.js:

  • ./src/features/ai/assistant/components/Agent/AskAssistantBuild.vue → Total Size: 402 bytes

  • ./src/app/composables/useWorkflowUpdate.ts → Total Size: 8.82kB

Files in assets/useCanvasMapping-*.js:

  • ./src/features/workflows/canvas/components/Canvas.vue → Total Size: 352 bytes

@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Feb 24, 2026
@blacksmith-sh

This comment has been minimized.

aalises
aalises previously approved these changes Feb 25, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 8 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/frontend/editor-ui/src/features/ai/assistant/components/Agent/AskAssistantBuild.vue">

<violation number="1" location="packages/frontend/editor-ui/src/features/ai/assistant/components/Agent/AskAssistantBuild.vue:429">
P1: `accumulatedNodeIdsToTidyUp` must be cleared after the final tidy-up so subsequent prompts don't incorrectly re-arrange previously generated nodes.</violation>

<violation number="2" location="packages/frontend/editor-ui/src/features/ai/assistant/components/Agent/AskAssistantBuild.vue:432">
P2: Final tidy-up layout changes will be isolated in a separate undo step because they are emitted asynchronously after `historyStore.stopRecordingUndo()` has already closed the undo recording block.</violation>
</file>
Architecture diagram
sequenceDiagram
    participant U as User
    participant C as Canvas Component
    participant WFB as AI Chat Panel (WFB)
    participant WUC as useWorkflowUpdate (Composable)
    participant EB as Canvas Event Bus
    participant BS as Builder Store

    Note over U, EB: Workflow Generation & Node Arrangement Flow

    rect rgb(23, 37, 84)
    Note right of WFB: NEW: Enhanced Tidy-up Logic
    WFB->>WUC: updateWorkflow(nodes, edges)
    WUC->>BS: setBuilderMadeEdits(true)
    WUC->>EB: NEW: emit('tidyUp') (Triggered on every update)
    EB-->>C: Re-layout nodes
    end

    opt On AI Streaming Completion
        WFB->>EB: NEW: emit('tidyUp') (Final layout pass)
        WFB->>EB: emit('fitView')
    end

    Note over U, EB: Canvas Interaction & Focus Flow

    U->>C: Click Node
    C->>BS: confirmNodes(nodeId)
    Note over C, WFB: CHANGED: No longer requests focus for Chat Input<br/>Allows keyboard shortcuts (Copy/Paste) to stay on Canvas

    Note over U, EB: User Feedback Flow

    U->>WFB: Click Rating/Feedback
    WFB->>WFB: Toggle Feedback Form
    Note over WFB: CHANGED: Dynamic styling based on expansion state<br/>(Removes full-width borders, adjusts padding)

    Note over WFB: UI Visual Changes
    Note right of WFB: REMOVED: Gradient fades in chat/prompt areas<br/>CHANGED: Solid backgrounds for message/input containers
Loading

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@mike12345567 mike12345567 added this pull request to the merge queue Feb 25, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 25, 2026
@mike12345567 mike12345567 added this pull request to the merge queue Feb 25, 2026
Merged via the queue into master with commit c30870c Feb 25, 2026
43 checks passed
@mike12345567 mike12345567 deleted the fix/ai-builder-bugs-2097-2100-2101 branch February 25, 2026 14:59
@n8n-assistant n8n-assistant bot mentioned this pull request Mar 2, 2026
Tuukkaa pushed a commit that referenced this pull request Mar 2, 2026
… feedback styling (#26200)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 3, 2026
@n8n-assistant
Copy link
Contributor

n8n-assistant bot commented Mar 3, 2026

Got released with n8n@2.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n8n team Authored by the n8n team Released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants