fix issue continuing session after aborted

This commit is contained in:
Dax Raad
2025-06-14 20:24:50 -04:00
parent bfd4269d7d
commit 783faf554d

View File

@@ -446,7 +446,9 @@ export namespace Session {
content: x, content: x,
}), }),
), ),
...msgs.flatMap((msg): CoreMessage[] => { ...msgs
.filter((msg) => msg.parts.length > 0)
.flatMap((msg): CoreMessage[] => {
switch (msg.role) { switch (msg.role) {
case "user": case "user":
return [ return [