opencode fixes local file attachments mislabelled as text/plain
wonderfulremark · ghdev · 2026-07-26
Fixes a bug in opencode run -f <path> where locally attached files were always tagged as text/plain (or application/x-directory) instead of using the file’s real MIME type. The PR also awaits the async MIME detection call and preserves the text/plain fallback only when the bytes round-trip as identical UTF-8 text. Verification showed a PNG attachment logged as image/png after the fix.
More from coding & agent
- Developer uses Codex Remote to keep building on the go and record gameplay progress — Dimillian · 2026-07-26
- Claude Code prompt gets 90% of a single-file Three.js bonsai demo right — majidmanzarpour · 2026-07-26
- Built a tool that blocks AI agent commits when they change code outside scope — bluetech333 · 2026-07-26
- Live workshop promises a real-business GenAI + data science workflow with Python and agents — mdancho84 · 2026-07-26
- Codex computer-use handles Google Cloud Console setup tasks with less manual work — lucasmeijer · 2026-07-26
- One-Click Desktop AI Client: Run Claude & Codex Locally with Zero Inference Fees — jasonkneen · 2026-07-26