fix(tui): fork messages with agent attachments (#36338)
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { createMemo, createSignal, onMount, Show } from "solid-js"
|
import { createMemo, createSignal, onMount, Show } from "solid-js"
|
||||||
|
import { unwrap } from "solid-js/store"
|
||||||
import { useData } from "../../context/data"
|
import { useData } from "../../context/data"
|
||||||
import { useRoute } from "../../context/route"
|
import { useRoute } from "../../context/route"
|
||||||
import { useSDK } from "../../context/sdk"
|
import { useSDK } from "../../context/sdk"
|
||||||
@@ -38,7 +39,7 @@ export function DialogFork(props: { sessionID: string; messageID?: string; onMov
|
|||||||
description: file.description,
|
description: file.description,
|
||||||
mention: file.mention,
|
mention: file.mention,
|
||||||
})),
|
})),
|
||||||
agents: structuredClone(message.agents ?? []),
|
agents: structuredClone(unwrap(message.agents ?? [])),
|
||||||
pasted: [],
|
pasted: [],
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user