Repository navigation
Description
[ALIGNMENT]: Clients should auto-favorite nodes on direct message except for CLIENT_BASE
Decision
Auto-favoriting a node because the user sent it a direct message must not happen when the local node's role is CLIENT_BASE.
On firmware that accepts verified contacts, the preferred behavior is not to auto-favorite at all. Sending a SharedContact for the destination retains the public key without turning a routing decision into a side effect of sending a message.
Context
Auto-favoriting on direct message was implemented across the clients because it keeps the recipient's public key in the device's node database, which is desirable in the general case.
It is harmful for CLIENT_BASE. In that role, favoriting creates routing consequences for nodes the user never chose to relay for, out of their home base node.
Android has already settled this in practice. On 2.7 and later firmware it does not auto-favorite on direct message at all, sending a SharedContact for the destination instead; the favorite-on-DM path only runs for legacy direct messages with no PKC channel, and it skips the case where the local role is CLIENT_BASE.
The concern that a direct message should not silently favorite an uncontrolled router node was raised by @aerodan and is what the CLIENT_BASE carve-out addresses.
Required Client Behavior
- Never auto-favorite a node on direct message when the local node's role is
CLIENT_BASE. - On firmware that accepts verified contacts, send a
SharedContactfor the destination rather than favoriting, so the public key is retained without a routing side effect. - Where the legacy favorite-on-DM path still runs, restrict it to direct messages with no PKC channel.
- Favoriting a node remains available as an explicit user action in every role.
Open question
Whether Apple should match Android's behavior of not auto-favoriting at all on current firmware, or keep favoriting outside the CLIENT_BASE role. Android answered this in code; the two clients are not aligned until Apple makes the same call.
Acceptance Criteria
- A direct message sent from a
CLIENT_BASEnode does not favorite the recipient on any client. - On firmware accepting verified contacts, the recipient's key is retained without a favorite being created.
- Explicit user favoriting is unaffected in all roles.
Platform Tracking
- Android
- Apple
- Web
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Type
Projects
- StatusShow more project fieldsDone
Activity
jamesarich commentedon Nov 6, 2025
@thebentern as i was implementing on android - the current implementation was updated to use the new
manually_verifiedshared contact flow, with a fallback to the favorite-before-dm flow - gated on the fw version that supports manually_verified.I added the additional check for
CLIENT_BASEin the older favoriting flow.Though, now that I think about it I'm not sure
CLIENT_BASEwould even be in firmware old enough to not also havemanually_verifiedtl;dr - this may be moot if you've already updated your pre-dm flow to use the
manually_verifiedshared contact dance.aerodan commentedon Nov 26, 2025
In the second case, (favorite-before-dm), the unintended router issue persists I think? Example: A user has favorited a friend's node. Then the same user enables Client_Base and DMs the friend. The check is done and since the node was already favorite it would be impacted by the new, likely poorly situated, roof router they do not control.
More to the use case: DM'ing a user directly should not assume the user wants it as a persistent favorite.
garthvh commentedon Jul 5, 2026
Current state
iOS — ✅ fixed
Both DM-triggered favorite paths now guard on the connected/local device's role, not the peer's:
Meshtastic/Accessory/Accessory Manager/AccessoryManager+ToRadio.swift:169-171— shared-contact/nodeinfo upsert path:let shouldFavorite = connectedDeviceRole != .clientBase, passed intoupsertNodeInfoPacket(...).user.userNode?.favorite = user.userNode?.deviceConfig?.role ?? 0 != DeviceRoles.clientBase.rawValuebefore re-sharing the contact.connectedDeviceRole(AccessoryManager.swift:949-954) reads the role off the currently-connected node, i.e. the user's own base station — correct target.Views/Nodes/Helpers/Actions/FavoriteNodeButton.swift:14-48) no longer silently no-ops in CLIENT_BASE mode (the bug in #1541) — it now shows a confirmation dialog ("Client Base should only favorite other nodes you control...") before proceeding.This landed after the fix referenced in meshtastic/Meshtastic-Apple#1498's reopen comment (firmware PR #8495 dependency), and #1498/#1541 are both now closed and match code on
main.Android — ✅ fixed, but structurally different (worth noting)
core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/usecase/SendMessageUseCase.kt:85-102: on a direct message, if the connected firmware supports the newer shared-contact/PKI flow (capabilities.canSendVerifiedContacts), it sends aSharedContactinstead of favoriting at all — no CLIENT_BASE check needed there since nothing gets favorited. Only the legacy favorite-before-DM path (older firmware) checksisClientBase = ourNode?.user?.role == Config.DeviceConfig.Role.CLIENT_BASEand skipsfavoriteNode()when true (line 89, 99-100). Landed via Meshtastic-Android#3623, closing #3622.Per jamesarich's comment above, this is intentional: the two clients solve the same problem differently (iOS still favorites but gates it on role; Android's new-firmware path avoids the favorite mechanism entirely), but both avoid unwanted favorites out of a CLIENT_BASE node today.
Web — ❌ not implemented
Confirmed against current
main: no reference toCLIENT_BASEanywhere in the TS source (only in the generated proto enum, unused by app logic), andChatClient.ts'sonMessagePackethandler has nofavorite/Favoritecall at all —packages/sdk/src/features/nodes/NodesClient.ts:176-186(favorite()/unfavorite()) is only ever invoked manually fromapps/web/src/core/hooks/useFavoriteNode.ts. So web doesn't auto-favorite on DM at all yet, in either direction — there's no CLIENT_BASE bug because there's no auto-favorite feature to gate. Tracked with a full implementation writeup already in web#1240 (open); the earlier web#932 was closed by stale-bot without a fix.Stale checklist note
All three "Create alignment issue" checkboxes on this issue are checked and do correspond to real per-platform issues (Android #3622 closed/fixed, iOS #1498 + #1541 closed/fixed, Web #932 closed-unfixed / #1240 open with the actual gap). Nothing stale there.
Open design question (unresolved, separate from platform parity)
aerodan's comment above raises a real product concern that isn't a per-platform bug: the favorite-before-DM flow only checks role at DM time, so a node favorited before switching to CLIENT_BASE stays favorited, and more broadly, sending someone a DM may not imply the user wants a persistent favorite/router relationship at all. Worth a maintainer decision independent of the web port.
Suggested next step
Web is the only platform with a real gap — web#1240 already has a concrete implementation plan (hook into
ChatClient.ts's direct-message branch, gate onclient.config.radio.value.device?.role). Once that lands this alignment issue is fully closed out.fix(meshtastic): only push add_contact when the radio lacks the peer'…
garthvh commentedon Aug 11, 2026
Status update (August 2026): iOS remains compliant per the July audit — both DM-triggered favorite paths guard on the connected device's role, so a CLIENT_BASE node never auto-favorites. No changes since.
Still open in this thread is the design question raised above: the favorite-before-DM case (a node favorited before the local device switched to CLIENT_BASE keeps routing weight), and more broadly whether DMing should imply a persistent favorite at all. Those need a decision here before further client work — the current guard only covers the auto-favorite-at-DM-time path. Android/Web: current state posted to your trackers would help confirm the mobile/web parity picture.
jamesarich commentedon Aug 22, 2026
Android state - https://github.com/meshtastic/Meshtastic-Android/blob/10d52c8e33b2a19baf901fa307c126caff3064ec/core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/usecase/SendMessageUseCase.kt#L91-L103
On firmware that takes verified contacts Android no longer auto-favorites on DM at all - it sends a SharedContact for the destination instead. The favorite-on-DM path only runs for legacy DMs (no PKC channel) and skips when the local role is CLIENT_BASE.
So for Android the "should DM imply a persistent favorite" question is already answered in practice: no, on 2.7+ firmware. A node favorited before switching to CLIENT_BASE keeps its favorite - that was an explicit user action and I don't think the role switch should undo it.
[-][ALIGNMENT]: Clients / apps should auto-favorite nodes upon direct-message except for CLIENT_BASE nodes[/-][+][ALIGNMENT]: Clients should auto-favorite nodes on direct message except for CLIENT_BASE[/+]garthvh commentedon Nov 8, 2026
Apple and Android have both shipped this. Only Web is left, and Web doesn't gate alignment; its tracker stays open in that repo.