Skip to content

feat(slave): accept unit ids up to 255; release 3.6.0 - #21

Merged
chetto1983 merged 2 commits into
masterfrom
claude/nifty-euler-ir1k3d
Nov 11, 2026
Merged

chetto1983 merged 2 commits into
masterfrom
claude/nifty-euler-ir1k3d

Conversation

@chetto1983

Copy link
Copy Markdown
Owner

What & why

The slave refused unit 255 ("not a unit or range in 1..247"), the unit most Modbus TCP devices answer as. The limit was only in the frontend (parseUnits, parseProject, the simulation editor). The backend keeps units as u8, and rmodbus 0.13 broadcasts only on unit 0, so 255 is served like any other unit. The backend code is unchanged; the master↔slave test now also runs on unit 255.

Includes the chore(release): 3.6.0 commit (version in package.json, Cargo.toml, tauri.conf.json and their lock files, plus the dated changelog section). After the merge, tag v3.6.0 on the merge commit.

Verification: docs/superpowers/verification/2026-11-11-slave-unit-255.md.

Type

  • feat: new capability
  • fix: bug fix
  • refactor / perf
  • docs
  • test
  • chore / ci / build (release bump)

Checklist

  • npm run check && npm run lint && npm run format:check && npm test pass (146 tests)
  • cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test pass (61 tests)
  • Coverage ≥ 85%: frontend 99.13% lines. Rust cargo llvm-cov not run locally; CI runs it.
  • No file exceeds 600 LOC (npm run file-size)
  • Protocol changes checked end to end against pymodbus (npm run e2e): the full suite was not run locally; CI runs it. Measured separately: pymodbus 3.16.2 as master against the real SlaveServer with unit 255 on TCP, UDP and RTU over TCP. Reads and writes work, and the unconfigured unit 254 gets no answer.
  • CHANGELOG.md updated
  • UI changes use the Aura tokens only (no colour changes)

Notes for reviewers

  • Serial RTU/ASCII: 248..255 are reserved (Modbus over Serial Line v1.02 §2.2). The slave allows them anyway, as the master already does (0..255). A spec-compliant serial master may not address them.
  • Tests were changed along with the behaviour: "248" is now valid, so the rejection cases move to 256 and 250-256. Cases that only failed through the empty-list error gain a valid unit beside them. Stryker on units.ts: 93.1%.

Generated by Claude Code

The slave refused unit 255 ("not a unit or range in 1..247"), the unit
most Modbus TCP devices answer as. The limit lived only in the frontend:
parseUnits, parseProject and the simulation editor. The backend keeps
units as u8 and rmodbus 0.13 broadcasts only on unit 0, so 255 is served
like any other unit; measured with pymodbus 3.16.2 as master over TCP,
UDP and RTU over TCP (docs/superpowers/verification/2026-11-11-slave-
unit-255.md). On serial lines 248..255 stay reserved by the spec; the
tool allows them, as the master side already does (0..255).

Tests changed with the behaviour: "248" is now a valid unit, so the
rejection cases move to 256 and 250-256. Cases that only failed through
the empty-list error ("5-2", "a") gain a valid unit beside them, and the
project check rejects a mixed [1, 256], so the range checks themselves
are exercised (Stryker on units.ts: 93.1%).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
Version 3.6.0 in package.json, Cargo.toml and tauri.conf.json (and their
lock files), and the dated changelog section that becomes the release
text. A minor release: the slave accepts unit ids up to 255.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c4660b1a-d34e-47a9-a396-4daeaaec479f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chetto1983
chetto1983 merged commit e3296b3 into master Nov 11, 2026
14 checks passed
@chetto1983
chetto1983 deleted the claude/nifty-euler-ir1k3d branch November 11, 2026 07:43
chetto1983 pushed a commit that referenced this pull request Nov 11, 2026
The scheme of chetto1983/Twinova and chetto1983/Aura ci.yml, ported on
the user's request:

- paths "**", "!**.md", "!docs/**" on push and pull_request, shared with
  a YAML anchor (supported by Actions: workflow syntax, "YAML anchors and
  aliases"). Nothing CI runs reads a Markdown file or docs/ (grep,
  2026-11-11: Prettier ignores both; docs/screenshots feeds only the
  site, pages.yml), so a change made only of them starts no run.
- push only on master: a working branch is checked by its pull_request
  run, so one SHA no longer runs twice (PR #21 ran CI for its push and
  for its pull request).
- bundle only on push: the MSI was the longest job of master run
  42981578708 (4 min 52 s), and on a pull request the E2E already builds
  and drives the app on both platforms.

CLAUDE.md's push discipline now says a working branch needs an open PR
to be checked, as Twinova's does.

Not measured on GitHub yet: the pull_request run of this change is the
first evaluation of the new triggers. If a check were ever made required
by branch protection, a prose-only PR would wait on it (checks of a
workflow skipped by paths stay pending, per the docs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
@chetto1983 chetto1983 mentioned this pull request Nov 11, 2026
8 of 13 tasks
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.

2 participants