Skip to content

Docs: put a sandbox to sleep now; idle sandboxes are asleep, not paused (D6.7) - #39

Merged
ahokik merged 1 commit into
mainfrom
sandbox-sleep
Oct 20, 2026
Merged

ahokik merged 1 commit into
mainfrom
sandbox-sleep

Conversation

@ahokik

@ahokik ahokik commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Docs for D6.7, put a session's sandbox to sleep now. Design: https://github.com/okikorg/orca-design/blob/main/designs/sandbox-sleep.md (orca-design #123). The word is "sleep" (S1); every sleep, whatever started it, says "asleep" (A1).

Merge after the server PR is deployed and the CLI 1.5.0 is released. Do not merge before: the routes, orca sessions sleep and sleep_session do not exist until then.

Pages changed

  • guides/environments.mdx: "Idle sandboxes are paused" becomes "When a sandbox sleeps" (what comes back after waking, what does not), plus a new "Put a sandbox to sleep now" section (CLI, dashboard, MCP tool, HTTP).
  • guides/sessions.mdx: one paragraph and a link.
  • turn-lifecycle.mdx: the disconnected and pending rows and the Note say asleep, waking up.
  • dashboard/agents-and-sessions.mdx: "Put a sandbox to sleep" beside "Delete".
  • cli/commands.mdx: orca sessions sleep <id> [--no-wait] [--json] and a short section; sessions get shows the sandbox.
  • cli/mcp.mdx: sleep_session in the Sessions row, and what it does (waits up to 60 seconds).
  • reference/overview.mdx: GET /api/sessions/{session_id}/sandbox and POST /api/sessions/{session_id}/sandbox/sleep in "Orca extensions", then a "Session sandbox" section: the session.sandbox object with last_sleep.reason, the POST status table, and a curl example.
  • plans.mdx, start-here.mdx, wallet.mdx: "paused" becomes "goes to sleep" / "asleep" / "wakes".
  • Also from a repo-wide grep: troubleshooting.mdx (a running sandbox goes to sleep when credit runs low) and kits/cram-coach.mdx ("until it goes to sleep").
  • scripts/check_docs.py: the idle-time number check also catches "sleep(s) after N minutes", since "paused after" no longer appears.

Left as they are: "paid work is paused" and paid_work_paused (wallet, plans, dashboard/wallet-and-usage, cli/commands), the paid-work gate and an API field, not a sandbox's state; "pauses the turn" for function tools and the out-of-credit turn notice (concepts, glossary, guides/function-tools, dashboard/agents-and-sessions); "resumes the conversation/session" (build-with-the-api, cli/commands, guides/sessions "Resume later"); everything in orcacode/.

No plan number and no snapshot size limit is typed: idle time links the pricing page, and an oversized workspace is "too large to save".

Rebased on main (docs #38, D6.8 limits)

Rebased onto d6509b1. Both sides kept in wallet.mdx: the storage limit from #38, "goes to sleep" from this PR. The "paused" and "resumes" wording that #38 added for sandboxes in plans.mdx and troubleshooting.mdx now says "asleep" and "wakes". The sandboxes at once paragraph in plans.mdx no longer quotes the 429 message with its numbers (the check above caught "sleep after 10 minutes"); it describes the message and links putting a sandbox to sleep now, which frees its place. The troubleshooting line for rate_limit_exceeded adds orca sessions sleep <id>.

Checks

$ ORCA_SERVER_DIR=<orca-agent-server checkout> npm run check
Public docs checks passed: 76 pages, 58 inventoried routes, navigation, local links, Python syntax, client pins, token price wording, and plan facts.

$ npx mint validate
success build validation passed

$ npx mint broken-links
success no broken links found

$ npx mint broken-links --check-anchors
success no broken links found

The D6.7 PRs

🤖 Generated with Claude Code

…ed (D6.7)

- guides/environments: "Idle sandboxes are paused" becomes "When a sandbox
  sleeps" (what comes back, what does not) and a new "Put a sandbox to sleep
  now" section.
- reference/overview: two rows in Orca extensions and a "Session sandbox"
  section with the session.sandbox object, last_sleep.reason, the POST
  statuses and a curl example.
- cli/commands (sessions sleep, --no-wait, --json; sessions get shows the
  sandbox), cli/mcp (sleep_session), dashboard/agents-and-sessions (Put a
  sandbox to sleep), guides/sessions (one paragraph).
- "paused" and "resumes" for a sandbox's state become asleep, goes to sleep
  and wakes in turn-lifecycle, plans, start-here, wallet, troubleshooting
  and kits/cram-coach.
- check_docs.py: the idle-time number check also catches "sleep after N
  minutes".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ahokik
ahokik merged commit 75671b3 into main Oct 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant