We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c6204b + ef1b18a commit 3de0148Copy full SHA for 3de0148
1 file changed
pkg/tui/tui.go
@@ -836,6 +836,11 @@ func (m *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
836
// --- Exit ---
837
838
case messages.ExitSessionMsg:
839
+ // If multiple tabs are open, close only the current tab instead of
840
+ // quitting the entire application (see #2373).
841
+ if m.supervisor != nil && m.supervisor.Count() > 1 {
842
+ return m.handleCloseTab(m.supervisor.ActiveID())
843
+ }
844
m.cleanupAll()
845
return m, tea.Quit
846
0 commit comments