The first build counted only the relays past the first hops of the
outbound paths. On JP's Public channel, 23 of 23 sent messages came back
only through the two home repeaters: each repeater relays one time, and
the next hop (8 km away) is too far for the companion to hear. So every
message showed the warning mark, and nothing was ever confirmed.
Now each repeater that sends a copy back counts, the same as a DM ack:
spinner, then a check with the number of repeaters, or a cross. The
warning state, the near-relay snapshot of each send, the ^P atom, and
heard_via are removed. heard_relays keeps only the paths; a database with
the first build of the table gets it made again (derived data only).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The history draws its conversations, greetings, traces and neighbours from
one random source. #mcoimg's lines took numbers from it (as messages and as
the greeting adverts before them), which moved the route the video's trace
to Brossard learns off Mont-Royal, and the trace got no reply. Channels past
the first four slots now draw from sources of their own, so the shared one
ends where it did in 0.12.0 and the route is Mont-Royal again (3233x).
Four holds of the video tour are shorter, so it stays under two minutes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The transcript capped an image's height by the platform's rows, so the
Cardputer drew the 30x30 woodpecker at 20x20, and the ^U view at 18x18.
Now neither shrinks it: one pixel is one cell wide, a tall image scrolls
like a long message, and the ^U view only grows it by a whole number
where the frame has room. Only an image wider than the screen still
shrinks, to fit the width.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The demo device holds #mcoimg in slot 4: a short talk about pixel art
around three images, the real 30x30 woodpecker last so the chat opens on
it. The tour saves it as mcoimg.png after the map, waiting on the
channel's title, which every set draws.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three gallery cases with a real 30x30 image: the transcript, the picked
message (^U image, the Image chip), and the ^U view, on all four sizes.
They showed the Cardputer's view shrinking the image to 12x12 to fit the
im3: string. The string may now only stop the image from growing; when
it would make the image smaller than it is alone, it goes a page down.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The decoder moves from core/mcoimg.py to core/mcoimg_decode.py, unchanged.
mcoimg.py keeps recognition (the caption needs only the header) and is
what the chat imports; pixelart imports the decoder inside decoded().
On the PicoCalc the decoder cost about 50 ms on every chat import.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ^U view now shows the text the sender transmitted, as a centred block
under the caption, so it can be examined or copied. The string never
shrinks the image below its own size: when both cannot fit, the image
keeps the rows and the string goes a page down, as a large QR code's URL
does. A test now pins that ^U opens the view with images shown too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A small image grown to fill the bare frame touched its edges: a wide one
ran edge to edge, and a tall one took every row. It now keeps two cells
at each side and three free rows, which the frame splits one above and
two below, so it sits centred a little above the middle as a code does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a picked message that is an MCOimg image, ^U opens it on a bare frame,
grown by a whole number to fill it, with its caption under it. The lane
chip reads Image and the hint ^U image. The new chat_images preference
(Display, on by default) can turn the inline drawing off; then the chat
shows the caption only, and ^U is the way to see the image. Refs #37.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A v3 image (im3:) is now decoded in full: all 16 palette profiles, 4 scan
orders, 8 containers, 16 block algorithms, and every local palette form.
The decoder is written from the published spec; the palette colours are
interop data generated from meshcore-open's tables (MIT, credited).
Hostile input returns None and never raises; a 64x64 image takes ~20 ms.
The chat draws two pixels per cell (top colour over bottom background),
at the body's indent, shrunk by nearest pixel to fit the lane and the
platform's rows. All 45 reference vectors pass, copied to tests/data.
Refs #37.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A message whose body is an MCOimg image (im3:, or im: for v1/v2) now reads
"🎨 image · 24×24 · 16 colours" in the transcript and the Messages preview.
The v3 header gives the size and the palette; the pixels are not decoded yet.
The Base91 text no longer makes false mention chips, links, or QR codes.
Checked against all 51 reference vectors. Refs #37.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When slot 0 was empty, the Chat picker showed a Public row that looked like
a real channel, and every send on it failed with "the device has no contact
with that key" (#36). The row is now an offer: Enter asks to add Public to
slot 0, and the chat opens only after the write. The CLI lists only the
channels on the device, and a refused channel send names the empty slot.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Device info, Device config, and Send advert now sit on our own node
page, read from the menu's registry and run through the menu's own
runner (`_run_selection`, now public as `run_tool`). When Device config
renames or moves our node, the page opens again with the new values,
and our row in the Contacts list takes the new name in place.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Enter on our row raised UnboundLocalError: the advert-repair row read
`refused`, which only a contact's page set. It now starts as None.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Enter on a received channel message whose sender has no known key opened
Trace path, out to the first relay and back. The sender is a companion
(only a companion sends channel text), so it is the target of the walk,
and the rules of a target that does not relay apply. The dialog now opens
Trace target under the name of the sender:
- The walk turns at the relay that heard the sender, and the line under
the route says so.
- The composer mirrors the route at its last hop. It has no Auto row,
because the session has no route to plan for a node with no key.
- The screen has no Explore row, because the evidence graph keeps nodes
by key.
- A sender with a key but no stored type is also a companion now.
A sender with no key and no name, and a direct message from a peer with no
key, offer no trace.
Refs: #34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A companion, a room server, or a sensor does not relay a trace with the
firmware defaults (allowPacketForward in Mesh.cpp: client repeat is off,
and allowed only on 433.000, 869.495, and 918.000 MHz; disable_fwd is on).
A walk that turned at one of them never came home: the history held 36
companion traces and no reply from a real one.
The route to such a node is the same. Only the walk changes: it turns at
the last relay of the route, and the node is not in the spec. The route
out of a walk that comes home is still the full route to the node, so
the Device route row can offer it for DMs and admin.
- relays_traces() in models states the rule. render_forced_spec takes
relays=False, and forced_outbound reads the route back from a walk.
- services/trace_plan holds the route choice that the trace screen made
inline (radio route, outbound paths, best observed, last trace,
direct), so the CLI uses the same one.
- The trace screen names the relay where the walk turns, in a line under
the route. With no relay to turn at, Trace is dim. A neighbour that
does not relay gets "no relays" offered on the Device route row, with
the packets heard directly as its proof.
- The trace session turns a caller's spec (node page, Message paths) at
the last relay, so the callers do not need the rule. A sender that is
not a contact gets its type from its stored adverts.
- The composer and Explore paths turn the walk at the last hop.
- `meshterm trace -t NAME` with no --path walks the menu's route and says
on stderr where it turns. With no known relay, it is a usage error.
- The connection turns a device-routed trace at the last learned relay.
The simulator now stops a walk at a node that does not relay, as the
mesh does, and the tests that walked through Alice walk repeaters.
The picker keeps one list with no mark, sorted as before (JP's choice).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Enter on an arrival in the Message paths dialog (^P in a chat) opens a trace
of the route that the row draws, walked from our node:
- A received message is traced back to its sender: the relays in reverse,
out to the sender, and back on the mirror (Trace target).
- A sent direct message is traced out to its recipient on the relays in
order (Trace target).
- A sent channel message came back to our node, so its relays are the full
walk (Trace path).
- A sender with no key turns the trace at the first relay (Trace path).
- A direct-routed copy carries only the rest of its route, so it offers no
trace, and the hint does not show Enter there.
The trace screen opens idle and armed. Nothing transmits until the user
starts a trace. The dialog stays pushed under it as a hub, so Esc from the
trace comes back to the same dialog and highlight. In Trace target, a trace
that comes home lights the Device route row, so the route a message took can
become the radio's route to that contact.
A sender that is not a contact opens on its key, and open_trace takes a
label so that the screen shows its name instead of the hex.
Refs: #34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Explore paths → Probe all walks each candidate once. When the user adopts a
candidate, that trace already measured exactly the adopted route, so the
screen now starts the route with it instead of with no traces. The Device
route row then offers a route that came home at once, with no second
transmission to prove it again.
The session keeps the probe traces by spec (seed_traces). Any later change to
a probed spec starts with them too, because they measured that route.
Refs: #34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Trace target gets a Device route row after Explore paths, for a target that
the radio has as a contact. It says what the radio holds now, and Enter opens
the node page's Device route popup.
A trace that came home walked its route out and back, the best proof that
MeshTerm can have for a route. When its route out is not the radio's route,
the row turns green: "Use this route for DMs and admin — 4/5 came home…".
Nothing interrupts the session. The popup then shows the traced route with
its proof, and offers "Use the traced route" and, with a site, "Use and keep
it" before the usual rows. The popup changes no path of the trace screen, so
its traces and medians stay.
The gallery's Trace specimen draws the green row at both widths, and the
features guide says what it does.
Refs: #34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Routes tab ends on a "Device route · …" row that says what the radio
holds now: none (it floods), or the hop count and how the radio got it
(learned, set by you, kept at a site). Enter opens one popup that turns its
page:
- The first page draws the route and the kept route (with why a kept route is
not in the radio: its first hop went silent), then the actions: Set the
route…, Keep this route (or Stop keeping it), Forget the route, Discover
routes…. With no site, Keep says that it needs one and opens Outbound paths.
- Set the route… turns to a picker: the suggested route first (an outbound
path, then the best way on), the routes heard, no relays, and Compose…, which
opens the path composer. A picked route replaces a kept route too.
- Discover routes… waits for the cooldown, sends one path discovery, and shows
the route each way. "Use this route" sets the route out.
After a change, the Routes tab is drawn again in place, with the highlight on
the row. Gallery specimens for both pages, and the glossary and features guide
name device, kept, and saved routes and path discovery.
Refs: #34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
meshterm route works on the route that the radio holds to each contact,
with a plain face and a --json face. It has no menu row: the menu works
on a route from the node page of the contact.
- list and show: the spec, the origin (kept, set, learned, flood), the
kept spec, where it is kept (site or fixed device), the drawn route
from our node to the contact, and a kept route skipped because its
first hop is silent.
- set (--keep), forget (--yes), keep, unkeep: each prints the route as
it is afterwards. keep without a site fails with exit 1 and names
meshterm outbound use.
- discover (--use): one path discovery, the route each way.
- sync: the reconcile of the connection, with its counts.
Refs: #34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The companion holds one device route per contact and replaces it with every
path return, good or bad. MeshTerm can now write that route, keep it, and
make the routes follow the user from site to site.
- Device.set_route reads the radio's own record and writes it back with only
the route changed, at the radio's hash width. Device.discover_route sends one
path discovery and returns the route each way. The radio's PATH_UPDATE is a
new hub event, EventKind.ROUTE.
- The outbound store keeps device routes per site and per fixed device (kept),
and the routes a site learned (saved). Keep needs a site or a fixed device.
- services/device_routes.RouteKeeper (ctx.routes): forget, set, keep, unkeep,
discover, and the status the pages show. At each connection and after each
site change it reconciles: routes that start on another site's first hop are
saved for that site and cleared, the new site's saved routes come back, and
kept routes are written back. A silent first hop is skipped. A route change
that the radio pushes gets the kept route written back.
- A site change on the Outbound paths page, its suggestion, and
`meshterm outbound use` go through the reconcile and say what changed.
- New preference auto_route (off): before a DM, set the suggested route when
the radio has none, or one from another site.
Refs: #34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The companion keeps one route for each contact and never forgets a dead
one, so each retry on it was lost with no error. Now ^R on a direct
message that went along the learned route asks: Cancel, On route, or By
flood. By flood forgets the route (nothing is transmitted), flushes the
contact cache, and sends the one retry. A message that already went by
flood keeps the plain ^R. The admin login offers Try by flood the same
way after a silence from a node that has a route, one time for each
flow. Nothing floods unless the user chooses it.
Refs: #34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The user names the ways out of their node, one or more hops long, in order.
Each site of this computer (Home, Foulab) has its own list, one site is
active, and a fixed device keeps its own list.
- Explore > Outbound paths: the sites with the active mark, the fixed
devices, and a staged editor for each list. Each path shows how well its
first hop hears us (out) and how well we hear it (in). Measure sends one
trace out along a path and back, after the cooldown.
- The path composer has an outbound mode, and puts the active paths first
while the insertion slot is at our node (trace target, trace path, the
TX sweep route).
- MeshTopology.outbound_scenarios: one route through each path. It scores
from the link after the path, lets the user's order win a near tie, and
skips a path whose first hop was silent for outbound_silent_hours. These
routes lead Explore paths, the node page's Routes tab, and the trace auto
route, ahead of a device route that starts on another hop.
- A first link out of our node is scored from what the far end measured,
when a trace gave such readings.
- The site suggestion: when the radio hears the first hop of another site
three times, the main menu asks to use that site and says what it heard.
"Never suggest" sets the new suggest_site preference off.
- CLI: meshterm outbound [show|sites|use|set|remove|fix|unfix], plain and
--json.
Refs: #35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
core/outbound_store.py keeps, in outbound.json, the sites of this computer
with their outbound paths in order, the active site, and the fixed devices
with their own paths. lookup() gives the fixed device's paths, else the
active site's, else none. The glossary gains outbound path, site, and fixed
device.
Refs: #35
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
A link pooled the readings of its two directions, and received packets far
outnumber trace first hops. Link.heard_at now keeps each reading under the
node that measured it, and MeshTopology.readings(sender, receiver) gives one
direction. A neighbour report is the repeater's own reading, so it goes in
as the reverse pair. The pooled ranking does not change.
Refs: #35
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Trace path with no path starts its highlight on Compose path, because
Trace cannot act there. Adopting a route in Explore paths moves the
highlight to Trace, the same as the composer, so Enter walks it.
In the composer, "Use this path" is now the last row, after Auto.
Refs #29
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
A MeshCore node keeps its name in a 32-byte field, but the sender and mention
patterns stopped at 20 characters. A sender with the name YUL-H7H-SiO-C-Heltec1
(21 characters) showed with no name and no key. The patterns of the channel
sender, the mention, and the compose chip now use one limit, MAX_SENDER_NAME.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The reporter of #28 asked for a way to clear one or all of the stored admin
passwords. Del in the node picker forgets one. This adds the other: a
"Forget passwords" row in the Managed nodes section of the menu, behind the
red typed confirm (type FORGET), which names the nodes it will forget. It
also forgets the password of a node that is no longer a contact, which no
list shows. With nothing stored, it says so and asks nothing.
On the CLI it is `forget-admin-passwords --yes`: without --yes it is a usage
error, and with it the answer lists the nodes it forgot (NAME, LAST_LOGIN,
KEY). It exits 5 when nothing was stored, and works with no device.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stock repeater sends no reply for a wrong password: handleLoginReq returns 0,
and the companion pushes LOGIN_FAILED only when a reply arrives that is not "OK".
The simulator refused a wrong password instead, so --mock and the tests never
walked the path of #28. Now a wrong password gets NO_REPLY from the simulator,
and only a node in its new _refusing set refuses, as other firmware can.
The comments that said the firmware sends a refusal now say what it does. A new
test walks #28 from end to end on the simulator: the stored password gets
silence, the user selects "New password…", and the repeater accepts the new one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A script cannot get the "New password…" offer of the menu. When a saved password
gets no reply, `repeater-admin` and `tx-optimize` now say that the password may
have changed, because a node does not answer a wrong password, and that a new run
with --password repairs it: a password that the node accepts replaces the saved
one. With an explicit --password, the error says only that it can be wrong (#28).
The CLI manual describes both cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The menu had no way to make MeshTerm forget an admin password (#28). Now Del on a
managed node in the node picker asks first (amber, Cancel or Forget), then forgets
the password. The list refreshes in place: the node leaves "Managed nodes" and the
highlight stays on it. The footer shows "Del forget" only on a managed row, and the
PicoCalc lane shows its Delete chip.
The first page of the TX optimize dialog has the same rows, so it takes the same
Del. A wizard page can now carry a Del key and an on_delete handler, and a turned
page brings its own Del key, so the second page shows none.
The feature guide also describes the new-password offer of the previous commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stock repeater or room server does not answer a wrong password, so a password
that the owner changed comes back as no reply, the same as a node that is down.
MeshTerm kept the old password after the silence and tried it again at each
visit with no prompt, so the user could never type the new one (#28).
Now the dialog says that a changed password can be the cause, and offers Cancel
or "New password…". The new password replaces the stored one only when the node
accepts it, so a node that is down keeps its password. Repeater admin, the TX
sweep, and the neighbour fetch of the trace screen share this flow
(ui/admin_login.py). The bulk clock sync names the same two causes on its line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rows of "Archive contacts — n to archive" read NAME · HEARD · PKTS · PLACE.
MSGS and HOPS were almost always empty for a sweep candidate; the scores still
use both signals. PLACE is text, so its word and values align left, and it is
last, so ←→ brings it back on a narrow terminal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The places were found once with the real finder (tiles, then Nominatim) and
frozen in world.PLACES. The history stores them, so the demo shows places at
once, its place job sends no request, and each run is the same. The demo home
also clears places.json at each start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An archived contact is no longer on the device, so the job never saw its
location unless an advert was heard. The contact store keeps that location;
the scan now reads the archived contacts of the device from it. On JP's data,
290 of 422 archived contacts had a location and only 68 had a place.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A text lane padded its label to the lane width before the triangle, so the
triangle landed at the far end of the wide PLACE lane, often past the screen
edge. The label is now unpadded, as NAME's is; the columns do not move.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CLI sorts on the same ring as the Contacts screen (name, heard, packets,
place, hash). The ring moved to ui/widgets.py so the CLI loads no TUI code, and
ordered_contacts sorts by place (no place last) and by key.
The Archived list reads NAME · ARCHIVED · PLACE · KEY, sorts by place, cuts no
value and pans with ←→, like the Contacts list. The place fill and its live
refresh moved from ContactsScreen into ContactListScreen, so any list that
declares the PLACE lane gets them from places=.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MapMarker carries a place, open_map reads it for each marker, and both the screen
and the renderer match label or place through MapMarker.matches.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Each screen opens with node names and keeps its own choice. Node detail acts only on
the Routes tab (F1). The packet viewer changes its via line and its from/to chips (F1).
Live feed changes the endpoint chips of an addressed packet (F1). Trace changes its
route lane and its per-hop links (F1). Each hint and chip shows only where a line has
a named hop.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>