Skip to content

fix(status-bar): don't overcount trimmed messages#18

Merged
11me merged 2 commits intomasterfrom
fix/status-bar-no-overcount
Feb 8, 2026
Merged

fix(status-bar): don't overcount trimmed messages#18
11me merged 2 commits intomasterfrom
fix/status-bar-no-overcount

Conversation

@11me
Copy link
Owner

@11me 11me commented Feb 8, 2026

Problem

Status bar was accumulating trimmedMessages across repeated lightsession-status events, inflating the displayed number. Page script reports an absolute removed/hidden count per event, not a delta.

Fix

  • Stop accumulating in updateStatusBar; display the current value directly
  • Add a unit test to ensure repeated events don't inflate the count

Verification

  • npm test
  • npm run lint
  • npm run build:types
  • Manual check in Brave (CDP 9222): repeated dispatches keep pill count stable

11me added 2 commits February 9, 2026 01:15
Only call preventDefault() for unhandledrejection events attributable to LightSession; keep site errors visible in DevTools. Adds a small filter helper + unit tests.
Page script reports an absolute removed/hidden count per event, so accumulating across repeated lightsession-status events inflates the pill number. Display the current value directly and add a regression test.
@11me
Copy link
Owner Author

11me commented Feb 8, 2026

Fixes beads: light-session-5yj

@11me 11me merged commit 7c0df98 into master Feb 8, 2026
1 check 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.

1 participant