Commit da9956f
committed
fix: take snapshot before stream starts to fix diff tracking for some providers
Some providers emit the start-step event after tool execution has already
begun, causing step-start and step-finish to have identical snapshots.
This results in empty diffs and missing Modified Files in the UI.
By taking the initial snapshot before the stream starts, we ensure we
always capture the true 'before' state regardless of provider timing.1 parent 0eaec2a commit da9956f
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
232 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
| |||
0 commit comments