n8n/packages/cli/src
Robin Braumann dcf535a1c6
feat(core): Handle a busy agent session on each surface (no-changelog)
Each starter now reacts to a busy session in its own way:

- An integration message gets a busy notice. The bridge deletes its
  stored attachments and does not run the message.
- An integration button resume waits for the session for 5 seconds.
  Then it posts "This action has already been handled". A Preview
  resume waits the same time and then gets `turn_already_running`.
- A workflow-tool resume tries again with a backoff from 1 s to 30 s.
  It stops when the run is no longer suspended.
- A background wake skips without a failure count. The turn that holds
  the session requests a new wake when it settles.
- A busy sub-agent resume is retryable, so the parent stays suspended.

The session lease replaces the in-process HITL guard and the running
check of the wake, so this removes both and `existsRunningByThread`.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 12:26:12 +02:00
..
__tests__ feat(core): Report crashed executions to OTel through an execution-crashed event (#38853) 2026-09-22 15:36:32 +00:00
auth feat(core): Add email change confirmation flow (no-changelog) (#37950) 2026-09-14 10:10:00 +00:00
binary-data fix: Serve binary data stored in the temp execution dir (#38270) 2026-09-11 09:51:30 +00:00
chat chore: Bundle 2.x (#37586) 2026-09-02 08:16:39 +03:00
collaboration feat(editor): Keep review-required toggle synchronized with open reviews (#34606) 2026-07-22 09:28:10 +00:00
commands refactor(core): Enforce persistence boundaries in code (no-changelog) (#39170) 2026-09-22 13:14:00 +03:00
concurrency refactor(core): Move sleep into @n8n/utils and unify sleep/sleepWithAbort (#35057) 2026-07-28 18:47:18 +00:00
config feat(core): Enable the UI to call the public API (no-changelog) (#35692) 2026-08-13 13:36:06 +00:00
constants feat(core): Add feature flag for granular credential sharing work (#39293) 2026-09-22 13:22:12 +00:00
controllers fix(core): Summarize saved credential type policies against known credential types (no-changelog) (#39191) 2026-09-22 13:58:58 +00:00
credentials feat(core): Add the credentialSave policy enforcement point (no-changelog) (#39099) 2026-09-21 19:44:58 +00:00
databases/repositories/__tests__ perf(core): Stop loading project members when listing credentials (#39068) 2026-09-18 12:30:06 +00:00
deduplication
deprecation chore(core): Warn about internal task runner mode by default and drop the v3 migration rule (no-changelog) (#38581) 2026-09-14 13:50:40 +00:00
encryption refactor(core): Enforce persistence boundaries in code (no-changelog) (#39170) 2026-09-22 13:14:00 +03:00
environments.ee/variables feat(core): Add create-stub variable policy and parent placement for package import (no-changelog) (#34794) 2026-07-28 12:05:48 +00:00
errors feat(core): Reject install and update of community packages requiring an unsupported node API version (no-changelog) (#37744) 2026-09-17 18:52:40 +00:00
evaluation.ee refactor(API): Move evaluation test-run reads behind a service (no-changelog) (#37199) 2026-09-01 07:14:28 +00:00
eventbus feat(core): Report crashed executions to OTel through an execution-crashed event (#38853) 2026-09-22 15:36:32 +00:00
events feat(core): Report crashed executions to OTel through an execution-crashed event (#38853) 2026-09-22 15:36:32 +00:00
execution-lifecycle fix(core): Guard worker execution save against overwriting a canceled status (#38957) 2026-09-21 12:51:16 +00:00
executions feat(core): Report crashed executions to OTel through an execution-crashed event (#38853) 2026-09-22 15:36:32 +00:00
expression-observability feat(core): Add QuickJS expression engine option alongside isolated-vm (no-changelog) (#33969) 2026-08-31 13:40:28 +00:00
instance-settings-loader fix(core): Apply the SSO expression mapping env var in the provisioning loader (#37170) 2026-09-09 18:59:54 +00:00
license refactor(core): Run license auto-renewal as a system task (no-changelog) (#37549) 2026-09-10 11:33:48 +00:00
metrics feat(core): Add Prometheus metrics for system tasks (no-changelog) (#38743) 2026-09-16 13:09:55 +00:00
mfa test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
middlewares feat(core): Add a description field to credentials (no-changelog) (#38839) 2026-09-17 13:16:34 +00:00
modules feat(core): Handle a busy agent session on each surface (no-changelog) 2026-09-23 12:26:12 +02:00
node-catalog feat(core): Let MCP discover and install verified community nodes (no-changelog) (#37374) 2026-09-21 21:44:05 +00:00
node-execution feat: Add standalone node execution as a Workflow Builder and AI Assistant tool (#37512) 2026-09-18 12:46:14 +00:00
oauth feat(core): Seal credential type writes behind the credentials repository (no-changelog) (#39106) 2026-09-22 14:42:34 +00:00
permissions.ee fix(core): Scope active workflow IDs to the requesting user's projects (#37326) 2026-08-31 08:46:24 +00:00
policy feat(core): Add the credentialSave policy enforcement point (no-changelog) (#39099) 2026-09-21 19:44:58 +00:00
posthog fix(core): Remove feature flag for MCP Registry in AI Assistant (#39018) 2026-09-22 07:18:27 +00:00
public-api feat(API): Create projects with source IDs and package metadata (#39218) 2026-09-22 16:41:52 +00:00
push fix(editor): Prevent stale agent autosaves (#38087) 2026-09-09 14:21:53 +00:00
scaling Merge remote-tracking branch 'origin/master' into reattach-chat-owner-on-reload 2026-09-22 19:42:11 +02:00
scheduling feat(core): Add a tracing span for each system task run (no-changelog) (#38913) 2026-09-17 15:22:02 +00:00
security feat(core): Serve a nonce-based Content-Security-Policy on n8n's HTML pages (#36749) 2026-08-27 16:39:04 +00:00
security-audit refactor: Apply outbound request protection by default (no-changelog) (#36841) 2026-08-26 10:52:56 +00:00
services feat(API): Create projects with source IDs and package metadata (#39218) 2026-09-22 16:41:52 +00:00
shutdown test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
sso.ee feat(API): Add public API endpoints for OIDC SSO configuration (#34313) 2026-07-28 10:58:55 +00:00
task-runners chore: Update eslint configuration (#38307) 2026-09-10 14:40:35 +03:00
telemetry fix(core): Attribute agent session metrics to users (no-changelog) (#37988) 2026-09-07 15:03:45 +00:00
tool-generation fix(core): Prevent unsupported waiting operations in agent tools (#34587) 2026-07-21 08:13:03 +00:00
types
user-management/email feat(core): Add email change confirmation flow (no-changelog) (#37950) 2026-09-14 10:10:00 +00:00
utils feat(core): Send maxN8nNodesApiVersion in community-nodes catalog requests (#38968) 2026-09-18 22:04:05 +00:00
webhooks refactor(core): Simplify chat response mode detection (no-changelog) (#39050) 2026-09-18 11:31:47 +00:00
workflows feat(core): Report crashed executions to OTel through an execution-crashed event (#38853) 2026-09-22 15:36:32 +00:00
abstract-server.ts feat(Slack Node): Add advanced HITL configuration for one-tap approval (#34123) 2026-07-15 12:38:46 +00:00
activation-errors.service.ts
active-executions.ts fix(core): Wait for detached sub-workflows before the worker stops its task runner (#37737) 2026-09-04 15:41:31 +00:00
active-workflow-manager.ts chore: Bundle 2.x (#37586) 2026-09-02 08:16:39 +03:00
command-registry.ts chore: Pin langchain core packages and surface issues better (#33621) 2026-07-06 08:43:54 +00:00
constants.ts feat(core): Add a timeout option to test webhook registrations (no-changelog) (#38625) 2026-09-15 09:32:27 +00:00
controller.registry.ts refactor(API): Give @Param a Zod schema to validate and document path parameters (#37952) 2026-09-08 15:35:57 +00:00
crash-journal.ts feat(core): Add push-based reload endpoint for custom node development (#36837) 2026-09-15 11:46:25 +00:00
credential-types.ts
credentials-helper.ts feat(core): Seal credential type writes behind the credentials repository (no-changelog) (#39106) 2026-09-22 14:42:34 +00:00
credentials-overwrites.ts fix(core): Resolve hidden OAuth endpoint fields from the credential type for all credentials (#38697) 2026-09-18 12:56:22 +00:00
external-hooks.ts feat: Wire up the email change confirmation flow (#38730) 2026-09-16 15:49:37 +00:00
generic-helpers.ts
index.ts
interfaces.ts fix(core): Attribute agent session metrics to users (no-changelog) (#37988) 2026-09-07 15:03:45 +00:00
license.ts refactor(core): Run license auto-renewal as a system task (no-changelog) (#37549) 2026-09-10 11:33:48 +00:00
load-nodes-and-credentials.ts feat(core): Add push-based reload endpoint for custom node development (#36837) 2026-09-15 11:46:25 +00:00
manual-execution.service.ts fix(core): Show clear error when running a tool node without an Agent (#30626) 2026-05-21 09:48:28 +00:00
node-types.ts fix: Resolve node source path before the translation lookup (#38281) 2026-09-10 08:43:22 +00:00
requests.ts feat(API): Migrate users write endpoints to the decorator pattern (#39120) 2026-09-22 14:38:03 +00:00
response-helper.ts feat(core): Serve a nonce-based Content-Security-Policy on n8n's HTML pages (#36749) 2026-08-27 16:39:04 +00:00
server.ts refactor(editor): Remove the AI Assistant template examples experiment (#38353) 2026-09-16 13:11:56 +00:00
utils.ts feat(core): Validate missing node types on package import (#34598) 2026-07-22 21:09:27 +00:00
utlity.types.ts
wait-tracker.ts fix(core): Sweep parents parked on a finished sub-execution (#37553) 2026-09-15 12:17:14 +00:00
workflow-execute-additional-data.ts chore: Update eslint configuration (#38307) 2026-09-10 14:40:35 +03:00
workflow-helpers.ts fix(core): Sweep parents parked on a finished sub-execution (#37553) 2026-09-15 12:17:14 +00:00
workflow-hook-context.service.ts feat(core): Expose workflow hook context to lifecycle external hooks (#34738) 2026-07-28 11:27:59 +00:00
workflow-runner.ts feat(core): Report crashed executions to OTel through an execution-crashed event (#38853) 2026-09-22 15:36:32 +00:00
zod-alias-support.ts