Skip to content

Commit c527eb4

Browse files
committed
ids-counter
1 parent a674880 commit c527eb4

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agent-swarm-kit",
3-
"version": "1.1.93",
3+
"version": "1.1.94",
44
"description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
55
"author": {
66
"name": "Petr Tripolsky",

src/lib/services/validation/ExecutionValidationService.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ export class ExecutionValidationService {
7373

7474
const swarmName = this.sessionValidationService.getSwarm(clientId);
7575

76-
const { size } = this.getExecutionCount(clientId, swarmName).add(
76+
const executionSet = this.getExecutionCount(clientId, swarmName).add(
7777
executionId
7878
);
7979

80-
if (size >= GLOBAL_CONFIG.CC_MAX_NESTED_EXECUTIONS) {
81-
const msg = `agent-swarm recursive execution prevented for clientId=${clientId} swarmName=${swarmName} executionId=${executionId} size=${size}`;
80+
if (executionSet.size >= GLOBAL_CONFIG.CC_MAX_NESTED_EXECUTIONS) {
81+
const ids = [...executionSet].join(",");
82+
const msg = `agent-swarm recursive execution prevented for clientId=${clientId} swarmName=${swarmName} executionId=${executionId} size=${executionSet.size} ids=${ids}`;
8283
console.error(msg);
8384
throw new Error(msg);
8485
}

0 commit comments

Comments
 (0)