Commit 2c97a21
committed
fix: preserve existing runtimePayload fields when sendTurn upserts binding
sendTurn was constructing a fresh runtimePayload with only modelSelection,
activeTurnId, lastRuntimeEvent, and lastRuntimeEventAt—completely overwriting
persisted fields like cwd, model, and providerOptions set during startSession.
Now reads the existing binding's runtimePayload and spreads it as the base,
so fields persisted by startSession survive through sendTurn updates.1 parent c44d17f commit 2c97a21
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
371 | 378 | | |
372 | 379 | | |
373 | 380 | | |
374 | 381 | | |
375 | 382 | | |
376 | 383 | | |
| 384 | + | |
377 | 385 | | |
378 | 386 | | |
379 | 387 | | |
| |||
0 commit comments