Repository navigation
fix(chat-recovery): keep the resumed-chats toast up for 8 seconds - #50126
Merged
Merged
Conversation
Contributor
Author
|
Review (Opus 5.5 high, code-review) on head 56d1dd5: pass, no P0/P1 findings. Round 1 found that the timing fixtures still assumed 5s; this head fixes that. CI is green on this head. Not merged: waiting on owner approval. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The "Resumed N chats after the restart" toast now stays up for 8 seconds instead of 5 before dismissing itself.
This toast runs its own timer (
RESUMED_TOAST_MSinuse-resume-toast-auto-dismiss.ts) because Sonner's timer stays paused while Chromium reports a focused window as hidden. The constant is the only thing that changes. The app-wide toaster default is still Sonner's built-in 4s and nothing else set an explicit 5s duration, so no other toasts change.The countdown still pauses on hover or keyboard focus, and opening Details still keeps the toast open.
Verification
pnpm check:changedpasses.ResumeToastTimingfixture waits are now worked out from the exportedRESUMED_TOAST_MS. All nine timing cases pass underpnpm fixtures:shotat 8s.Performance
None. This only changes how long one timer waits before dismissing a single toast.
Risk
Low. The worst case is that the resumed-chats report stays on screen 3 seconds longer. A plain revert backs it out.