Repository navigation
fix(app-shell): let users close the profile storage delay warning - #28900
Conversation
The warning sticks until profile saving catches up, but it turned off the close button every other Orca toast gets from the app toaster.
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
🧹 Nitpick comments: 1
src/renderer/src/app-shell/use-profile-state-save-delay-notice.sonner.test.tsx: 1
100-109: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winCover the close → recovery → later slowdown sequence.
The close test stops after dismissal. The recovery test does not dismiss the warning first. Add recovery and a later delay after the close assertion so a regression that suppresses the later warning cannot pass.
Suggested fix
await finishDismissal() expect(view.queryByText(title)).toBeNull() + + publish(false) + await finishDismissal() + publish(true) + await advanceTimers() + expect(view.queryByText(title)).not.toBeNull() })
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
2b7c0508-c0e8-40b7-8631-60cd2975c18c
📒 Files selected for processing: 3
src/renderer/src/app-shell/use-profile-state-save-delay-notice.sonner.test.tsxsrc/renderer/src/app-shell/use-profile-state-save-delay-notice.test.tsxsrc/renderer/src/app-shell/use-profile-state-save-delay-notice.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
…anges The full sharded E2E run on main fails these specs on every run because they still expect the product's old behavior: - Cmd+J placeholder now names tasks (stablyai#28617) - toaster base z-index is 47, above the floating workspace (stablyai#28068) - the profile-delay warning has the app toaster's close button (stablyai#28900) - the worktree meta dialog is titled "Workspace details" - an editable CSV renders as an ARIA grid, not a table - a host whose search is off sends the vault box to title-only (stablyai#22453) Co-Authored-By: Claude Opus 5.5 <[email protected]>
ELI5
When Orca's profile saving is slow, it shows a warning: "Profile storage is taking longer than usual". That warning stayed on screen with no X to close it, so the only way to get rid of it was to wait for saving to catch up. Now it has the same X as every other Orca notification.
What Changed
Mechanism: Orca's app-wide toaster already gives every notification a close button (
<Toaster closeButton>inApp.tsx). This warning was the only error-style notification that turned that off (dismissible: false, closeButton: falseinuse-profile-state-save-delay-notice.ts). This PR removes the opt-out. The warning still has no timeout, and it still clears itself when main reports that saving has recovered.Why
A warning the user can't close is worse than a missed one. It hides the UI underneath and can't be acted on, because the user has no action to take while the save finishes. The common pattern is to always give a persistent warning like this a dismiss control. Removing the opt-out was simpler than adding a special case, and it keeps this warning consistent with Orca's other notifications.
Closing it is safe. The warning only tells the user about the delay; the save keeps running either way. The id-tracking that already exists keeps a later recovery or slowdown from touching the wrong notification.
Linked Issue
N/A (maintainer; reported directly)
Visual Proof
Triggered by sending the app the same "saving is slow" signal main sends (a real slow save can't be produced on demand), dev build on macOS.
main): no XTesting
Updated the unit test for the warning's options, and added one test that renders the real toaster with its close button and checks that clicking the X closes the warning.
Electron QA on macOS (dev build, isolated profile and home, background launch). Each step was driven through the real UI over the Chrome DevTools Protocol:
main: the warning has no X.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
Notes
Renderer-only, with no change to what main sends. Same behavior on macOS, Linux, Windows, SSH and mobile.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)