fix(app): use tab-scoped servers in sessions (#33946)

This commit is contained in:
Brendan Allan
2026-06-25 19:09:22 +00:00
committed by GitHub
parent 0870a838a8
commit b60c0a5e8c
9 changed files with 77 additions and 58 deletions
+6
View File
@@ -319,6 +319,12 @@ export function Titlebar(props: { update?: TitlebarUpdate }) {
return
}
const activeTab = currentTab()
if (activeTab?.type === "draft") {
tabs.newDraft({ server: activeTab.server, directory: activeTab.directory }, "")
return
}
const current = layout.projects.list()[0]
if (current) {
tabs.newDraft({ server: server.key, directory: current.worktree }, "")