n8n/packages/cli/test
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
..
integration feat(core): Handle a busy agent session on each surface (no-changelog) 2026-09-23 12:26:12 +02:00
migration refactor(core): Enforce persistence boundaries in code (no-changelog) (#39170) 2026-09-22 13:14:00 +03:00
shared refactor(core): Internalize cipher primitives (no-changelog) (#39148) 2026-09-22 08:08:02 +03:00
unit fix(core): Handle errors from triggered and polled workflow executions (#35689) 2026-08-06 13:07:01 +00:00
extend-expect.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
global-setup.ts chore: Remove references to Jest (#33282) 2026-07-01 09:03:25 +00:00
setup-encryption-key.ts fix(core): Register the encryption key provider before any encrypt or decrypt (no-changelog) (#37972) 2026-09-07 17:04:39 +00:00
setup-mocks.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
setup-test-folder.ts chore: Initial V2 changes (#22553) 2025-12-01 20:44:59 +02:00
setup-testcontainers.ts feat(core): Run the instance-registry stale-member cleanup as a durable system task (no-changelog) (#38621) 2026-09-17 13:57:24 +00:00