From ed17a5e92a750c50debfe707c9849e304cc1e86c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 1 Jan 2026 10:09:17 +0000 Subject: [PATCH] Document sleepAfter bug fix in v0.2.17 Add note to sandbox-options.mdx explaining that the sleepAfter option passed to getSandbox() now works correctly as documented. Prior to v0.2.17, this option was ignored due to a timing issue where the Container constructor called renewActivityTimeout() with the default before the RPC call to setSleepAfter() could run. Related: cloudflare/sandbox-sdk#323 --- src/content/docs/sandbox/configuration/sandbox-options.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/docs/sandbox/configuration/sandbox-options.mdx b/src/content/docs/sandbox/configuration/sandbox-options.mdx index 2b9db51b990ee0..bf730b74022c67 100644 --- a/src/content/docs/sandbox/configuration/sandbox-options.mdx +++ b/src/content/docs/sandbox/configuration/sandbox-options.mdx @@ -54,6 +54,10 @@ When `keepAlive: true` is set, containers will not automatically timeout. They m Duration of inactivity before the sandbox automatically sleeps. Accepts duration strings (`"30s"`, `"5m"`, `"1h"`) or numbers (seconds). +:::note[Bug fix in v0.2.17] +Prior to v0.2.17, the `sleepAfter` option passed to `getSandbox()` was ignored due to a timing issue. The option is now properly applied when creating sandbox instances. +::: + ```ts // Sleep after 30 seconds of inactivity