fix(list): section heading follows the status filter (#592) (#596)
'coi list --stopped' titled its output 'Active Containers:' — the filter
worked, the label lied. The text heading now names the filtered state
(Stopped/Running/Frozen/... Containers:), the underline matches its
length, and unfiltered output keeps the historical heading. JSON is
unchanged ('active_containers' stays, for script compatibility).
e2e: the mixed-state filter test asserts the retitled headings and that
the old heading is gone under a filter. Unit test covers the mapping.
Closes #592. M
Maciej Mensfeld committed
2e0ea005657fc0cd8bce448df77243837a6d23f1
Parent: 74faece
Committed by GitHub <noreply@github.com>
on 7/12/2026, 12:00:42 PM