Commit Graph

20906 Commits

Author SHA1 Message Date
r00gm
f5dd8e7989
fix(editor): Address review feedback on the Instance AI editor hand-off
- Credential setup-help gates on write access (canWrite) so it shows in create-only flows, not just edit.
- Strip every leading internal block from stored user messages so a stacked editor-context + running-tasks no longer leaks markup into visible history.
- AttachmentPreview workflow name ellipsizes in the flex chip (min-width: 0).
- Capitalize "AI Assistant" in the canvas-action popover title.
2026-06-18 20:51:52 +02:00
r00gm
7d80cbf17d
test: Align tests with the attachment union and instanceAi editor context
parse-file-registration: fixtures use InstanceAiFileAttachment (type: 'file') to match the file|workflow union; useContextMenu: mock the new instanceAi editor-context flag so the focus-AI gating doesn't read undefined.
2026-06-18 20:42:28 +02:00
r00gm
88823deb0e
refactor(editor): Tighten Instance AI hand-off comments to convention 2026-06-18 19:08:04 +02:00
r00gm
9ca45f250b
feat(editor): Add canvas and node-error entry points that hand off to Instance AI
- "Ask AI Assistant" canvas-action popover and node-error-view button open Instance AI about the current workflow in the same tab, attaching the workflow and the execution shown on the canvas.
- Credentials open Instance AI in a new tab with just the credential question (no workflow/execution).
- Relabel the inline assistant button to "Ask AI Assistant" for these entry points.
- Guard against click-spam creating duplicate threads.
2026-06-18 18:55:17 +02:00
r00gm
76f6c68c54
refactor(editor): Hide the focus-AI context-menu item when Instance AI is on 2026-06-18 14:12:34 +02:00
r00gm
560cb50925
revert(editor): Drop execution carry-over to Instance AI; rely on the get-execution tool
Reverts 807143ee4d. Seeding the editor's execution as a resolved tool call (to cover manual runs the instance didn't save) isn't worth the cross-layer carry-over: only ~0.1% of users disable saving manual executions, and the agent's get-execution tool covers the rest. The agent re-fetches via its tools as before. The new-tab relay and the master merge are unaffected.
2026-06-18 13:59:18 +02:00
r00gm
807143ee4d
feat(editor): Seed the editor execution into Instance AI as a resolved tool call
Handing a workflow off from the editor now summarizes the run the user is viewing (status, executed nodes, error, timings) and prepends it to the agent's first turn as a resolved executions(get) tool call. The agent sees the run without calling the tool — which throws for manual executions the instance didn't save — and it survives across turns since it lives in history. Threaded via the editorExecution field on the chat request, kept per-run in startRun/executeRun and seeded into streamInput, and carried through the FE send chain + new-tab relay.
2026-06-18 13:32:30 +02:00
r00gm
5d5ed55edc
Merge remote-tracking branch 'origin/master' into r00gm/replace-aiwb-with-instance-ai
# Conflicts:
#	packages/frontend/editor-ui/src/features/ai/instanceAi/instanceAi.threadRuntime.ts
#	packages/frontend/editor-ui/src/features/ai/instanceAi/useResourceRegistry.ts
2026-06-18 13:04:50 +02:00
r00gm
0e588751be
fix(editor): Send the Instance AI new-tab opening message from the destination tab
A new tab is a fresh app instance, so the opener's optimistic message and stream don't carry over, and the message isn't queryable right after the chat POST returns. The opener now stashes the opening message in localStorage (keyed by thread) and the destination tab's own runtime sends it after hydration — so it shows immediately and streams, instead of appearing only after a refresh.
2026-06-18 12:59:53 +02:00
Tomi Turtiainen
79560920cb
refactor(core): Re-parent task runner error subclasses (no-changelog) (#32543)
Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
2026-06-18 10:30:56 +00:00
Mike Repeć
aae88a5db5
fix(core): Resolve legacy $item accessor properties in vm expression engine (no-changelog) (#32551)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Danny Martini <danny@n8n.io>
2026-06-18 10:27:32 +00:00
Joco-95
ad298e7c90
fix: Hides preview suggestions on smaller screens due to lack of space (#32444) 2026-06-18 10:25:03 +00:00
Raúl Gómez Morales
553d046bbd
refactor(editor): Unify instance AI agent run state with the rendered tree (no-changelog) (#32124) 2026-06-18 10:14:17 +00:00
Marc Littlemore
ebbd629a6a
fix(core): Upgrade @n8n_io/license-sdk to v3 and resolve node-rsa to v2 (#32552)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 09:38:38 +00:00
Tomi Turtiainen
753c4f25fc
refactor(core): Register multi-main handlers reactively (#32457) 2026-06-18 09:36:04 +00:00
r00gm
dc64c7e540
fix(editor): Show the opening message when Instance AI opens in a new tab
The new tab loaded before the fire-and-forget message POST landed, so it showed an empty thread until refresh. Open the tab synchronously within the click (so it isn't popup-blocked), then await the send so the message is persisted before navigating the tab to the thread.
2026-06-18 11:32:22 +02:00
Tomi Turtiainen
029905890d
docs: Add concise comments guideline to AGENTS.md (#32553) 2026-06-18 09:31:11 +00:00
Lorent Lempereur
8e8c13ebe6
refactor(core): Route external secrets providers through the shared HTTP client (#32453) 2026-06-18 09:25:10 +00:00
Daria
3aa3534167
feat(editor): Improve tidy-up behavior for collapsed node groups (no-changelog) (#32491) 2026-06-18 09:24:51 +00:00
r00gm
42d39cb442
fix(editor): Open Instance AI credential help in a new tab and fix the list entry
Credential setup help (editor NDV + credentials list) now opens the Instance AI thread in a new tab via startThread's newTab option (window.open with same-tab fallback), so it no longer navigates away from the editor/list. The list handler is gated only on Instance AI availability and resolves the project on click, so the button shows even before projects finish loading. Workflow hand-off and the artifact append stay same-tab.
2026-06-18 11:20:51 +02:00
n8n-cat-bot[bot]
cd0f5be7ea
ci: Allow reviewer auto-assign to fire on cat-bot PRs (#32550)
Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com>
2026-06-18 09:19:35 +00:00
Daria
220ff49ab5
fix(editor): Clear selection box when collapsing a node group (no-changelog) (#32396) 2026-06-18 09:17:04 +00:00
James Gee
79746fc502
fix(core): Validate credential type when binding credentials on package import (no-changelog) (#32383) 2026-06-18 09:16:52 +00:00
Csaba Tuncsik
7b9ba29b14
feat(Google Sheets Trigger Node): Add Service Account credential support (#32312) 2026-06-18 09:01:02 +00:00
Tomi Turtiainen
806656823d
chore(core): Add debug logs to publication outbox processing (no-changelog) (#32519) 2026-06-18 08:58:36 +00:00
Stephen Wright
02b2013aaa
feat(Microsoft To Do Node): Accept the generic Microsoft OAuth2 (Graph) credential (#32492) 2026-06-18 08:55:43 +00:00
Stephen Wright
ad8faa66fa
feat(Microsoft To Do Node): Allow custom OAuth2 scopes (#32538) 2026-06-18 08:55:07 +00:00
Tomi Turtiainen
e345d55b1e
feat(core): Reclaim stale publication outbox leases (no-changelog) (#32536) 2026-06-18 08:42:20 +00:00
mfsiega
6736610c6a
feat(core): Handle workflow unpublish in the publication outbox (no-changelog) (#32528)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 08:12:47 +00:00
Lorent Lempereur
399a5c1683
refactor(core): Migrate OAuth2 identifier metadata fetch to outbound HTTP factory (#32535) 2026-06-18 08:04:16 +00:00
Matsu
0773855386
ci: Add automation label to release PRs (#32537) 2026-06-18 07:58:02 +00:00
Riqwan Thamir
9d7ed01e95
feat(core): Add eval + trim builder prompt (no-changelog) (#32484) 2026-06-18 07:55:33 +00:00
r00gm
8544103b7b
refactor(editor): Hide node toolbar Add-to-AI button when Instance AI is on 2026-06-18 09:50:32 +02:00
Srinjoy
0b2b1a7eea
test: Add test coverage for DB migration 1784000000024-AddResourceToOAuthAuthorizationCodes (no-changelog) (#31691) 2026-06-18 07:48:00 +00:00
Guillaume Jacquart
8cac6e7261
feat(core): Gate MCP tool calls on the caller's private-credential status (#32446)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 07:46:48 +00:00
Matsu
328c1a4745
chore: Extraneous deps cleanup (#32386) 2026-06-18 07:42:31 +00:00
r00gm
1b7ece7402
refactor(instance-ai): Reuse jsonParse and simplify context-block assembly (no-changelog) 2026-06-18 09:40:26 +02:00
Ali Elkhateeb
f6c2bcc6ec
fix(core): Exclude error workflow executions from billable execution count (#32315) 2026-06-18 07:35:19 +00:00
Tomi Turtiainen
185f3f229a
refactor(core): Replace deprecated ApplicationError in nodes-langchain (no-changelog) (#32471)
Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
2026-06-18 07:35:09 +00:00
r00gm
ed706e98e9
fix: Resolve Instance AI attachment-union type conflicts from the master merge (no-changelog)
After merging master, two spots assumed file-only attachments while this branch's discriminated file|workflow union was in effect: currentUserAttachments is typed back to InstanceAiFileAttachment[] (matching its file-only writer/readers), and the trace input maps fileAttachments instead of the union. No behavior change.
2026-06-18 09:25:29 +02:00
Tomi Turtiainen
78d37ec45e
test(core): Stabilize flaky task runner process connect waits (no-changelog) (#32514) 2026-06-18 07:19:51 +00:00
mfsiega
dcbdb10a2b
feat(core): Enable scheduled execution deduplication by default (#32533)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 07:13:34 +00:00
r00gm
68fc5af736
Merge remote-tracking branch 'origin/master' into r00gm/replace-aiwb-with-instance-ai
# Conflicts:
#	packages/@n8n/instance-ai/src/types.ts
#	packages/cli/src/modules/instance-ai/__tests__/internal-messages.test.ts
#	packages/cli/src/modules/instance-ai/instance-ai.service.ts
2026-06-18 09:11:01 +02:00
n8n-cat-bot[bot]
e023e17f2f
chore: Dedup editCredential-modal locator across credential page (#32520)
Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-18 07:01:18 +00:00
Ilfat Mindubaev
76d9c936a2
feat(Microsoft Outlook Node): Accept the generic Microsoft OAuth2 (Graph) credential (#32531) 2026-06-18 06:54:13 +00:00
Matsu
1e2ae6c28b
test: Route editor navigation in specs through entry composers (no-changelog) (#32181)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 06:53:54 +00:00
r00gm
8476491d37
refactor(editor): Make Instance AI editor entry points capability-driven
Visibility moves to a new `instanceAi` EditorEnabledFeatures flag (store-gated by global Instance AI availability, host-restrictable per editor); behavior moves to the InstanceAiEditorCapability port with optional `openWorkflow`/`openCredential` that each host provides (the standalone editor opens a thread about the current workflow, the artifact appends to the open one). Dedicated Instance AI buttons mimic the canvas action button and the empty-canvas "Build with AI" prompt and render only when the feature is on; the legacy AIWB/assistant buttons (including the floating button) hide then. Credential setup help reaches the teleported credential modal through the modal-open options, so a host that omits the capability turns it off for that editor.
2026-06-18 08:50:46 +02:00
Bernhard Wittmann
35adffad4b
fix(Form Node): Evaluate expressions in form fields on subsequent pages (#32352) 2026-06-18 06:50:38 +00:00
Jahanzaib iqbal
5dc9c45adc
fix(Bitbucket Trigger Node): Use account_id to validate credentials instead of username (#30172)
Some checks are pending
CI: Master (Build, Test, Lint) / Build for Github Cache (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (22.22.3) (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (24.16.0) (push) Waiting to run
CI: Master (Build, Test, Lint) / Lint (push) Waiting to run
CI: Master (Build, Test, Lint) / Performance (push) Waiting to run
CI: Master (Build, Test, Lint) / Notify Slack on failure (push) Blocked by required conditions
Co-authored-by: Garrit Franke <32395585+garritfra@users.noreply.github.com>
Co-authored-by: Bernhard Wittmann <bernhard.wittmann@n8n.io>
2026-06-18 06:46:23 +00:00
Stephen Wright
f998a1f386
fix(Microsoft OneDrive Node): Validate upload file name to replace misleading Graph error (#32470)
Co-authored-by: Csaba Tuncsik <csaba.tuncsik@gmail.com>
2026-06-18 05:21:27 +00:00