Skip to content

Fix duplicate mutation toasts and retain sidebar crash alerts - #2907

Merged
ymichael merged 2 commits into
mainfrom
bb/fixer-give-notification-producers-one-recording-thr_b3tptcu52u
Sep 4, 2026
Merged

ymichael merged 2 commits into
mainfrom
bb/fixer-give-notification-producers-one-recording-thr_b3tptcu52u

Conversation

@ymichael

@ymichael ymichael commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The global React Query mutation handler already owned generic error toasts when PR #1582 added marketplace and plugin mutations with their own specific onError toasts but no global-handler opt-out. One failed action therefore had two toast owners; PR #2882 made both alerts durable in notification history and separately missed a raw Sonner toast in the sidebar plugin-crash fallback.

What changed

All 12 current first-party mutations with bespoke local error toasts now opt out of the global mutation error toast, establishing one error-toast owner per mutation without content-deduplicating distinct events. SidebarNavigationRegion now routes its plugin-crash alert through the recorded appToast helper. Focused regression coverage verifies that a failed plugin update and a failed marketplace action each retain one alert, and that the sidebar crash alert is retained. There are no wire, CLI, guide, or documentation contract changes.

How you verified

The new plugin-update assertion failed before the fix with two retained notifications and passed after the fix with one contextual notification. The rebased focused suite passed 16/16 tests with pnpm exec turbo run test --filter=@bb/app --force -- --run src/components/plugin/management/UpdatePluginDialog.test.tsx src/components/settings/MarketplacesSettingsSection.test.tsx src/components/sidebar/SidebarNavigationRegion.test.tsx. pnpm exec turbo run typecheck --filter=@bb/app --force also passed. Earlier DevBrowser verification reproduced the marketplace flow changing from two visible/two retained alerts to one visible/one retained alert, and the sidebar crash from zero retained alerts to one.

Fixes: no issue — post-merge follow-up

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/fixer-give-notification-producers-one-recording-thr_b3tptcu52u branch from f63855e to b1bd0ef Compare September 4, 2026 19:09
@ymichael
ymichael merged commit 41158a9 into main Sep 4, 2026
16 checks passed
@ymichael
ymichael deleted the bb/fixer-give-notification-producers-one-recording-thr_b3tptcu52u branch September 4, 2026 19:13
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