fix: pass image parts to custom commands (#6525)

Co-authored-by: Melih Mucuk <melih@monkeysteam.com>
This commit is contained in:
Melih Mucuk
2026-01-05 22:06:57 +03:00
committed by GitHub
parent bf9ee32d4a
commit a38e1701ee
6 changed files with 81 additions and 3 deletions

View File

@@ -559,6 +559,12 @@ export function Prompt(props: PromptProps) {
model: `${selectedModel.providerID}/${selectedModel.modelID}`,
messageID,
variant,
parts: nonTextParts
.filter((x) => x.type === "file")
.map((x) => ({
id: Identifier.ascending("part"),
...x,
})),
})
} else {
sdk.client.session.prompt({