Commit b5c37ee
committed
fix(sdk): include the errored user message in the error event's newMessages
The error-path onTurnComplete reported the errored user message in newUIMessages
but not in newMessages (the model-message delta), so a customer persisting the
model delta lost it. Derive newMessages from the same set as newUIMessages so
the two stay symmetric.1 parent 1916507 commit b5c37ee
2 files changed
Lines changed: 19 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7982 | 7982 | | |
7983 | 7983 | | |
7984 | 7984 | | |
7985 | | - | |
| 7985 | + | |
7986 | 7986 | | |
7987 | | - | |
7988 | | - | |
7989 | | - | |
7990 | | - | |
7991 | | - | |
7992 | | - | |
7993 | | - | |
7994 | | - | |
7995 | | - | |
| 7987 | + | |
| 7988 | + | |
| 7989 | + | |
7996 | 7990 | | |
7997 | | - | |
7998 | | - | |
7999 | 7991 | | |
8000 | | - | |
8001 | | - | |
| 7992 | + | |
| 7993 | + | |
| 7994 | + | |
| 7995 | + | |
| 7996 | + | |
| 7997 | + | |
| 7998 | + | |
| 7999 | + | |
| 8000 | + | |
| 8001 | + | |
| 8002 | + | |
| 8003 | + | |
8002 | 8004 | | |
8003 | 8005 | | |
8004 | 8006 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
0 commit comments