Commit fafcd59
fix(client): publish synthetic must-refetch control message on 409
The previous commit removed the raw 409 body publish entirely, but
Shape relies on the must-refetch control message to clear its
accumulated data and trigger snapshot re-execution. Instead of
publishing the raw response body (which could contain stale data rows),
publish a synthetic control-only message.
Also: fix flaky SSE fallback test (remove brittle upper bound on SSE
request count), refine error-path-publish rule to allow static array
literal arguments (synthetic control messages) while still catching
dynamic publishes from error data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent df690e9 commit fafcd59
File tree
4 files changed
+31
-8
lines changed- packages/typescript-client
- bin/lib
- src
- test
4 files changed
+31
-8
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1022 | 1022 | | |
1023 | 1023 | | |
1024 | 1024 | | |
| 1025 | + | |
1025 | 1026 | | |
1026 | 1027 | | |
1027 | 1028 | | |
| |||
1041 | 1042 | | |
1042 | 1043 | | |
1043 | 1044 | | |
| 1045 | + | |
1044 | 1046 | | |
1045 | 1047 | | |
1046 | 1048 | | |
| |||
1058 | 1060 | | |
1059 | 1061 | | |
1060 | 1062 | | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1061 | 1075 | | |
1062 | 1076 | | |
1063 | 1077 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
923 | 929 | | |
924 | 930 | | |
925 | 931 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2987 | 2987 | | |
2988 | 2988 | | |
2989 | 2989 | | |
2990 | | - | |
2991 | | - | |
2992 | | - | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
2993 | 2993 | | |
2994 | | - | |
2995 | 2994 | | |
2996 | 2995 | | |
2997 | 2996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
602 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
603 | 607 | | |
604 | 608 | | |
605 | 609 | | |
| |||
0 commit comments