Skip to content

fix(ui): Create new chat only when message is sent. #202

@Utkarsh-Patel-13

Description

@Utkarsh-Patel-13

Bug

Currently, Clicking on "Researcher" option creates a new chat every time it's clicked. This leads to creation of unwanted chats.

Screen.Recording.2025-07-17.at.10.33.35.AM.mp4

Suggestion / Fix

Create only new chat when user sends their first message.

This probably can be done by moving chat creation logic from
surfsense_web/app/dashboard/[search_space_id]/researcher/page.tsx

to

surfsense_web/app/dashboard/[search_space_id]/researcher/[chat_id]/page.tsx

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions