fix: startNewChat now creates new session
- Updated startNewChat to call handleNewSession if currentSession exists - This ensures + New button also creates a new session in MarkBase
This commit is contained in:
@@ -709,6 +709,10 @@ function newChat() {
|
|||||||
function startNewChat() {
|
function startNewChat() {
|
||||||
newChat()
|
newChat()
|
||||||
showHistory.value = false
|
showHistory.value = false
|
||||||
|
// Create new session if there's a current session
|
||||||
|
if (currentSession.value) {
|
||||||
|
handleNewSession()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleSessionMenu(id: string) {
|
function toggleSessionMenu(id: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user