Image tag fix for real this time (#4540)

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
shuv
2025-11-20 10:34:39 -08:00
committed by GitHub
parent 9479fe3ce6
commit eb975bb89c
2 changed files with 7 additions and 2 deletions

View File

@@ -124,9 +124,10 @@ export function Autocomplete(props: {
(item): AutocompleteOption => ({
display: Locale.truncateMiddle(item, width),
onSelect: () => {
const mime = Bun.file(item).type || "text/plain"
insertPart(item, {
type: "file",
mime: "text/plain",
mime,
filename: item,
url: `file://${process.cwd()}/${item}`,
source: {