Repository navigation
Commit 42ad864
committed
fix(cli): detect MIME type for --file flag instead of hardcoding text/plain
The --file flag on `opencode run` was sending all non-directory
attachments as text/plain, breaking multimodal support for images,
PDFs, and other binary files. Use Filesystem.mimeType() to detect
the correct type from the file extension.
Closes anomalyco#16723, anomalyco#24698, anomalyco#253531 parent 30c4fcb commit 42ad864
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
0 commit comments