Lost batch-mutation responses cannot repair persisted workspace references: needs server-side outcome reconciliation
Los mantenedores suelen responder en 5 días
@lstein ya está trabajando en esto.
Desde el 24/8/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Summary
When a batch image mutation's response is lost to a transport-shaped failure (timeout, network drop, parsing error, 5xx), the client cannot know which names committed. Since #9394 it reports those names as failed while invalidating their caches as if the chunk had landed, so RTK-cached views reconcile on refetch — but persisted workspace references do not: handleDeletions strips deleted images out of canvas layers, nodes, and reference images only off a deleted_images payload, and a lost response has none. Effect: a delete that committed server-side can leave persisted slices pointing at gone images until the user notices 404s.
Why the client cannot reconcile this alone
The obvious client-side move — probe the failing chunk's names via POST /api/v1/images/images_by_names and treat absent names as confirmed-deleted — is unsafe with that route's current semantics: it answers per-name authorization failures and per-name storage errors with a silent skip (invokeai/app/api/routers/images.py, get_images_by_names). A locked database therefore returns 200 [], which would "confirm" every probed name as deleted and mass-prune workspace references for images that all still exist. Absence from that response is not evidence of deletion.
Proposed fix (server-side)
Either of:
- Tri-state existence reconciliation: a route taking
image_namesand answering per nameexisting/gone/undecided, wheregoneis asserted only on a positiveImageRecordNotFoundExceptionread, storage errors answerundecided, and names the caller may not read answerundecided(no information leak). The client then movesgonenames intodeleted_images(running the normal deletion cleanup), keepsexistingnames failed (retry works), and leavesundecidednames failed without cleanup. A fully unavailable database yields all-undecidedand prunes nothing. - Per-operation ids on the batch mutations plus an outcome endpoint, as suggested in review — heavier, but also covers non-delete mutations and retry dedup.
Context
Raised by @JPPhoto in review of #9394 (round of 2026-08-23: "Lost mutation responses leave stale local references... Recovery: add mutation ids and server-side outcome reconciliation"). #9394 ships the cache-invalidation half; this issue tracks the workspace-reference half, which needs a server-side source of truth. Related: #9531 (bulk-download replay after re-auth).
- Lenguaje dominante
- Python
- Estrellas
- 28.3k
- Forks
- 3k
- Merge medio
- 6 d 22 h
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de invoke-ai/InvokeAI
-
[enhancement]: UpscalingAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
invoke-ai/InvokeAI#9608 · 2 comentarios ·
Los mantenedores suelen responder en 5 días
-
[bug]: Align Graph.add_edge and validate_self collector type validationPosiblemente ocupada @JPPhoto la tomó hace 4 días. Abiertobug
invoke-ai/InvokeAI#9610 · 1 asignado ·
Los mantenedores suelen responder en 5 días
-
[bug]: Nested Iterate execution mixes values across outer iterationsPosiblemente ocupada @JPPhoto la tomó hace 4 días. Abiertobug
invoke-ai/InvokeAI#9609 · 1 asignado ·
Los mantenedores suelen responder en 5 días
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 5 días
-
[bug]: 6.14.1 regression with `pytorch_cuda_alloc_conf: backend:cudaMallocAsync` — Z-Image bf16 + LoRA takes ~30 min whenever the transformer is (re)loaded (VRAM overflows into Windows shared memory)Posiblemente ocupada @lstein la tomó hace 5 días. Abierto
invoke-ai/InvokeAI#9597 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 5 días
Todos los issues de invoke-ai/InvokeAI
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
letsencrypt/cp-cps#353 ·
-
Marble Madness II is missingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
PedestrianDynamics/pyFDS-Evac#394 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DOI-USGS/pywatershed#421 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
python-pillow/Pillow#10087 · 1 comentario ·
Los mantenedores suelen responder en 1 día