diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-13 10:25:07 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-13 10:25:07 +0300 |
| commit | 62104fbcabf811b6cd31db15f0f72db1f9d3c6e6 (patch) | |
| tree | 9cdb813621bf9f4ecacdfc8db3aa8c365925230b /internal/tui/eventstream/export_test.go | |
| parent | d799f3f04da8067669c90a755e90cd723f9746e7 (diff) | |
cap filterStack undo history to 50 levels to prevent unbounded growth
Adds maxFilterHistory=50 and evicts the oldest entry from both the
history and label-stack slices in filterStack.push whenever the cap is
exceeded. Covers the fix with a new table-driven unit test.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/tui/eventstream/export_test.go')
0 files changed, 0 insertions, 0 deletions
