Commit f6f2b8f
committed
fix: persist mock stream messages to history on completion
- Call HistoryService.updateHistory when stream-end fires in mock mode
- Mirrors real StreamManager behavior to persist completed messages
- Prevents empty assistant entries in chat.jsonl after mock runs
- Addresses Codex review comment about mock persistence
Change-Id: I4f4cd7fe27355a561cd4e2193a4045424918dd1e
Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent 257b36e commit f6f2b8f
1 file changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
219 | 235 | | |
220 | 236 | | |
221 | 237 | | |
| |||
0 commit comments