bug(cli): sidebar "d" delete action does not delete a conversation #191
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Pressing
dorDin 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—useInputhandler ford/Dkeypackages/cli/src/tui/hooks/use-conversations.ts—deleteConversation()REST callpackages/cli/src/tui/app.tsx—handleDeleteConversationcallbackSteps to Reproduce
Ctrl+Lto open sidebardExpected
Conversation is deleted from the gateway and removed from the sidebar list.
Actual
Nothing happens. Conversation remains in the list.
Investigation Notes
The
onDeleteConversationcallback inapp.tsxcallsconversations.deleteConversation(id)which issuesDELETE /api/conversations/:id. Need to verify:conv.id !== activeConversationIdpreventing deletion of the selected conversation?