{
if (atCursorPos < 0) return
@@ -688,7 +784,7 @@ export function ChatInput({ variant = 'default', compact = false }: ChatInputPro
setLocalSlashPanel(null)}
/>
@@ -877,21 +973,15 @@ export function ChatInput({ variant = 'default', compact = false }: ChatInputPro
compact={compact}
/>
) : (
- {
- if (!activeTabId) return
- const oldId = activeTabId
- const { deleteSession, createSession } = useSessionStore.getState()
- const { replaceTabSession } = useTabStore.getState()
- const { disconnectSession, connectToSession } = useChatStore.getState()
- const newId = await createSession(newWorkDir)
- useSessionRuntimeStore.getState().moveSelection(oldId, newId)
- disconnectSession(oldId)
- replaceTabSession(oldId, newId)
- connectToSession(newId)
- deleteSession(oldId).catch(() => {})
- }}
+
)}