Skip to content

Make TUI warnings persist until manually dismissed#2252

Open
dgageot wants to merge 1 commit intodocker:mainfrom
dgageot:board/fix-docker-agent-issue-2247-ae908483
Open

Make TUI warnings persist until manually dismissed#2252
dgageot wants to merge 1 commit intodocker:mainfrom
dgageot:board/fix-docker-agent-issue-2247-ae908483

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Mar 25, 2026

Warning and error notifications no longer auto-dismiss after 3 seconds.
They display an [x] close button and remain visible until the user clicks
on them. Success and info notifications continue to auto-dismiss.

  • Add persistent() and style() methods on notification Type
  • Add render() method on notificationItem to centralize rendering
  • Add HandleClick() on Manager for mouse-based dismissal
  • Clamp maxWidth to prevent underflow on very narrow terminals

Fixes #2247

Warning and error notifications no longer auto-dismiss after 3 seconds.
They display an [x] close button and remain visible until the user clicks
on them. Success and info notifications continue to auto-dismiss.

- Add persistent() and style() methods on notification Type
- Add render() method on notificationItem to centralize rendering
- Add HandleClick() on Manager for mouse-based dismissal
- Clamp maxWidth to prevent underflow on very narrow terminals

Fixes docker#2247

Assisted-By: docker-agent
@dgageot dgageot requested a review from a team as a code owner March 25, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warnings in the TUI should show longer

2 participants