Skip to content

[Bug] Desktop: every file drop is claimed by the GGUF model overlay, so chat attachments can't be dragged in #7661

Closed

Description

@LeoBorcherding

Summary

In the desktop (Tauri) app, dragging any file over the window pops the native model
overlay reading:

GGUF models only — Other files are not handled here yet.

Image Image

Dropping a non-GGUF then shows the toast "Only .gguf model files can be dropped here." and
the file is discarded. This happens even when the drop lands on the chat composer, right next
to its own "Add files to chat with" affordance, which happily accepts the very same file
through the file picker.

Net effect on desktop: drag-and-drop file attachment is completely unavailable, and the
only feedback the user gets is copy implying the app only ever wants GGUFs.

GGUF drop itself is a real feature (native model intake), not the bug. The bug is that it is
the only drop handler in the desktop shell and its copy speaks for the whole window.

Steps to reproduce

  1. Launch the desktop app (native shell or tauri dev) and open a chat.
  2. Drag a .pdf / .txt / .md / .docx from Explorer over the window.
  3. Overlay shows "GGUF models only — Other files are not handled here yet."
  4. Drop it. Toast: "Only .gguf model files can be dropped here." Nothing is attached.
  5. Click Add files to chat with and pick the same file: it uploads fine.
  6. Do step 2-4 in the browser web UI instead: the file attaches as expected.

Expected

  • Dropping a supported document (.pdf,.txt,.md,.markdown,.docx,.html,.htm, i.e.
    RAG_UPLOAD_ACCEPT) attaches it to the thread, matching both the web UI and the desktop
    file picker.
  • Dropping a single .gguf still loads/replaces the model as it does today.
  • Overlay copy reflects what is actually accepted, rather than "GGUF models only" for
    everything.

Root cause (code)

The desktop shell registers a window-level Tauri drag-drop listener, and the DOM drop
handlers that implement attachment drops are explicitly disabled under isTauri:

  • studio/frontend/src/features/native-intents/use-native-drop.ts —
    getCurrentWindow().onDragDropEvent(...); anything that isn't exactly one .gguf becomes
    { status: "invalid" } and is rejected with a toast.
  • studio/frontend/src/features/native-intents/components/native-model-drop-overlay.tsx:8 —
    the "GGUF models only" copy for that invalid state.
  • studio/frontend/src/features/chat/shared-composer.tsx:1652-1665 — composer onDragOver /
    onDrop both early-return on isTauri, with the comment:

    Phase 1 native model drops own Tauri local-path drops. Restore browser attachment drops in
    Tauri once Phase 1d adds token bridging.

  • studio/frontend/src/components/assistant-ui/thread.tsx:944-977 — same isTauri bail-out on
    the thread-wide dropzone.

Introduced by e35cbfb45 "Add native GGUF intake to Studio (#5246)". So this is a known
half-landed phase, but as shipped it reads as a plain defect from the desktop UI: an
advertised attach affordance that rejects everything you drag at it.

Related, possibly separate

studio/frontend/src/features/rag/components/project-source-dropzone.tsx:195-215 (Projects →
sources) has no isTauri guard. On desktop it still renders drag-hover styling, but the
webview never receives the DOM drop event and the native listener is only enabled on the chat
page in single mode, so files dropped there are silently discarded — no toast, no overlay,
no upload. Happy to split this out if preferred.

Environment

  • Desktop shell studio/src-tauri v2026.4.8, unsloth 2026.7.6
  • main @ 969e32f8a
  • Windows 11, AMD ROCm gfx1200 (unrelated to the defect; the guards are platform-wide)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions