mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 10:44:21 +01:00
fix issue continuing session after aborted
This commit is contained in:
@@ -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 [
|
||||||
|
|||||||
Reference in New Issue
Block a user