Commit Graph
854 Commits
Author SHA1 Message Date
Jean-Pierre MartineauandClaude Opus 5.5 bd37ea2687 Sounds overlap on Windows: each one plays on its own MCI device
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 02:17:33 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 73eed72391 No sound for what was already there: the companion's queue and a room's catch-up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 02:12:59 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 da20d3e93d Mentions play always, on, or as a message; the open conversation can play too
A mention in a DM plays the DM sound. The sound keys of this unpushed
work are not retired: they never left this machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 02:01:09 -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 89a8eea16b A received message plays its conversation's sound: off, mentions, or all
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:50:39 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 f7e5cd9049 A sound service that plays notifications through the system's own player
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:43:34 -05:00
Jean-Pierre MartineauandClaude Opus 5.5 0896109fb2 Sound preferences, and which platforms can play a sound
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:40:29 -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 d3148d340e A demo channel added later no longer changes the rest of the demo
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>
2026-11-20 17:54:09 -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 3c5c0e811b MCOimg tests decode a real image: a 30x30 woodpecker in 74 bytes
The first test image from a real encoder rather than the tests' own raw
one. It uses the 512-colour dynamic profile and a compact regions stream
with three regions, which the reference vectors only cover at tiny sizes.
The pixels were checked by eye; the test pins their hash and colour counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:40:21 -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
Jean-Pierre MartineauandClaude Haiku 5.5 888dc3b633 Chat offers to add Public instead of opening a channel the device lacks
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>
2026-11-16 23:19:34 -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 1f20013d49 Test that a companion's traced route goes on the companion
A walk to a companion turns at the repeater that hears it, but the route
that it proves is the route to the companion: every relay, with the one
at the turn. Use writes it on the companion's contact, never on the
repeater's, and never as the shorter route to the repeater.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 03:49:17 -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 8260ab057e The route command lists, sets, keeps, and discovers the device routes
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>
2026-11-08 00:25:32 -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 c50656c586 Sites and fixed devices keep their outbound paths
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>
2026-11-07 13:06:08 -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 e8a3b439cd The simulator answers a wrong admin password with silence
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>
2026-11-03 23:57:32 -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