Skip to content

feat: Improve node handling and add client notifications#4130

Merged
jamesarich merged 2 commits into
mainfrom
fix/post-refactor
Jan 4, 2026
Merged

feat: Improve node handling and add client notifications#4130
jamesarich merged 2 commits into
mainfrom
fix/post-refactor

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

This fixes some regressions to node management and user notifications.

  • Client Notifications: Displays notifications received from the device, ensuring users are alerted to important events.
  • Node Upsert Logic: Refines node database updates to prevent overwriting existing user information (like names) with placeholder data from new, unconfigured nodes. It also improves handling of public key mismatches.
  • Port Zero Prevention: Throws an IllegalArgumentException if an attempt is made to send data on port zero, which is reserved.
  • Database Switching: Clears the early packet buffer when switching between device databases to prevent data from one device leaking into another's session.

This commit introduces several improvements to node management and user notifications.

- **Client Notifications**: Displays notifications received from the device, ensuring users are alerted to important events.
- **Node Upsert Logic**: Refines node database updates to prevent overwriting existing user information (like names) with placeholder data from new, unconfigured nodes. It also improves handling of public key mismatches.
- **Port Zero Prevention**: Throws an `IllegalArgumentException` if an attempt is made to send data on port zero, which is reserved.
- **Database Switching**: Clears the early packet buffer when switching between device databases to prevent data from one device leaking into another's session.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added the bugfix PR tag label Jan 4, 2026
@jamesarich jamesarich enabled auto-merge January 4, 2026 17:16
@codecov

codecov Bot commented Jan 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (add87a4) to head (22450df).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4130   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          2       2           
  Lines         19      19           
  Branches       7       7           
=====================================
  Misses        19      19           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Jan 4, 2026
Merged via the queue into main with commit e5f78d1 Jan 4, 2026
8 checks passed
@jamesarich jamesarich deleted the fix/post-refactor branch January 4, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant