Skip to content

Self-review hardening: reconnect error spam, DSU toggle safety (v1.2.3) - #13

Merged
mlstr0m merged 1 commit into
mainfrom
fix/self-review-hardening
Jul 18, 2026
Merged

Self-review hardening: reconnect error spam, DSU toggle safety (v1.2.3)#13
mlstr0m merged 1 commit into
mainfrom
fix/self-review-hardening

Conversation

@mlstr0m

@mlstr0m mlstr0m commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Follow-up to a « are you sure there are no bugs? » pass over v1.2.2.

Found & fixed:

  1. During the 60 s auto-reconnect window, every failing attempt surfaced a "Connection failed" notification while the app was still retrying. Only the final give-up message surfaces now; attempts are logged.
  2. The DSU toggle could overwrite a corrupt-but-user-authored mappings.json with defaults. It now refuses to persist rather than clobber.
  3. Cosmetic: consistent "pkts" detail format.

Verified clean in the same pass: pyflakes on all files; rumps API contracts (alert return codes, set_callback(None), MenuItem.state) checked against the installed library source; _tick/_idle_note ordering; DSU socket lifecycle races.

Tests: two new regression scenarios (62 bridge + 50 DSU checks green, CI on this PR).

🤖 Generated with Claude Code

Second-pass review of the v1.2.2 changes found:

- Failing reconnect attempts during the 60s auto-reconnect window each
  surfaced a "Connection failed" notification while the app was still
  retrying — now only the final give-up message is shown, attempts stay
  in the logs
- The DSU menubar toggle rewrote mappings.json with defaults when the
  file was corrupt, clobbering a user-authored (fixable) file — it now
  refuses to persist and keeps the toggle in memory only
- Cosmetic: unify the connected detail line format between _apply_state
  and the tick ("pkts")

Also verified in this pass: pyflakes clean on all files; rumps APIs used
(alert ok/cancel return codes, set_callback(None) disabling, MenuItem
.state) confirmed against the installed library source.

Tests: reconnect-spam scenario (drop + failing reconnects → no error
until give-up), corrupt-file toggle safety — 62 bridge checks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mlstr0m
mlstr0m merged commit 3c939fe into main Jul 18, 2026
2 checks passed
@mlstr0m
mlstr0m deleted the fix/self-review-hardening branch July 18, 2026 09:16
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