Mike0021 commited on
Commit
8192cbe
·
verified ·
1 Parent(s): 98a5dfd

Reconnect through healthy bridge route

Browse files
src/lib/server/agent/WorkspaceProvisioner.ts CHANGED
@@ -484,13 +484,11 @@ export class WorkspaceProvisioner {
484
  liveSandboxExpectation(options.workspace.sandbox),
485
  options.onProgress
486
  );
 
487
  }
488
- throw new WorkspaceProvisioningError(
489
- state === "terminal"
490
- ? "HF Sandbox has stopped"
491
- : "HF Sandbox routing is temporarily unavailable; retry shortly",
492
- "sandbox_unavailable"
493
- );
494
  }
495
 
496
  const bridgeAvailable = await this.probeReconnectPath(async () => {
 
484
  liveSandboxExpectation(options.workspace.sandbox),
485
  options.onProgress
486
  );
487
+ throw new WorkspaceProvisioningError("HF Sandbox has stopped", "sandbox_unavailable");
488
  }
489
+ // The root sbx-server health route can lag at an HF edge while an
490
+ // already-exposed inner port is healthy. For a RUNNING Job, verify the
491
+ // bridge we actually need before surfacing a transient reconnect error.
 
 
 
492
  }
493
 
494
  const bridgeAvailable = await this.probeReconnectPath(async () => {