Skip to content

[BUG] File attachment dialog appears twice #781

@elammertsma

Description

@elammertsma

Bug Description

After adding an attachment to a chat, the file selection dialog opens a second time.

Deployment Type

  • SurfSense Cloud (hosted version)
  • Self-hosted version

Steps to Reproduce

  1. Go to any chat or "New Chat"
  2. Click on the plus icon
  3. Click on "Add Attachment"
  4. Upload a file or click cancel

Expected Behavior

You are returned to the chat without a dialog (with or without a file uploading).

Actual Behavior

The File Selection dialog opens a second time.

Screenshots/Videos

Image

Environment Information

  • Browser: Chrome 143
  • Operating System: Windows 11
  • SurfSense Version: 0.0.12.10

Additional Environment Details (for Self-hosted only)

Additional Context

Ensure that a fix does not affect the file selection dialog for "Upload Documents" (as this one behaves correctly, opening only once).

Logs/Error Messages

None

Checklist

  • I have searched existing issues to ensure this is not a duplicate
  • I have provided all the required information above
  • I have added appropriate labels (bug, deployment type)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions