A sent channel message shows whether it went past your near relays
A channel has no acknowledgement, but the radio hears each repeater that relays our message, and each copy names the relays that it went through. The end of our channel message now shows a spinner, then a check and the number of relays past the near relays (the first hops of the outbound paths that apply), a warning when only the near relays sent it back, or a cross when no relay did. A near relay is near by identity, at any place in a path. Managed nodes play no part: a remote managed repeater counts. - services/heard_by.py: the verdict, and a tracker that fills in the background and refreshes on each channel packet. Settled verdicts are stored (schema 24, heard_relays), with the near relays of each send. - The picked message names the relays and the near relay that carried it. - ^P counts the relays past the near relays. - chat history --channel: a HEARD lane; --json gives heard, heard_by, heard_via. - New preference heard_wait_s (Relay wait, 30 s). - Fix: a copy of our own channel message must carry the time of that send, so two messages with the same text no longer share copies. Closes #38 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fa912032a3
commit
f4b1d659d1
14 files changed
+1162
-23
No files matched your search
+26
-1
@@ -1145,6 +1145,27 @@ $ meshterm --absolute chat history --to Alice
|
||||
takes the rest of the line. A message body is the one field that can hold any text, so no
|
||||
column can follow it.
|
||||
|
||||
**Relays.** A channel has no acknowledgement. But your radio hears the repeaters that relay
|
||||
your message, and each copy names the relays that it went through. The `history` of a
|
||||
channel has a `HEARD` column for each of your own messages:
|
||||
|
||||
```console
|
||||
$ meshterm chat history --channel 0
|
||||
TIME DIR PEER SNR_DB HEARD TEXT
|
||||
12m in Public +6.5 - Alice: anyone on the ridge?
|
||||
10m out Public - 3 heading up now
|
||||
4m out Public - near at the top
|
||||
now out Public - wait coming down
|
||||
```
|
||||
|
||||
A number is the count of relays past your **near relays**: the first hop of each outbound
|
||||
path of the active site, or of the fixed device (refer to `meshterm outbound`). These
|
||||
relays heard your message, so it went farther than the repeaters next to you. `near`
|
||||
means that only your near relays sent it back. `none` means that no relay sent it back.
|
||||
`wait` means that the message is still in its wait (the `heard_wait_s` preference). With
|
||||
no outbound paths, each relay counts. MeshTerm sees only the relays that your radio hears,
|
||||
and only while it is connected. A received message has no value (`-`).
|
||||
|
||||
**Rooms.** A room server is a message board that lives on a radio. First, join the room
|
||||
with [`meshterm rooms join`](#meshterm-rooms). After that, post with `send --to`, in the
|
||||
same way as a direct message. `acked yes` means that the room stored the post. It does
|
||||
@@ -1222,7 +1243,10 @@ $ meshterm chat send "all clear" --channel 0 --scope '*' --json
|
||||
the purpose of the one absence token. It is also the reason why the plain face prints
|
||||
nothing there: it has no way to say it.
|
||||
|
||||
`history` is an array, with the oldest message first:
|
||||
`history` is an array, with the oldest message first. Each record also has `heard`
|
||||
(`"waiting"`, `"beyond"`, `"nearby"`, `"unheard"`, or `null` when the message is not
|
||||
your own channel message), `heard_by` (the hashes of the relays past your near relays),
|
||||
and `heard_via` (the near relays that carried the message out):
|
||||
|
||||
```json
|
||||
{"created_at":"2026-09-08T08:27:37Z","direction":"out","node":{"name":"Alice","key":null,"hash":"d4e5f6a7","type":null,"self":false},"channel":null,"author":null,"snr_db":null,"text":"on my way","acked":true}
|
||||
@@ -2002,6 +2026,7 @@ flood_advert_cooldown_s 60 60
|
||||
weekly_flood_advert off off Flood an advert after a week without one
|
||||
advert_quiet_s 30 30 Silence to wait for before the weekly advert
|
||||
direct_message_soft_retries 0 0 Times to resend a message that gets no reply
|
||||
heard_wait_s 30 30 Wait this long for a relay of a channel message
|
||||
room_relogin_minutes 30 30 Opening a room this quiet logs in again
|
||||
tx_opt_min 18 18 Weakest power it will try
|
||||
tx_opt_max 28 28 Strongest power it will try
|
||||
|
||||
@@ -183,6 +183,7 @@ and in quoted text.
|
||||
| path | An ordered list of hops that you write or force (`a1,3d,…`) | |
|
||||
| route | The sequence of nodes that a trace went through or will go through | |
|
||||
| hop | One node in a path or a route | |
|
||||
| near relay | The first hop of an outbound path that applies now. A copy of our channel message that only near relays sent back proves that the message left our radio, not that it went farther | own repeater, home repeater, local relay |
|
||||
| outbound path | A path that starts at our node and goes out into the mesh, one or more hops long. The user trusts it for the first hops of a route, because the user knows which way out works | outbound leg (for this: an outbound leg is the outbound half of a trace) |
|
||||
| site | A name for where the user takes the computer (`Home`, `Foulab`), with its outbound paths in order. One site is active | profile (for this: a profile is a connection alias in `config.toml`) |
|
||||
| fixed device | A companion that never moves. It keeps its own outbound paths, and the active site does not apply to it | |
|
||||
|
||||
@@ -15,7 +15,7 @@ This page lists each interactive screen with its scripted equivalent, where one
|
||||
|
||||
| Feature | What it does | Scripted |
|
||||
| --- | --- | --- |
|
||||
| **💬 Chat** | Live full-screen messages on channels and to contacts. The transcript scrolls, the input line stays at the bottom, and sent and received messages appear together. The rooms that you joined are also here. Each post shows under the name of its author. MeshTerm stores each message. Unread counts show in the menu header. To see each path on which a message reached your node, select the message and press ^P. Enter on a path opens a trace of that route: back to the sender of a received message, or out to the contact of a sent direct message. When the trace comes home, the Device route row can make that route the radio's route to the contact. | `meshterm chat send / history / list / listen` |
|
||||
| **💬 Chat** | Live full-screen messages on channels and to contacts. The transcript scrolls, the input line stays at the bottom, and sent and received messages appear together. The rooms that you joined are also here. Each post shows under the name of its author. MeshTerm stores each message. Unread counts show in the menu header. To see each path on which a message reached your node, select the message and press ^P. Your own channel message shows whether it went past your near relays (the first hops of your outbound paths): a spinner, then `✓` and the number of relays that heard it, `⚠` when only your near relays sent it back, or `✗` when no relay did. Enter on a path opens a trace of that route: back to the sender of a received message, or out to the contact of a sent direct message. When the trace comes home, the Device route row can make that route the radio's route to the contact. | `meshterm chat send / history / list / listen` |
|
||||
| **📻 Channels** | Create, join, reorder, mute, and share mesh channels. You can share a channel with a QR code or a `meshcore://` link. If you give a channel a **send scope**, its messages are flooded into one region. Only the repeaters that carry that region relay them. When you change to a new device, export all the channels to a file, then import the file on the new device. The **channel guide** lists the public channels that MeshTerm heard, also the channels that are not on your device, and adds one with Enter. | `meshterm channels list / add / join / import / share / clear / scope / export / guide` |
|
||||
| **📌 Rooms** | Each room server that your radio knows. A room server is a message board on a radio. It keeps the latest posts and sends you the posts that you missed. Join a room with its password. If a room does not answer, MeshTerm tells you what it knows and offers the next step to try. For example, it can send again by flood when the route that your radio learned is no longer good. When the clock of a room goes back (often after a reboot), the room sends you no new post, because each new post looks older than the ones that you have. The node page of the room then says so and offers to ask for all its posts again. | `meshterm rooms list / join / forget` |
|
||||
| **📨 Courier** | A store-and-forward outbox for contacts that you cannot reach yet. Queue a message. MeshTerm sends it when the contact is next heard, or at a time that you set. It tracks the acks, and it waits longer between each try (exponential backoff). | `meshterm courier queue / list / send / cancel / clear` |
|
||||
|
||||
Reference in new issue
Block a user