You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Web mode silently drops image attachments; the button just disappears #142
src/App.tsx:605-608 passes undefined for onPickAttachments/onDropAttachmentFiles when isWebMode(); src/components/Composer.tsx:119-131 documents that absence hides the attach button and disables drop entirely. Nothing in the UI explains why.
Impact
README advertises web mode for phone/browser check-ins without noting the limitation. A user who attaches screenshots daily opens the web UI and the feature is simply gone, with no hint it is environment-related rather than a bug.
Fix direction
Show the attach button in a disabled state with a tooltip ("attachments are only available in the desktop app"), or implement upload over the web bridge.
Fixed: web mode now attaches images instead of hiding the button.
pickAttachments in web mode opens a browser <input type=file accept=image/*> (never the host's native dialog) and uploads each pick through the existing attachments:saveImage wire call.
dropAttachmentFiles falls back to the same path when webUtils.droppedFilePath is absent (web/dev bridges), instead of returning [].
src/App.tsx no longer passes undefined for either prop.
No new size/mime guard in the renderer — electron/attachments.jssaveImage() already validates and caps at 20MB; nulls are filtered.
Limitation: web can attach images only, not folders (<input type=file> can't pick directories). Desktop is unchanged.
Test: test/webDegrade.test.tsx drops a File with window.coder deleted and asserts saveImage gets a data: URL for the right thread and the chip renders. 724/724 renderer tests + typecheck green.
Activity
currentbits commentedon Aug 17, 2026
Fixed: web mode now attaches images instead of hiding the button.
pickAttachmentsin web mode opens a browser<input type=file accept=image/*>(never the host's native dialog) and uploads each pick through the existingattachments:saveImagewire call.dropAttachmentFilesfalls back to the same path whenwebUtils.droppedFilePathis absent (web/dev bridges), instead of returning [].src/App.tsxno longer passesundefinedfor either prop.No new size/mime guard in the renderer —
electron/attachments.jssaveImage()already validates and caps at 20MB; nulls are filtered.Limitation: web can attach images only, not folders (
<input type=file>can't pick directories). Desktop is unchanged.Test:
test/webDegrade.test.tsxdrops a File withwindow.coderdeleted and assertssaveImagegets a data: URL for the right thread and the chip renders. 724/724 renderer tests + typecheck green.