SIGN IN SIGN UP

fix(deno): stabilize reconnect integration test (#567)

## Summary

Stabilizes a flaky Deno provider integration test that intermittently
failed in CI when reconnecting to an existing sandbox immediately after
closing the original connection. The reconnect path can briefly return a
transient `404 DEPLOYMENT_NOT_FOUND`, causing otherwise healthy runs to
fail. This change adds bounded retry/backoff during reconnect and
ensures the reconnected sandbox handle is explicitly closed.

## Changes

### `@langchain/deno`

- Updated reconnect integration test in
`libs/providers/deno/src/sandbox.int.test.ts` to retry
`DenoSandbox.fromId(sandboxId)` with `withRetry` (`5` attempts, `1s`
delay).
- Added a short comment documenting the transient reconnect window after
WebSocket close.
- Added explicit cleanup for the reconnected sandbox to avoid leaking
extra connections during the test run.
H
Hunter Lovell committed
70521d2e3018a346614d7ef43a0e6b753f756e09
Parent: 9c666ba
Committed by GitHub <noreply@github.com> on 6/1/2026, 7:54:30 PM