mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:24:32 +00:00
feat: auto-recreate sandbox containers on config change
This commit is contained in:
@@ -12,6 +12,7 @@ export type SandboxRegistryEntry = {
|
||||
createdAtMs: number;
|
||||
lastUsedAtMs: number;
|
||||
image: string;
|
||||
configHash?: string;
|
||||
};
|
||||
|
||||
type SandboxRegistry = {
|
||||
@@ -56,6 +57,7 @@ export async function updateRegistry(entry: SandboxRegistryEntry) {
|
||||
...entry,
|
||||
createdAtMs: existing?.createdAtMs ?? entry.createdAtMs,
|
||||
image: existing?.image ?? entry.image,
|
||||
configHash: entry.configHash ?? existing?.configHash,
|
||||
});
|
||||
await writeRegistry({ entries: next });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user