diff --git a/internal/repl/handlers.go b/internal/repl/handlers.go index 337822d..2463f78 100644 --- a/internal/repl/handlers.go +++ b/internal/repl/handlers.go @@ -31,11 +31,17 @@ type CleanListMsg struct{} func (_ CleanListMsg) apply(m model) (tea.Model, tea.Cmd) { items := []list.Item{} for _, e := range m.list.Items() { - if i, ok := e.(item); ok { - if !i.notification.Meta.Done { - items = append(items, e) - } + i, ok := e.(item) + + if !ok { + continue } + + if !i.notification.Visible() { + continue + } + + items = append(items, e) } return m, tea.Sequence(