Three more arguments that were reported as the radio's fault

`4` promises a caller that the node answered and a retry is worth
trying. An unknown admin node, an unknown courier contact and an `--at`
that is not a clock time are all decided before a word goes over the
air, so a caller retrying on `4` would retransmit nothing, forever.
`tx-optimize` had already answered the identical question the identical
way for a missing password; these had not caught up.

A refused admin login stays `4`. The node was reached and answered no,
the password may simply have changed, and that is exactly the case a
retry exists for — the line is whether anything was transmitted, not
whether the command worked.

The manual documented the old behaviour and called the inconsistency
out; it now documents the rule instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Opus 5 committed 2026-09-08 05:03:17 -04:00
1 parent c920f50584
commit b76a93808f
4 files changed
+49 -10

No files matched your search

+6 -4
View File
@@ -1186,8 +1186,9 @@ of `delivered`, `no ack`, `gave up`, `unknown contact`, `busy`, `gone` — kept
spaces and all, so the two faces say the same word.
`list` returns `5` on an empty outbox; `cancel` and `clear` return `5` when there was
nothing to act on. A contact the device does not know is a **device error** (`4`), not a
usage one.
nothing to act on. A contact the device does not know, a contact with no key to address,
and an `--at` that is not a clock time are all **usage errors** (`2`): the argument is
wrong, nothing was queued, and nothing went out over the air.
---
@@ -1365,8 +1366,9 @@ landed), but there is nothing to report, so it returns `5`.
Logging in happens automatically from the remembered password; run the interactive flow
once to store one, or pass `--password`. A refused login clears the saved password and
fails with `4`. **An absent password also fails with `4` here**, where `tx-optimize` calls
the same condition a usage error — worth knowing if you branch on the status.
fails with `4` — the node answered, and answered no. An **absent** password, and a node
name no contact matches, are usage errors (`2`): nothing was transmitted in either case,
which is the line `3` and `4` are drawn on.
**`--json`:**