@@ -75,9 +75,11 @@ openclaw sandbox recreate --all --force # Skip confirmation
|
75 | 75 | - `--browser`: Only recreate browser containers |
76 | 76 | - `--force`: Skip confirmation prompt |
77 | 77 | |
78 | | -**Important:** Runtimes are automatically recreated when the agent is next used. |
| 78 | +<Note> |
| 79 | +Runtimes are automatically recreated when the agent is next used. |
| 80 | +</Note> |
79 | 81 | |
80 | | -## Use Cases |
| 82 | +## Use cases |
81 | 83 | |
82 | 84 | ### After updating a Docker image |
83 | 85 | |
@@ -148,18 +150,19 @@ openclaw sandbox recreate --agent family
|
148 | 150 | openclaw sandbox recreate --agent alfred |
149 | 151 | ``` |
150 | 152 | |
151 | | -## Why is this needed? |
| 153 | +## Why this is needed |
152 | 154 | |
153 | | -**Problem:** When you update sandbox configuration: |
| 155 | +When you update sandbox configuration: |
154 | 156 | |
155 | | -- Existing runtimes continue running with old settings |
156 | | -- Runtimes are only pruned after 24h of inactivity |
157 | | -- Regularly-used agents keep old runtimes alive indefinitely |
| 157 | +- Existing runtimes continue running with old settings. |
| 158 | +- Runtimes are only pruned after 24h of inactivity. |
| 159 | +- Regularly-used agents keep old runtimes alive indefinitely. |
158 | 160 | |
159 | | -**Solution:** Use `openclaw sandbox recreate` to force removal of old runtimes. They'll be recreated automatically with current settings when next needed. |
| 161 | +Use `openclaw sandbox recreate` to force removal of old runtimes. They are recreated automatically with current settings when next needed. |
160 | 162 | |
161 | | -Tip: prefer `openclaw sandbox recreate` over manual backend-specific cleanup. |
162 | | -It uses the Gateway’s runtime registry and avoids mismatches when scope/session keys change. |
| 163 | +<Tip> |
| 164 | +Prefer `openclaw sandbox recreate` over manual backend-specific cleanup. It uses the Gateway's runtime registry and avoids mismatches when scope or session keys change. |
| 165 | +</Tip> |
163 | 166 | |
164 | 167 | ## Configuration |
165 | 168 | |
@@ -193,4 +196,4 @@ Sandbox settings live in `~/.openclaw/openclaw.json` under `agents.defaults.sand
|
193 | 196 | - [CLI reference](/cli) |
194 | 197 | - [Sandboxing](/gateway/sandboxing) |
195 | 198 | - [Agent workspace](/concepts/agent-workspace) |
196 | | -- [Doctor](/gateway/doctor) — checks sandbox setup |
| 199 | +- [Doctor](/gateway/doctor): checks sandbox setup. |