Commit 0ebd291
fix(ai-builder): Handle data table name conflict gracefully instead of looping (no-changelog)
When the builder creates a workflow involving a data table, it creates
the table in run #1 then tries to create it again in run #2 (rebuild
phase). The DataTableNameConflictError causes the agent to retry in a
loop until the build times out.
Fix: catch the conflict error and return `denied: true` with a reason
guiding the agent to use the existing table. The agent already handles
denied responses gracefully.
Also adds family-assistant eval test case (Telegram + AI agent +
calendar + shopping list + web search) which exercises this code path.
Before: BUILD FAILED after 175s of looping
After: BUILD SUCCESS in ~3 min, 3/3 scenarios passing
Ref: https://linear.app/n8n/issue/AI-2358
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dfdc6d2 commit 0ebd291
File tree
2 files changed
+60
-4
lines changed- packages/@n8n/instance-ai
- evaluations/data/workflows
- src/tools/data-tables
2 files changed
+60
-4
lines changedLines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 34 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
31 | 45 | | |
32 | 46 | | |
33 | 47 | | |
| |||
91 | 105 | | |
92 | 106 | | |
93 | 107 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
98 | 128 | | |
99 | 129 | | |
100 | 130 | | |
0 commit comments