Skip to content

fix(filter): read hash-only blocked channels, document the 1 December builds - #18

Merged
Elektr0Vodka merged 1 commit into
mainfrom
fix/main-filter-hash-channels
Dec 1, 2026
Merged

Elektr0Vodka merged 1 commit into
mainfrom
fix/main-filter-hash-channels

Conversation

@Elektr0Vodka

Copy link
Copy Markdown
Contributor

Fixes how the toolbox reads hash-only blocked channels and documents the 1 December DMC dev builds.

Problem

filter channel list marks entries added with filter channel add hash as #bot (23 hash) (Dutch-MeshCore/MeshCore#50). The toolbox took that whole text as the channel name, so applying, sharing or restoring the filter lost the hash-only mode.

Fix

  • The marker is parsed and kept in FilterSettings.hashOnly. Each blocked channel gets a Hash only switch in the Filter CLI, the Filter guide and USB Setup.
  • Support is detected from the usage line of a bare filter channel. This matters: on older firmware filter channel add hash #bot blocks a channel named hash, so it is never sent to a node without support. The Filter CLI generator cannot know the firmware and shows a warning instead.
  • The last name of a list the firmware cut off with .. was misread the same way.
  • Channel names over 31 bytes are refused, as the firmware does since fix(filter): five repeater filter bugs MeshCore#61.
  • Restoring a backup copied its filter settings unchecked; they now go through the same sanitizer as shared files. Names saved with the marker in them are repaired on load.

Docs and changelog (en, nl, de)

  • CLI Wiki, Filter guide and Filter CLI: matching by key, filter channel add hash, rate-limit order, malformed scan, and filter age in both directions (was still missing since fix(filter): filter age also drops messages stamped in the future MeshCore#34).
  • USB Setup help of the filter panel described options that do not exist; rewritten.
  • Changelog: packet filter and MQTT observer (1 December), the v1.18.0.1 pre-release (23 November), and a Toolbox entry.

Testing

  • npx vitest run: 329/329. With the old parser 11 of the filter tests fail.
  • npx tsc -b and npx vite build (to a folder outside the repo, so docs/ is untouched).
  • In the browser: the Filter CLI generator in dark theme and in light theme at phone width, the changelog in all three languages.

Not tested on a real node. The Dutch and German texts have not been read by a native speaker.

Notes for review

  • The changelog describes the 1 December dev builds, which are being rebuilt now. Merging deploys the site, so merge after those runs are done.
  • docs/ is not rebuilt here, as usual.
  • On phones the filter page already scrolled sideways because of the number fields; not changed here.

… builds

`filter channel list` marks entries added with `filter channel add hash` as
`#bot (23 hash)`. The toolbox took that whole text as the channel name, so
applying, sharing or restoring the filter lost the hash-only mode.

- Parse the marker and keep the mode in FilterSettings.hashOnly, with a "Hash
  only" switch per blocked channel. Support is detected from the usage line of
  `filter channel`: on older firmware `add hash #bot` blocks a channel named
  "hash", so it is never sent to a node without it.
- Read the last name of a list the firmware cut off with `..`.
- Refuse channel names over 31 bytes, as the firmware does since
  Dutch-MeshCore/MeshCore#61.
- Sanitize the filter settings of a restored backup, and repair names that were
  saved with the marker in them.
- CLI Wiki, Filter guide, Filter CLI and changelog (en, nl, de): key matching,
  rate-limit order, malformed scan, `filter age` in both directions, pull OTA
  and radio.watchdog. The USB Setup help of the filter panel described options
  that do not exist; rewritten.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying dutch-meshcore-toolbox with  Cloudflare Pages  Cloudflare Pages

Latest commit: a815193
Status: ✅  Deploy successful!
Preview URL: https://e5b7f7bb.dutch-meshcore-toolbox.pages.dev
Branch Preview URL: https://fix-main-filter-hash-channel.dutch-meshcore-toolbox.pages.dev

View logs

@Elektr0Vodka
Elektr0Vodka merged commit b862f12 into main Dec 1, 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