mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 02:34:21 +01:00
fix issue continuing session after aborted
This commit is contained in:
@@ -446,7 +446,9 @@ export namespace Session {
|
||||
content: x,
|
||||
}),
|
||||
),
|
||||
...msgs.flatMap((msg): CoreMessage[] => {
|
||||
...msgs
|
||||
.filter((msg) => msg.parts.length > 0)
|
||||
.flatMap((msg): CoreMessage[] => {
|
||||
switch (msg.role) {
|
||||
case "user":
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user