Commit f4c4d3c
authored
🤖 fix: resolve race conditions in stream error handling and test flakiness (#880)
## Summary
- Make `debugTriggerStreamError` async and await `processingPromise` to
ensure error handling completes before returning (eliminates duplicate
error-handling logic)
- Wait for in-flight partial writes before writing error state to
prevent inconsistent `partial.json`
- Pass `toolPolicy` on resume to match original message (tools disabled
→ text output)
- Add delay after resume to let history update complete before reading
_Generated with `mux`_1 parent 1974be6 commit f4c4d3c
File tree
4 files changed
+39
-13
lines changed- src/node/services
- tests/integration
4 files changed
+39
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1270 | 1270 | | |
1271 | 1271 | | |
1272 | 1272 | | |
1273 | | - | |
| 1273 | + | |
1274 | 1274 | | |
1275 | 1275 | | |
1276 | 1276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1177 | 1177 | | |
1178 | 1178 | | |
1179 | 1179 | | |
1180 | | - | |
1181 | | - | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1182 | 1188 | | |
1183 | 1189 | | |
1184 | 1190 | | |
| |||
1685 | 1691 | | |
1686 | 1692 | | |
1687 | 1693 | | |
1688 | | - | |
| 1694 | + | |
| 1695 | + | |
1689 | 1696 | | |
1690 | | - | |
| 1697 | + | |
1691 | 1698 | | |
1692 | 1699 | | |
1693 | 1700 | | |
| |||
1699 | 1706 | | |
1700 | 1707 | | |
1701 | 1708 | | |
1702 | | - | |
| 1709 | + | |
1703 | 1710 | | |
1704 | 1711 | | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
1705 | 1715 | | |
1706 | 1716 | | |
1707 | 1717 | | |
| |||
1710 | 1720 | | |
1711 | 1721 | | |
1712 | 1722 | | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
1713 | 1727 | | |
1714 | 1728 | | |
1715 | 1729 | | |
| |||
1724 | 1738 | | |
1725 | 1739 | | |
1726 | 1740 | | |
1727 | | - | |
| 1741 | + | |
1728 | 1742 | | |
1729 | 1743 | | |
1730 | 1744 | | |
| |||
1735 | 1749 | | |
1736 | 1750 | | |
1737 | 1751 | | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1738 | 1755 | | |
1739 | 1756 | | |
1740 | 1757 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
102 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
265 | 273 | | |
266 | 274 | | |
267 | 275 | | |
268 | 276 | | |
| 277 | + | |
269 | 278 | | |
270 | 279 | | |
271 | 280 | | |
| |||
0 commit comments