Skip to content

fix(notifications): stop channel-closed storm when switching nodes - #735

Merged
mjadach-iv merged 2 commits into
mainfrom
fix/channel-notification-storm-on-node-switch
Aug 16, 2026
Merged

fix(notifications): stop channel-closed storm when switching nodes#735
mjadach-iv merged 2 commits into
mainfrom
fix/channel-notification-storm-on-node-switch

Conversation

@mjadach-iv

Copy link
Copy Markdown
Contributor

Switching nodes left the previous node's channel, balance and info snapshots in app.previousStates, so the first fetch for the new node was diffed against the old one and every channel the old node had was reported as closed.

Restore the appActions.resetNodeState() dispatch that 0f66b70 dropped from the login modal, and clear the notification bell on switch and on logout.

Also scope the snapshots to a node: previousStates now records the apiEndpoint it was taken from, and useWatcher reseeds silently instead of diffing when the connected node no longer matches, so this cannot regress unnoticed again.

Switching nodes left the previous node's channel, balance and info snapshots
in app.previousStates, so the first fetch for the new node was diffed against
the old one and every channel the old node had was reported as closed.

Restore the appActions.resetNodeState() dispatch that 0f66b70 dropped from the
login modal, and clear the notification bell on switch and on logout.

Also scope the snapshots to a node: previousStates now records the apiEndpoint
it was taken from, and useWatcher reseeds silently instead of diffing when the
connected node no longer matches, so this cannot regress unnoticed again.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: de87b017-90d8-4ac1-8e77-3148a112c67a


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.

@mjadach-iv
mjadach-iv merged commit 6fcb664 into main Aug 16, 2026
1 check passed
@mjadach-iv
mjadach-iv deleted the fix/channel-notification-storm-on-node-switch branch August 16, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant