Commit c4b8080
fix(realtime): refresh the error flag on a block upsert
`BATCH_ADD_BLOCKS` wrote `errorEnabled` on insert but left it out of the conflict
clause, so re-adding an existing block id kept whatever the row already held
while every sibling flag — enabled, advancedMode, triggerMode, retry, locked —
was refreshed from `excluded`. The client's value was silently discarded and the
old error-output state came back on the next load.
Mine: the insert side gained the field when the column landed and the conflict
set did not.
The other two block writers delete before inserting, so no stale row survives
them; this upsert was the only path that merged into one.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 1263662 commit c4b8080
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
1014 | 1015 | | |
1015 | 1016 | | |
1016 | 1017 | | |
| |||
0 commit comments