Skip to content

fix(app-shell): let users close the profile storage delay warning - #28900

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/profile-save-delay-toast-close
Oct 15, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/profile-save-delay-toast-close

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Before: the warning had no close button and couldn't be swiped away. It stayed until the slow save finished, which can take a long time, and covered part of the window the whole time.
  • After: the warning shows the standard X. Clicking it closes the warning. If saving later recovers and slows down again, the warning comes back as a new one.

Mechanism: Orca's app-wide toaster already gives every notification a close button (<Toaster closeButton> in App.tsx). This warning was the only error-style notification that turned that off (dismissible: false, closeButton: false in use-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.

Before (main): no X After: the warning has the X
before after
After clicking the X Saving slows down again: it comes back
closed reshown

Testing

  • 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:

    • On main: the warning has no X.
    • On this branch: the warning has the X, and clicking it closes it.
    • When saving recovers, the warning clears itself. When saving slows down again, it comes back, including right after the user closed it. No console errors.
  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Renderer-only, with no change to what main sends. Same behavior on macOS, Linux, Windows, SSH and mobile.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

The warning sticks until profile saving catches up, but it turned off the
close button every other Orca toast gets from the app toaster.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 15, 2026 00:40
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

The profile-save delay warning no longer sets dismissible: false or closeButton: false. Its infinite duration remains unchanged. Tests now verify that the warning can be dismissed with the toaster’s close button.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to f454d

Users can close the persistent storage-delay warning. A combined automated check for its return after recovery would improve regression coverage, but no current behavior failure is established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: users can close the profile storage delay warning.
Description check Passed The description follows the required template. It explains the user impact, implementation, rationale, testing, visual proof, scope, and checklist status. The maintainer correctly marks the linked iss…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments: 1
src/renderer/src/app-shell/use-profile-state-save-delay-notice.sonner.test.tsx: 1

100-109: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Cover 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
📥 Commits

Reviewing files that changed from the base of the PR and between d5324c9 and f454d1b.

📒 Files selected for processing: 3
  • src/renderer/src/app-shell/use-profile-state-save-delay-notice.sonner.test.tsx
  • src/renderer/src/app-shell/use-profile-state-save-delay-notice.test.tsx
  • src/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.

@brennanb2025
brennanb2025 merged commit 11aad14 into main Oct 15, 2026
54 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/profile-save-delay-toast-close branch October 15, 2026 06:36
SimonSQLML added a commit to SimonSQLML/orca that referenced this pull request Oct 20, 2026
…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]>
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