[BUG] Realtime confirms a block or variable edit before it is stored, so a failed write loses it
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend, distributed-systems
Línea de trabajo
Start with apps/realtime/src/handlers/subblocks.ts and variables.ts, tracing how a flush handles pending edits, confirmations, failures, and actor IDs. Reproduce the overlap with two tabs and a failed write, then check that each edit settles only after its own write and collaborators see the stored value with the correct audit actor.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When an edit to a subblock or variable field arrives while the previous edit of that field is being written, it joins that write's operation list. The earlier write confirms it before its value is stored. If its own write then fails, the client has already dropped the operation and ignores the failure, so the edit is lost while the UI still shows it. In the same overlap the first editor can be left showing a stale value, a later edit can be dropped without an answer, and the variable audit log can name the wrong user.
To Reproduce
- Open the same workflow in two tabs or as two users on the same realtime pod.
- Edit the same field in both, with B's edit arriving while A's write is in progress (a slow database widens the window).
- Make B's write fail, for example by locking the block.
- B sees the edit as saved, but it is not stored.
Expected behavior
Each edit is confirmed or failed only after its own write settles, every collaborator ends with the stored value, no edit is silently dropped, and the audit actor is the user who made the change.
Additional context
apps/realtime/src/handlers/subblocks.ts and variables.ts: a flush reads pending.latest when it starts but reads opToSocket and actorId at the end, and deletes the map entry after a newer edit may be using it.
- Lenguaje dominante
- TypeScript
- Estrellas
- 29.8k
- Forks
- 3.9k
- Merge medio
- 1 h 43 min
- PR fusionados (30 d)
- 937
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 simstudioai/sim
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
simstudioai/sim#10710 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
simstudioai/sim#10708 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
simstudioai/sim#10706 ·
Los mantenedores suelen responder en 1 día
-
[BUG] Spotify block: Transfer Playback and Set Shuffle fail with a missing required parameterAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
simstudioai/sim#10704 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
simstudioai/sim#10702 ·
Los mantenedores suelen responder en 1 día
Todos los issues de simstudioai/sim
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
melgarafael/DeskcommCRM#5614 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
slackapi/slack-health-score#253 ·
Los mantenedores suelen responder en 1 día
-
feature needs triage site
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
owid/owid-grapher#8019 ·
Los mantenedores suelen responder en 1 día
-
via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug:new
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
callstackincubator/simlock#2088 ·
Los mantenedores suelen responder en 1 día