MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / handleCreateConversation

Function handleCreateConversation

src/components/Sidebar/ConversationList.tsx:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 };
35
36 const handleCreateConversation = () => {
37 if (!currentConnectionCtx) {
38 conversationStore.createConversation();
39 } else {
40 conversationStore.createConversation(currentConnectionCtx.connection.id, currentConnectionCtx.database?.name);
41 }
42 };
43
44 const handleConversationSelect = (conversation: Conversation) => {
45 conversationStore.setCurrentConversationId(conversation.id);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected