fix(sandbox): harden sharded registry storage · openclaw/openclaw@1cebe32
steipete
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -53,10 +53,5 @@ export const SANDBOX_AGENT_WORKSPACE_MOUNT = "/agent";
|
53 | 53 | export const SANDBOX_STATE_DIR = path.join(STATE_DIR, "sandbox"); |
54 | 54 | export const SANDBOX_REGISTRY_PATH = path.join(SANDBOX_STATE_DIR, "containers.json"); |
55 | 55 | export const SANDBOX_BROWSER_REGISTRY_PATH = path.join(SANDBOX_STATE_DIR, "browsers.json"); |
56 | | - |
57 | | -// Per-entry sharded directories — each container/browser gets its own JSON |
58 | | -// file under these dirs, eliminating cross-session lock contention on the |
59 | | -// monolithic registry files. The legacy *.json files above are migrated |
60 | | -// into these dirs on first read and then removed. |
61 | 56 | export const SANDBOX_CONTAINERS_DIR = path.join(SANDBOX_STATE_DIR, "containers"); |
62 | 57 | export const SANDBOX_BROWSERS_DIR = path.join(SANDBOX_STATE_DIR, "browsers"); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。