bug(cli): sidebar "d" delete action does not delete a conversation #191

Closed
opened 2026-03-17 02:11:14 +00:00 by jason.woltje · 0 comments
Owner

Description

Pressing d or D in the conversation sidebar to delete a conversation does not actually delete it. The sidebar UI shows the delete keybinding hint (d delete) but the action has no effect.

Location

  • packages/cli/src/tui/components/sidebar.tsxuseInput handler for d/D key
  • packages/cli/src/tui/hooks/use-conversations.tsdeleteConversation() REST call
  • packages/cli/src/tui/app.tsxhandleDeleteConversation callback

Steps to Reproduce

  1. Open TUI, start a conversation
  2. Ctrl+L to open sidebar
  3. Navigate to a conversation (not the active one)
  4. Press d

Expected

Conversation is deleted from the gateway and removed from the sidebar list.

Actual

Nothing happens. Conversation remains in the list.

Investigation Notes

The onDeleteConversation callback in app.tsx calls conversations.deleteConversation(id) which issues DELETE /api/conversations/:id. Need to verify:

  • Is the REST call being made?
  • Is the response successful?
  • Is the sidebar state updating after deletion?
  • Is the guard conv.id !== activeConversationId preventing deletion of the selected conversation?
## Description Pressing `d` or `D` in the conversation sidebar to delete a conversation does not actually delete it. The sidebar UI shows the delete keybinding hint (`d delete`) but the action has no effect. ## Location - `packages/cli/src/tui/components/sidebar.tsx` — `useInput` handler for `d`/`D` key - `packages/cli/src/tui/hooks/use-conversations.ts` — `deleteConversation()` REST call - `packages/cli/src/tui/app.tsx` — `handleDeleteConversation` callback ## Steps to Reproduce 1. Open TUI, start a conversation 2. `Ctrl+L` to open sidebar 3. Navigate to a conversation (not the active one) 4. Press `d` ## Expected Conversation is deleted from the gateway and removed from the sidebar list. ## Actual Nothing happens. Conversation remains in the list. ## Investigation Notes The `onDeleteConversation` callback in `app.tsx` calls `conversations.deleteConversation(id)` which issues `DELETE /api/conversations/:id`. Need to verify: - Is the REST call being made? - Is the response successful? - Is the sidebar state updating after deletion? - Is the guard `conv.id !== activeConversationId` preventing deletion of the selected conversation?
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#191