Make terminal UI shutdown idempotent

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 14:30:55 -04:00
committed by Brandon McGinty
parent 41759b95f6
commit 5bf3ed8b84
3 changed files with 30 additions and 9 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ Priority 3: configuration, UI, and binding hardening
never closes the FIFO descriptor. Exit the reader on terminal errors,
close the descriptor, and make shutdown cancellable.
30. Empty UI tree can panic; UI startup errors are swallowed
[x] 30. Empty UI tree can panic; UI startup errors are swallowed
Files: uiterm/tree.go, uiterm/ui.go
Tree.uiKeyEvent indexes lines[activeLine] for a non-arrow key even when
no lines exist. Guard empty trees. Ui.Run returns nil when termbox.Init