Skip to content

[FEATURE] Allow drag-and-drop reordering of chat sessions in sidebar #356

@adikulkarni006

Description

@adikulkarni006

Problem
Sessions are listed in sidebar but cannot be reordered manually. Users may want to pin or reorder important conversations.

Expected behavior

  • Drag any session up/down in the sidebar list.
  • Visual placeholder/drop indicator during drag.
  • After drop, new order persists via API call.
  • Backend: Add PATCH /api/sessions/reorder endpoint to update order_index field.

Technical hints

  • Frontend: Use @dnd-kit/sortable or react-beautiful-dnd
  • Add order field to session table (SQLite)
  • Update services/db_service.py to support batch update of order indices
  • Ensure it works with existing session search/filter

Labels: enhancement, good-first-issue, SSoC26

Metadata

Metadata

Labels

SSoC26Part of Social Summer of Code 2026good-first-issueFriendly starter tasks for new contributors

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions