on main help sign in
fix(ui): dialogs: ensure returned commands are executed
commitfb78b802586c10dc40dbdd2602ef62a3c51f08c4 authorAyman Bagabas <ayman.bagabas@gmail.com> dateThu 8 Jan 2026, 10:14 (9 months ago) parent23e0b06
3 files changed+9−3
internal/ui/dialog/commands.go+3−1 internal/ui/dialog/models.go+3−1 internal/ui/dialog/sessions.go+3−1
internal/ui/dialog/commands.go+3−1
@@ -176,7 +176,9 @@ func (c *Commands) Update(msg tea.Msg) tea.Msg {
176176 c.list.SetFilter(value)
177177 c.list.ScrollToTop()
178178 c.list.SetSelected(0)
179− return cmd
179+ if cmd != nil {
180+ return cmd()
181+ }
180182 }
181183 }
182184 return nil
internal/ui/dialog/models.go+3−1
@@ -222,7 +222,9 @@ func (m *Models) Update(msg tea.Msg) tea.Msg {
222222 value := m.input.Value()
223223 m.list.SetFilter(value)
224224 m.list.ScrollToSelected()
225− return cmd
225+ if cmd != nil {
226+ return cmd()
227+ }
226228 }
227229 }
228230 return nil
internal/ui/dialog/sessions.go+3−1
@@ -140,7 +140,9 @@ func (s *Session) Update(msg tea.Msg) tea.Msg {
140140 s.list.SetFilter(value)
141141 s.list.ScrollToTop()
142142 s.list.SetSelected(0)
143− return cmd
143+ if cmd != nil {
144+ return cmd()
145+ }
144146 }
145147 }
146148 return nil