fix(tui): fork messages with agent attachments (#36338)

This commit is contained in:
Dax 2026-07-10 21:23:46 -04:00 committed by GitHub
commit 59202356fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
import { createMemo, createSignal, onMount, Show } from "solid-js"
import { unwrap } from "solid-js/store"
import { useData } from "../../context/data"
import { useRoute } from "../../context/route"
import { useSDK } from "../../context/sdk"
@ -38,7 +39,7 @@ export function DialogFork(props: { sessionID: string; messageID?: string; onMov
description: file.description,
mention: file.mention,
})),
agents: structuredClone(message.agents ?? []),
agents: structuredClone(unwrap(message.agents ?? [])),
pasted: [],
}
: undefined,