From 1e872ead2d02737ef0b7b5554e694b74802cd187 Mon Sep 17 00:00:00 2001 From: Adam Weidman Date: Sun, 8 Mar 2026 23:40:17 -0400 Subject: [PATCH] refactor: name non-process execution ID seed constant --- packages/core/src/services/executionLifecycleService.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/services/executionLifecycleService.ts b/packages/core/src/services/executionLifecycleService.ts index f49f7f4bc7..ae71afd1aa 100644 --- a/packages/core/src/services/executionLifecycleService.ts +++ b/packages/core/src/services/executionLifecycleService.ts @@ -86,12 +86,14 @@ interface ExternalExecutionState extends ManagedExecutionBase { type ManagedExecutionState = VirtualExecutionState | ExternalExecutionState; +const NON_PROCESS_EXECUTION_ID_START = 2_000_000_000; + /** * Central owner for execution backgrounding lifecycle across shell and tools. */ export class ExecutionLifecycleService { private static readonly EXIT_INFO_TTL_MS = 5 * 60 * 1000; - private static nextExecutionId = 2_000_000_000; + private static nextExecutionId = NON_PROCESS_EXECUTION_ID_START; private static activeExecutions = new Map(); private static activeResolvers = new Map< @@ -162,7 +164,7 @@ export class ExecutionLifecycleService { this.activeResolvers.clear(); this.activeListeners.clear(); this.exitedExecutionInfo.clear(); - this.nextExecutionId = 2_000_000_000; + this.nextExecutionId = NON_PROCESS_EXECUTION_ID_START; } static registerExecution(