Skip to content

Housekeeping: socket timeout setting wired up, profileManager back-door removed, doc tidy - #424

Merged
gbmhunter merged 1 commit into
mainfrom
chore/housekeeping
Sep 7, 2026
Merged

gbmhunter merged 1 commit into
mainfrom
chore/housekeeping

Conversation

@gbmhunter

Copy link
Copy Markdown
Owner

Small cleanups left over from the last few weeks.

  • The socket "Connection timeout" setting is now used. It had a field, validation and persistence, but socket:connect ignored it and waited a fixed 2 s. The renderer now passes connTimeoutMs and the main process uses it for both the socket timeout and the connect race (2 s stays as a fallback for a caller that sends none). The connection characterisation spec asserts the value is passed. CHANGELOG entry under Fixed.
  • RxSettingsView and TxSettingsView take displaySettings as a prop instead of reaching it through rxSettings.profileManager.app.settings.displaySettings (92 sites between them). That was the only reason the settings classes exposed profileManager; the getters are gone from PortSettings, RxSettings, TxSettings and DisplaySettings. GeneralSettings keeps its own since it reads app-level flags through it.
  • Macro.ts had a literal NUL byte in the rxMatchRegex cache key, so grep treated the file as binary. Now the \u0000 escape.
  • README named the e2e directory tests/; it is e2e-tests/.
  • TODO.md: the two open §3 follow-ups are closed by this PR, and the collapsed "original analysis" blocks now say their checkboxes are historical.

npx tsc clean · npm run lint 0 errors · 506/506 unit · 92/92 e2e

… back-door, tidy docs

The socket "Connection timeout" setting had a field, validation and
persistence, and nothing read it: the main process waited a fixed 2 s.
socket:connect now takes connTimeoutMs and uses it for both the socket
timeout and the connect race, keeping 2 s as a fallback for a caller that
sends none.

RxSettingsView and TxSettingsView reached the display settings through
rxSettings.profileManager.app.settings.displaySettings (92 sites between
them), which is the only reason the settings classes exposed profileManager.
Both views now take displaySettings as a prop and the getters are gone from
PortSettings, RxSettings, TxSettings and DisplaySettings. GeneralSettings
keeps its own; it reads app-level flags through it.

Macro.ts had a literal NUL byte in the rxMatchRegex cache key, which made
grep treat the file as binary; it is now the \u0000 escape. README named the
e2e directory tests/. TODO.md closes the two section 3 follow-ups and marks
the archived analysis blocks' checkboxes as historical.
@gbmhunter gbmhunter self-assigned this Sep 7, 2026
@gbmhunter
gbmhunter merged commit 182b00f into main Sep 7, 2026
8 checks passed
@gbmhunter
gbmhunter deleted the chore/housekeeping branch September 7, 2026 04:24
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