n8n/packages/cli/test/integration/database/repositories
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
..
agent-background-job.repository.test.ts feat(core): Handle a busy agent session on each surface (no-changelog) 2026-09-23 12:26:12 +02:00
agent-channel-status.repository.test.ts refactor(core): Share agent service helpers (no-changelog) 2026-09-22 21:24:53 +02:00
agent-execution.repository.test.ts feat(core): Handle a busy agent session on each surface (no-changelog) 2026-09-23 12:26:12 +02:00
agent-memory-entry-candidate.repository.test.ts feat(core): Add agent-directed episodic memory capture (#38134) 2026-09-11 05:03:28 +00:00
agent-session-lease.repository.test.ts feat(core): Add agent session lease service (no-changelog) 2026-09-23 11:56:34 +02:00
agent.repository.test.ts feat(core): Declare agents as a scheduled job owner (no-changelog) (#37848) 2026-09-07 15:28:55 +00:00
ai-preference.repository.test.ts feat(core): Add the foundations for assistant-written preferences (no-changelog) (#38829) 2026-09-17 11:53:09 +00:00
credentials.repository.test.ts perf(core): Stop loading project members when listing credentials (#39068) 2026-09-18 12:30:06 +00:00
execution.repository.test.ts feat(core): Report crashed executions to OTel through an execution-crashed event (#38853) 2026-09-22 15:36:32 +00:00
folder.repository.test.ts perf(core): Chunk package ID lookups (#36923) 2026-08-26 10:29:30 +00:00
poller-state.repository.test.ts refactor(core): Own scheduled jobs by owner data rather than by workflow node (no-changelog) (#37134) 2026-09-02 20:10:43 +00:00
project.repository.test.ts feat(core): Add the shared AI preference repository and resolver service (no-changelog) (#38174) 2026-09-10 09:59:30 +00:00
role.repository.test.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
scope.repository.test.ts feat(core): Support disabling sharing from personal space (#25259) 2026-02-04 19:19:05 +00:00
secrets-provider-connection.repository.test.ts refactor(core): Internalize cipher primitives (no-changelog) (#39148) 2026-09-22 08:08:02 +03:00
settings.repository.test.ts fix(core): Fix deadlock on Chat hub on Postgres with pool size of 1 (#25654) 2026-02-12 12:49:21 +00:00
workflow-dependency.repository.test.ts fix(core): Include sub-workflow tool calls in the workflow dependency index (#38062) 2026-09-16 07:34:49 +00:00
workflow-history.repository.test.ts refactor: Add DB error predicates and drop TypeORM imports from execution and credential services (#38940) 2026-09-22 05:30:05 +00:00
workflow-publication-outbox.repository.test.ts fix(core): Stop webhook routing locally before best-effort external teardown (#37241) 2026-08-31 11:55:28 +00:00
workflow-publish-history.repository.test.ts feat(editor): Show review status as a badge on the workflows list (#36476) 2026-08-18 16:26:52 +00:00
workflow.repository.test.ts fix(core): Include sub-workflow tool calls in the workflow dependency index (#38062) 2026-09-16 07:34:49 +00:00