Commit Graph
804 Commits
Author SHA1 Message Date
Richard OberholtzerandClaude Opus 5.5 b983f36ceb Merge upstream MeshTerm 1.0.0
Conflicts resolved by keeping both sides:
  docs/cli/README.md, docs/guide/features.md (parts/reactions + relay mark)
  meshterm/core/preferences.py (reaction_emoji, message_parts_max + heard_wait_s)
  meshterm/services/chat_service.py (reaction check + upstream mute/listed split)
  meshterm/ui/chat.py (reaction count + relay mark in the render cache;
    each sent part is tracked for the relay mark)
  meshterm/ui/tui/session.py: upstream's "e": "reveal" is kept, and the
    chat screen takes "reveal" as react, so ^E still reacts in the chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174TBnQH8S3nYNaxo5zk9Yu
2026-11-24 08:18:31 -05:00
Richard OberholtzerandClaude Opus 5.5 2e06e82b5e Merge upstream MeshTerm 0.13.0
Conflicts resolved by keeping both sides:
  docs/development/writing-style.md (reaction/part terms + pixel image)
  meshterm/core/connection.py (sender timestamp + empty channel slot error)
  meshterm/tools/chat.py, meshterm/ui/chat.py (reactions/parts + pixel images)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174TBnQH8S3nYNaxo5zk9Yu
2026-11-24 08:06:31 -05:00
Jean-Pierre MartineauandClaude Opus 5 bf79f9975c A silent expander gets more tries, and a failed start says more in the log
A user on a Cardputer Zero could not connect his Cap. MeshTerm stopped
with "nothing answers at 0x43 on /dev/i2c-1", and no log said more than
the dialog did. His Cap is the older Cap LoRa868, which carries no
expander at all. Support for that board follows separately. What this
commit changes is what MeshTerm knows when the next board stays silent.

The expander gets more than one try. The first read still comes after
POWER_SETTLE_S, which is sufficient on the boards we have. A board with
a slower power rail refuses that read and answers a moment later, and
that must not read as an absent board. The node now tries again until
PI4IO_WAIT_S is spent. A board that is ready still answers at once, so
nothing waits.

The log of that failure carries the error of the bus. The sentence the
user reads cannot carry it, because a refused address and a broken bus
are the same thing to that user. They are not the same thing to us, and
only the log can tell them apart afterwards.

The node also writes its wiring to its own log. A board problem is
reported with that file, and the wiring can come from a profile that
the reporter wrote, so the file must say which pins the node used.

The startup picker writes a failed connection to meshterm.log at
WARNING. It wrote nothing before, on the reasoning that the dialog
already says all that the log would say. That holds while the dialog is
up. A user who reports a problem sends the log file long after it is
gone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-23 00:01:19 -05:00
Jean-Pierre MartineauandClaude Opus 5 63e31c334b The neighbour table is a full screen, not a dialog
The reader is in this list rather than being asked something by it:
they sort it, filter it, and open a node page from it. That is a place,
and the stack is for places, so it is a page like the Contacts list and
not a box over the admin page (JP, 2026-11-22).

The title gains the count, as a page announces its size, and a short
title keeps the way out of the title bar on a narrow frame where a long
node name would otherwise cut it.

It still does not pan, unlike the two other full-screen contact lists.
Panning earns its cells where a lane holds text of an unknown width
(the PLACE of the Contacts list). Here each middle lane is five cells,
so the only value the terminal can cut is the key, and a key cut at the
edge reads better than a short key padded to the width of a 64-hex
lane.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-22 23:26:37 -05:00
Jean-Pierre MartineauandClaude Opus 5 d2de2caf60 Repeater admin lists the neighbours the node hears
The neighbour table says which nodes a repeater receives directly, and
how strongly. Until now the only way to it was the Fetch neighbours row
of the trace path composer, three steps in, and the table dissolved into
the evidence graph with no screen that showed it.

The admin page gets a Neighbours row. The session is already open, so
the fetch sends no second login. It runs under the spinner dialog with
Abort that the reads use, and the answer floats as the Trace-target
picker does: the same lane layout, the same Ctrl+arrow sort ring, the
same type-to-filter, the same node hues, type marks, and key lane.
Enter opens the node page of the highlighted neighbour, and the list
stays pushed under it, so Esc comes back to the same row in the same
sort.

Only the two middle lanes are new, because here the readings belong to
the remote node and not to us: SNR is what that node measured, and HEARD
is how long ago it received from the neighbour. Both are declarations in
the shared lane spec, so the header, the rows, the widths, and the sort
metric all read the same tuple. The contact list gains an `snr` lane
kind, an `absent` word for an age lane (a neighbour with no age is not
"never" heard: the node hears it and did not say when), and an
`unknown` flag that draws the `○` mark, because a type mark on a node
nobody identified is a claim we cannot make.

A neighbour the device holds as a contact carries that contact. One
that nothing can name carries a contact of its key prefix alone, so
every row opens a page: it shows what the stored history knows about a
node our own radio never heard, which is the question the reader has.

The snapshot goes to the repository as before, so a fetch from here
feeds the mesh walk, the path composer, and the trace scenarios exactly
as a fetch from the composer does.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-22 22:44:53 -05:00
Jean-Pierre MartineauandClaude Opus 5 17912782ee A filter keeps what a page does, on every screen that filters
The rule reached the exit pair of an editor and stopped there. A typed
query still took the Actions section of the Device config, the repeater
admin and the region editor, the Archive and View archived rows of the
Contacts list, the Add rows of Channels and Outbound paths, the bulk
sync of the Clock drift page, the Queue and Clear rows of the Courier,
the delete rows of the Trophy case, the alert actions of the
Watchtower, the whole-mesh row of the Time Machine, Probe all and Keep
current path in Trace, and the actions of the Device route popup.

Find-as-you-type searches the data of a list: the contacts, the
settings, the slots, the queued messages, the records. A row that acts
on the page is not in that data, so a query that matches no record hid
the way to act and said nothing about how to get it back. Each such row
now declares always_shown, and menu_rows takes the flag for a whole
section.

A list that is a menu keeps the old behaviour. The main menu, the
actions of one room, the actions of one outbound path, and the startup
offer are made of verbs, and there the query is how a reader finds one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-22 14:05:03 -05:00
Jean-Pierre MartineauandClaude Opus 5 5902b76e68 A typed filter never hides the way out of an editor
Apply has no keyboard key of its own. On the Preferences page, the
Device config page, the repeater admin page, the outbound editor, the
region editor, and the archive sweep, a typed query narrowed the rows
and took the exit pair with them. The staged changes were then only
reachable by a press of Esc that clears the filter, which nothing on
the screen says.

A Choice can now declare always_shown, and the filter keeps such a row
as it keeps each separator. The exit pair of menus.exit_rows, the
live-then-save pair of the region editor, and the Archive/Back pair of
the sweep declare it. A verb row that a reader searches for, such as an
Actions section or a menu, is content and filters as before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-22 12:06:15 -05:00
Jean-Pierre MartineauandClaude Opus 5 cd38012506 Ruff passes on the whole package again
Three breaks had landed: one docstring line of 102 cells in
public_default, and two calls that the formatter joins back onto one
line in chat and menu. Nothing but the shape of the text changed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-22 02:46:52 -05:00
Jean-Pierre MartineauandClaude Opus 5 6eb611a6be A radio with no channel gets the standard Public one at startup
A radio that arrives with no channel at all cannot send anywhere: each
send needs a slot, and the device refuses a send on a slot it does not
have. A new user reads the empty Chat picker as "nobody is here", not
as "this radio has no channel".

So MeshTerm writes the channel that MeshCore itself ships, on slot 0,
and says so on the splash. It does not ask: the key is well known and
the device had nothing to lose, which is the same judgment as the
position that the settings offer restores silently. One preference,
public_on_empty_device, on by default, turns it off.

The step is cheap and quiet. It reads slot 0 first, so a radio that
has channels pays one round trip at each startup. It writes only on a
slot probe that finished, because an unfinished probe returns a short
list that reads exactly like an empty device. The simulator is passed
over: it starts empty at each launch, so it would write and raise a
card on every run of the development loop.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-22 00:39:43 -05:00
Jean-Pierre MartineauandClaude Opus 5 66ffae49f6 The name Public asks again, and the Public offer reads the key
#Public is not the standard Public channel: its key comes from its
name, so its hash differs and no other node is on it. But the two add
rows sit side by side, and Public is the obvious word to type into
"Public channel name:". A user who did that got a channel that looked
right in every list, that sent with no error, and that nobody heard.

Two halves of the same hole. The name now asks again and offers the
standard channel instead, without refusing the name. And the Chat
picker's offer no longer waits for slot 0 to be empty: the
well-known key decides, not the slot, so a #Public in slot 0 cannot
hide the one way back to the real channel. The offer names the lowest
free slot, and the add confirms that slot against the real capacity
before it writes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-22 00:39:35 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 d6a5bed974 Each sound event has its own switch; the per-conversation sound settings are gone
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 01:35:16 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 da2e5d3044 Channels have no sound row; a muted channel is silent; mentions always play
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 01:06:32 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 037585dd15 The Sound preferences read clearly at 72 columns, and their dialogs ask a real question
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:54:11 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 ea84d7f9dd A notification with no sound can flash the title
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:35:15 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 317279f934 A low battery plays its sound once, and each packet can tick
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:27:09 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 6c58299e7d Each channel, DM, and room has a Sound row: default, off, mentions, or all
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:21:54 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 0b04ce5c94 The volume is a slider of ten steps, and each step plays the channel sound
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:14:29 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 72631f623f ^S mutes the sounds from any screen; the header and the menu show 🔊 or 🔇
The first switch (sounds on or off, off by default) becomes a mute,
off by default: "no sound" is a theme. The volume is now ten steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:07:11 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 af34c622b6 The PIN reveal moves to ^E, so ^S is free for the sound mute
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:59:40 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 5dc62cdc5b Relay marks count every repeater; near relays are gone
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>
2026-11-20 21:21:11 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 f4b1d659d1 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>
2026-11-20 20:29:59 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 89037f6616 A pixel image keeps its own size; a tall one scrolls instead of shrinking
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>
2026-11-20 17:05:14 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 c5b2e87ca4 Gallery covers the pixel image; ^U view never shrinks it for its string
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>
2026-11-20 16:47:17 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 e84c902a80 The MCOimg pixel decoder loads at the first image, not with the chat
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>
2026-11-20 00:47:53 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 2f2225b8bb The full-screen image shows the message's im3: string under its caption
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>
2026-11-19 23:37:23 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 24b7690870 The pixel image preference is show_mcoimg
Renamed from chat_images, which no released version ever had, so the old
name is not retired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:49:23 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 7306f05d9f The full-screen image keeps a margin, centred like the QR codes
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>
2026-11-19 22:44:32 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 1ff2eecf76 ^U opens a chat's pixel image full-frame; chat_images preference
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>
2026-11-19 22:41:18 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 5fb11e1acd Chat draws MCOimg pixel images in half blocks under their caption
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>
2026-11-19 22:18:21 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 017fdcfce7 Chat shows an MCOimg pixel image as a short line instead of Base91 noise
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>
2026-11-19 21:58:45 -05:00
rich 955494f809 Merge upstream MeshTerm 0.12.0
# Conflicts:
#	docs/development/writing-style.md
#	docs/guide/features.md
#	meshterm/core/channels.py
#	meshterm/core/preferences.py
#	meshterm/services/chat_service.py
#	meshterm/ui/chat.py
2026-11-12 09:02:16 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 85fac33356 Our node page offers the This node tools of the main menu
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>
2026-11-11 20:56:19 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 1b0dccc1c1 Our own node page opens from the Contacts list again
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>
2026-11-11 20:45:10 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 c4a7e2d69f Message paths traces a sender with no key in Trace target
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>
2026-11-08 23:03:27 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 d3166170ff A trace to a companion turns at its last relay
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>
2026-11-08 03:42:56 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 fe8a70d516 Message paths traces the selected route
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>
2026-11-08 02:30:02 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 d1775b4c23 An adopted probe route starts with its probe traces
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>
2026-11-08 01:09:56 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 0f9a15fe1c Trace target offers the route that just came home as the radio's route
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>
2026-11-08 01:05:40 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 24a3c28ad8 The node page shows the radio's route to a contact, and sets, keeps, or forgets it
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>
2026-11-08 00:26:53 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 88d0d94ca7 The radio's route to each contact can be set, kept per site, and saved across sites
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>
2026-11-08 00:19:20 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 73ae08b365 A silent direct message or admin login can retry by flood, past a dead route
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>
2026-11-08 00:13:10 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 ec64076d44 Outbound paths start the suggested routes, for each site and fixed device
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>
2026-11-07 14:21:46 -05:00
Jean-Pierre MartineauandClaude Haiku 5.5 e2146f9092 The topology keeps the direction of each SNR reading
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>
2026-11-07 13:06:08 -05:00
Jean-Pierre MartineauandClaude Haiku 5.5 734e60ab37 Trace screens start where Enter can act, and Use this path ends the composer
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>
2026-11-07 11:29:57 -05:00
Jean-Pierre MartineauandClaude Haiku 5.5 42a9083c91 A channel sender or a mention can have a name of 32 characters
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>
2026-11-07 11:00:10 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 4356bc9012 Forget passwords clears every stored admin password in one step
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>
2026-11-04 01:59:35 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 bde5ee19f5 The CLI says how to give a changed admin password
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>
2026-11-03 23:46:13 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 3a60771dd9 Del in the admin picker forgets a stored admin password
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>
2026-11-03 23:41:09 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 d818331b36 A stored admin password that gets no reply offers a new one
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>
2026-11-03 23:34:26 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 763eec5de9 The archive preview shows PLACE in place of MSGS and HOPS
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>
2026-11-03 18:13:08 -05:00