mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:34:32 +00:00
refactor(sandbox): auto-recreate browser container on config changes (#16254)
This commit is contained in:
committed by
GitHub
parent
31791233d6
commit
1f1fc095a0
@@ -24,6 +24,7 @@ export type SandboxBrowserRegistryEntry = {
|
||||
createdAtMs: number;
|
||||
lastUsedAtMs: number;
|
||||
image: string;
|
||||
configHash?: string;
|
||||
cdpPort: number;
|
||||
noVncPort?: number;
|
||||
};
|
||||
@@ -102,6 +103,7 @@ export async function updateBrowserRegistry(entry: SandboxBrowserRegistryEntry)
|
||||
...entry,
|
||||
createdAtMs: existing?.createdAtMs ?? entry.createdAtMs,
|
||||
image: existing?.image ?? entry.image,
|
||||
configHash: entry.configHash ?? existing?.configHash,
|
||||
});
|
||||
await writeBrowserRegistry({ entries: next });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user