refactor(sandbox): auto-recreate browser container on config changes (#16254)

This commit is contained in:
Peter Steinberger
2026-02-14 15:47:59 +01:00
committed by GitHub
parent 31791233d6
commit 1f1fc095a0
5 changed files with 131 additions and 28 deletions

View File

@@ -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 });
}