Add #help command with short list of all commands (v0.21.6) #49

Merged
kamilkrzywda merged 1 commits from fix/help-command into main 2026-09-26 12:54:06 +02:00
Owner

New #help exact-match command on the command channel: replies with a single short message listing every available command, one per line (#ping + the #rss family). Follows the existing registry pattern — handler registered next to #ping, returns one string → one packet (no drip-feed spacing, same as #rss help).

Also hardens the v0.21.5 multi-send spacing spec: its wall-clock assertion flaked under full-suite load; replaced with fake timers asserting line 1 goes out before any time elapses and lines 2–3 land exactly one delay apart.

Tests 173 → 174. Build clean, oxlint clean. Lockfile untouched.

New `#help` exact-match command on the command channel: replies with a single short message listing every available command, one per line (#ping + the #rss family). Follows the existing registry pattern — handler registered next to #ping, returns one string → one packet (no drip-feed spacing, same as #rss help). Also hardens the v0.21.5 multi-send spacing spec: its wall-clock assertion flaked under full-suite load; replaced with fake timers asserting line 1 goes out before any time elapses and lines 2–3 land exactly one delay apart. Tests 173 → 174. Build clean, oxlint clean. Lockfile untouched.
kamilkrzywda added 1 commit 2026-09-26 12:54:01 +02:00
Owner request: 'now add #help with short list of all command'. Registered in
the CommandService constructor next to #ping; returns a SINGLE multi-line
string (one packet, ~203 chars) — not an array, which would drip-feed one
spaced packet per line through the v0.21.5 MESH_MULTI_SEND_DELAY_MS loop.

Also hardened the v0.21.5 multi-send-spacing spec: its wall-clock assertion
('first send < 8 ms after t0') flaked under full-suite load — replaced with
fake timers, which assert deterministically that line 1 is out before any time
elapses and lines 2-3 land exactly one delay apart.
kamilkrzywda merged commit 9e558fd95e into main 2026-09-26 12:54:06 +02:00
kamilkrzywda deleted branch fix/help-command 2026-09-26 12:54:06 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OpenCode/MeshBot#49