Skip to content

fix(chat-recovery): keep the resumed-chats toast up for 8 seconds - #50126

Merged
orca-remote-automation[bot] merged 2 commits into
mainfrom
fix/resume-toast-8s
Nov 26, 2026
Merged

orca-remote-automation[bot] merged 2 commits into
mainfrom
fix/resume-toast-8s

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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_MS in use-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:changed passes.
  • No tests assert this duration.
  • The ResumeToastTiming fixture waits are now worked out from the exported RESUMED_TOAST_MS. All nine timing cases pass under pnpm fixtures:shot at 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.

Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25 $\color{#cf222e}{\Huge{\mathbf{−}}}$​25 0

@orca-remote-automation

Copy link
Copy Markdown
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.

@orca-remote-automation
orca-remote-automation Bot merged commit 140eb2c into main Nov 26, 2026
55 of 56 checks passed
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.

0 participants