We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72c12d5 commit be2e6f1Copy full SHA for be2e6f1
1 file changed
packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -694,7 +694,7 @@ export function Prompt(props: PromptProps) {
694
async function pasteImage(file: { filename?: string; content: string; mime: string }) {
695
const currentOffset = input.visualCursor.offset
696
const extmarkStart = currentOffset
697
- const count = store.prompt.parts.filter((x) => x.type === "file").length
+ const count = store.prompt.parts.filter((x) => x.type === "file" && x.mime.startsWith("image/")).length
698
const virtualText = `[Image ${count + 1}]`
699
const extmarkEnd = extmarkStart + virtualText.length
700
const textToInsert = virtualText + " "
0 commit comments