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
A profile that drives the Cap without its expander says nothing about
which Cap it is. The node then found no expander because it never
looked, and the model fell back to the name of the newer board. An
owner of the older Cap who wrote such a profile read "Cap LoRa-1262".
The parent now sends the name of the family in that case, which is what
the device screen shows before anything is connected. It is the most
that is true when nothing looked.
The About page names both Caps, because MeshTerm drives both now.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Until MeshTerm connects, nothing can say which LoRa Cap is on a
Cardputer Zero. A radio on the SPI bus answers nothing until the node
runs on it, and the list probes nothing on purpose: a radio is in it
exactly when there is a device file to open. A probe would have to
power the header on every pass of the device screen, and it still could
not tell the older Cap from an empty header, because that answer comes
from the radio itself.
So the row names the slot. It reads "Cap LoRa", the family of the two
boards, in place of a claim that the newer one is attached.
The node names the board. It is the one part that sees which revision
answered, so the parent sends it the model of each revision and the
node reports the one that it found. The rest of the path was already
there: the frame server gives that model to the client, the store keeps
it beside the node name, and the hardware column of the device screen
shows it. A Cap is exact from its first connection onward, with no
probing, no power to the header for a listing, and no new permissions.
board_name is gone. Its one caller wanted the model, which board_models
answers now, and the row takes its name from the table as it always
did.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Making the expander optional took a sentence away from the user. A
Cardputer Zero with no Cap at all reaches the radio library now, where
before it stopped at the expander. The library then said "Something
went wrong, check your wiring", and MeshTerm passed that on.
A board whose expander did not answer is the one place where nothing
has answered anywhere yet. There, a radio that does not start is a
radio that is not attached, and the user reads that instead. The words
of the library stay in the log. A busy line keeps its own kind, because
a line that another program holds has its own correction.
The three ways of finding out that no radio is there (the chip did not
start, it did not answer a register read, it answered as something
else) now give the user one sentence. The log keeps which of the three
it was.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A user on a Cardputer Zero could not connect his Cap. MeshTerm stopped
at "nothing answers at 0x43 on /dev/i2c-1". His Cap is the Cap LoRa868,
which M5Stack made before the Cap LoRa-1262. The two boards carry the
same SX1262 on the same pins of the same header, and the same GNSS at
the same speed. The newer board adds an antenna switch, and the chip at
0x43 that turns the switch on. The older board has no switch, so it has
no such chip. MeshTerm asked for one on every Cardputer Zero.
A wiring now says whether its expander is required. pi4io_required is
true by default, so every other board keeps the rule that an expander
which does not answer is an absent board. The Cap sets it to false.
An absent expander is then the other revision of the board, and the
node must prove that before it accepts it. After the radio starts, the
node reads the version register of the chip and requires the name of an
SX126x. A bus with nothing on it reads as all ones or all zeros, and
the library can start on such a bus, so a Cap that is absent or badly
seated still reports that no radio answered.
The read of the expander also tells its failures apart now. Only the
errors that mean "nobody is at this address" count as absent. A bus
error or a refused read is a failure of its own, and never becomes the
older board quietly.
The two boards come from M5Stack's own pages, and from two other
Cardputer Zero applications that drive both. The pins, the TCXO, and
DIO2 are the same everywhere, and they agree with the wiring MeshTerm
already had.
One thing is open. The device screen names the row "Cap LoRa-1262"
before anything is connected, because nothing can know which Cap is
attached until the node runs.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
The page had drifted behind the firmware. Three statistics frames arrive
at each open and the panel drew nine rows from them, so the outbound
queue, the firmware error count, and the split of the packet counters
into flood and direct were read and thrown away. The device-query frame
carries the companion protocol version and the contact and channel
capacities, and nothing in MeshTerm had ever asked for them. The
default flood scope was one row named Flood scope, between the two
auto-add rows, with no key beside it. The key of the node itself was
nowhere on the page.
The panel now has four groups, in the order a user asks them in. What
the node is: role, public key with the routed bytes lit, model,
firmware with the protocol version, and place. What MeshTerm does with
it: the scope and the transport key of that scope, the active site with
the outbound paths and kept device routes that apply, and the name of
the radio preset. How it is doing: battery, storage, its own sensor
readings, the clock with its drift, uptime, contacts and channels
against the capacities, the queue, and the errors. What it heard and
sent: the noise floor, the airtime, and the packet counts, split.
A node with no scope says that its floods reach everyone, because an
empty value there is a statement and not an absence. A node whose
stored scope key is not the key of its own name says so in amber: a
flood under that key reaches no repeater that listens for the name, and
nothing else in MeshTerm could show it.
The rows sit in a two-column grid, so a value wider than the panel
wraps under its own column instead of going back to the left edge, and
a 64-digit key stays whole. The gallery draws the panel now, so both
platforms hold it to their readable width.
Two new device reads, both optional and both answered by any firmware:
the scope frame read for its key as well as its name, and the sensor
readings of the node itself, which MeshTerm had never asked any device
for. The device-query frame is no longer read twice at each open, since
the snapshot already merges it.
The scripted face answers with the same three parts: the status, the
readings, and every setting. The settings come from the one definition
that config show answers with, under the keys config get and config set
take, so the two faces cannot drift and no setting is spelled two ways.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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>
#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>
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>
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>
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>