Skip to content

fix(toasts): keep warning/error toasts until dismissed#710

Draft
kevinheneveld wants to merge 1 commit into
Listenarrs:canaryfrom
kevinheneveld:fix/sticky-warning-error-toasts
Draft

fix(toasts): keep warning/error toasts until dismissed#710
kevinheneveld wants to merge 1 commit into
Listenarrs:canaryfrom
kevinheneveld:fix/sticky-warning-error-toasts

Conversation

@kevinheneveld

Copy link
Copy Markdown
Contributor

Problem

Warning and error toasts auto-dismiss after 5s, the same as info/success. But they carry information the user needs to read and act on — e.g. why a file operation failed — and frequently vanish before they can be read, especially when several stack up.

Change

Default warning / error toasts to timeoutMs = 0 (sticky). They're dismissed via the close button (×) already present on every toast. info / success keep the 5s auto-dismiss, and callers can still pass an explicit timeout to opt warning/error back into auto-dismiss.

warning: (title, message, timeoutMs = 0) => push('warning', title, message, timeoutMs),
error:   (title, message, timeoutMs = 0) => push('error',   title, message, timeoutMs),

push() already treats a 0/falsy timeout as "no auto-dismiss", so no other change is needed. vue-tsc passes.

🤖 Generated with Claude Code

Warning and error toasts auto-dismissed after 5s like info/success, but they
carry information the user needs to read and act on (e.g. why an operation failed)
and too often vanished before they could be read.

Default warning/error toasts to timeoutMs = 0 (sticky); they're closed via the
existing close button on each toast. info/success keep the 5s auto-dismiss, and
callers can still pass an explicit timeout to opt warning/error back into it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kevinheneveld kevinheneveld requested a review from a team June 28, 2026 17:31
@kevinheneveld kevinheneveld marked this pull request as draft July 1, 2026 17:28
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.

1 participant