Skip to content

Issue #4 - [BUG] Deleting session triggers unwanted session switch #8

@zenocross

Description

@zenocross

Description

When deleting a chat session, the application automatically switches to a different session unexpectedly, disrupting the user's workflow.

Current Behavior

  • Delete a session
  • App automatically selects/opens another session
  • User loses context and must navigate back

Expected Behavior

After deleting a session:

  • Stay on current view if possible
  • If deleted session was active, navigate to a predictable location (e.g., previous session or empty state)
  • No unexpected context switches

Steps to Reproduce

  1. Open a chat session
  2. Delete the session from sidebar
  3. App switches to different session automatically
  4. User loses current context

Proposed Solution

Update deletion logic to:

  • Prevent automatic session switching
  • Maintain user's current view state
  • Only switch if the deleted session was currently active

Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions