Repository navigation
Commit 90fa675
fix(opencode): keep the text already shown when the snapshot is empty
OpenCode 2 saves a text or reasoning block only when the block ends, so
a reconnect backfill of a reply still streaming reads an empty part.
Keep the live text unless the snapshot extends it, and pin the test to
that shape.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 2581481 commit 90fa675
2 files changed
Lines changed: 26 additions & 13 deletions
File tree
- apps/server/src/orchestration-v2/Adapters
- packages/provider-opencode/src/server/v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2205 | 2205 | | |
2206 | 2206 | | |
2207 | 2207 | | |
2208 | | - | |
| 2208 | + | |
2209 | 2209 | | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
2210 | 2217 | | |
2211 | 2218 | | |
2212 | 2219 | | |
| 2220 | + | |
| 2221 | + | |
2213 | 2222 | | |
2214 | | - | |
| 2223 | + | |
2215 | 2224 | | |
2216 | 2225 | | |
2217 | 2226 | | |
2218 | | - | |
2219 | | - | |
2220 | | - | |
2221 | | - | |
2222 | | - | |
2223 | | - | |
| 2227 | + | |
2224 | 2228 | | |
2225 | 2229 | | |
2226 | 2230 | | |
| |||
2236 | 2240 | | |
2237 | 2241 | | |
2238 | 2242 | | |
2239 | | - | |
2240 | | - | |
2241 | | - | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
2242 | 2247 | | |
2243 | 2248 | | |
2244 | 2249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2565 | 2565 | | |
2566 | 2566 | | |
2567 | 2567 | | |
2568 | | - | |
| 2568 | + | |
| 2569 | + | |
2569 | 2570 | | |
2570 | 2571 | | |
2571 | | - | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
2572 | 2580 | | |
2573 | 2581 | | |
2574 | 2582 | | |
| |||
0 commit comments