mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-28 19:05:31 +02:00
new chat doesnt have a tab
This commit is contained in:
parent
02c66970f5
commit
40a3b02a8c
1 changed files with 8 additions and 2 deletions
|
|
@ -2448,8 +2448,14 @@ function App() {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Open in a new tab
|
// If active tab is empty (new chat with no run), reuse it
|
||||||
openInNewTab(runIdToLoad)
|
if (activeTab && !activeTab.runId) {
|
||||||
|
setOpenTabs(prev => prev.map(t => t.id === activeTabId ? { ...t, runId: runIdToLoad } : t))
|
||||||
|
loadRun(runIdToLoad)
|
||||||
|
} else {
|
||||||
|
// Open in a new tab
|
||||||
|
openInNewTab(runIdToLoad)
|
||||||
|
}
|
||||||
if (selectedPath || isGraphOpen || selectedBackgroundTask) {
|
if (selectedPath || isGraphOpen || selectedBackgroundTask) {
|
||||||
setSelectedPath(null)
|
setSelectedPath(null)
|
||||||
setIsGraphOpen(false)
|
setIsGraphOpen(false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue