Commit f8c982b
Fix help response thread overwrites — fetch current note from DB before appending
Replies now read the existing response_note from Supabase before appending
the new reply, avoiding race conditions where the local reactive state
could be stale. The append logic moved from the UI to the store's respond()
function with an appendToExisting flag.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c48762f commit f8c982b
2 files changed
+20
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | 439 | | |
446 | | - | |
| 440 | + | |
447 | 441 | | |
448 | 442 | | |
| 443 | + | |
449 | 444 | | |
450 | 445 | | |
451 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
| 1064 | + | |
1065 | 1065 | | |
1066 | 1066 | | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1067 | 1082 | | |
1068 | 1083 | | |
1069 | 1084 | | |
1070 | | - | |
| 1085 | + | |
1071 | 1086 | | |
1072 | 1087 | | |
1073 | 1088 | | |
| |||
1083 | 1098 | | |
1084 | 1099 | | |
1085 | 1100 | | |
1086 | | - | |
| 1101 | + | |
1087 | 1102 | | |
1088 | 1103 | | |
1089 | 1104 | | |
| |||
0 commit comments