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:
2026-10-27 05:41:54 +08:00
parent bd52128031
commit ac281b0766

View File

@@ -709,6 +709,10 @@ function newChat() {
function startNewChat() {
newChat()
showHistory.value = false
// Create new session if there's a current session
if (currentSession.value) {
handleNewSession()
}
}
function toggleSessionMenu(id: string) {