fix(ida): retain private input after ambiguous open (#1845)

fix(ida): retain private input after unverified open
This commit is contained in:
jhuang-tw
2026-10-13 20:58:51 +08:00
committed by GitHub
parent 2a61deafc6
commit 4ea24f9767
4 changed files with 103 additions and 18 deletions
+8
View File
@@ -218,6 +218,14 @@ export const openDatabaseSchema = z
.passthrough(),
})
.passthrough();
/** Only an explicit completed rejection preserves legacy no-worker cleanup. */
export const rejectedOpenDatabaseSchema = z
.object({
error: z.string().min(1),
success: z.never().optional(),
})
.passthrough();
export const databaseListSchema = z
.object({
sessions: z.array(