Skip to content

Commit 3f99b55

Browse files
committed
fix: remove duplicate isSandboxProviderWorkerUnavailableFailureMessage
The function was declared twice in heartbeat.ts due to a merge artifact. Removes the first copy, keeping the one with the full comment block.
1 parent 0b05998 commit 3f99b55

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

server/src/services/heartbeat.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -807,15 +807,6 @@ function isSpawnLikeFailureMessage(value: unknown) {
807807
//
808808
// This is anchored on both "is installed via plugin" and "but its worker is
809809
// not running" so it does not also match plugin-environment-driver.ts's
810-
// unrelated, permanent "provider not installed" message ('Sandbox provider
811-
// "X" is not installed or its plugin worker is not running.'), which
812-
// coincidentally contains the same "worker is not running" substring but
813-
// describes a terminal condition that must not be retried.
814-
function isSandboxProviderWorkerUnavailableFailureMessage(value: unknown) {
815-
if (typeof value !== "string") return false;
816-
return /sandbox provider .* is installed via plugin .* but its worker is not running/i.test(value);
817-
}
818-
819810
// A permanent, non-retryable setup failure: the agent's adapter is not runnable in
820811
// this environment (e.g. a legacy "process" agent in a sandbox-only cloud company,
821812
// which fails to acquire the k8s lease with "Adapter ... is not in the configured

0 commit comments

Comments
 (0)