fix(ida): recover cleanup after worker sessions are reaped
Accept the supervisor absent-session response only for the owned session, then independently verify session and private-input absence before releasing the workspace. Keep failed inventory verification retryable without resending a completed close. Validation: 59 focused source tests passed, including live private-input peers, unavailable inventory, and mismatched session IDs. Real IDA engine behavior remains unverified. Fixes #1710.
This commit is contained in:
@@ -242,3 +242,8 @@ export const closeDatabaseSchema = z
|
||||
backend: z.enum(["worker", "gui"]),
|
||||
})
|
||||
.passthrough();
|
||||
/** Supervisor response when the requested worker was already reaped. */
|
||||
export const absentDatabaseCloseSchema = (sessionId: string) =>
|
||||
z
|
||||
.object({ error: z.literal(`Session not found: ${sessionId}`) })
|
||||
.passthrough();
|
||||
|
||||
Reference in New Issue
Block a user