feat: add session.identityLinks for cross-platform DM session linking#1033
Merged
thewilloftheshadow merged 2 commits intoJan 16, 2026
Merged
Conversation
Allows mapping multiple platform IDs to a canonical identity so the same
person on different platforms (Telegram, Discord, iMessage, etc.) shares
a single DM session when using per-peer or per-channel-peer dmScope.
Config example:
session.identityLinks = {
alice: ["telegram:123456", "discord:789012345678901234"]
}
- Add identityLinks to session config schema and types
- Add resolveLinkedPeerId() to session-key.ts
- Wire through resolve-route.ts
- Add tests for both per-peer and per-channel-peer modes
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
…openclaw#1033) Co-authored-by: Shadow <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
…openclaw#1033) Co-authored-by: Shadow <[email protected]>
20 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allows mapping multiple platform IDs to a canonical identity so the same person on different platforms (Telegram, Discord, iMessage, etc.) shares a single DM session when using
per-peerorper-channel-peerdmScope.Config Example
{ "session": { "dmScope": "per-peer", "identityLinks": { "alice": ["telegram:123456789", "discord:987654321012345678", "imessage:+15551234567"] } } }With this config, messages from any of those platform IDs route to the same session (
agent:main:dm:alice) instead of separate sessions per platform.Changes
identityLinksto session config schema and typesresolveLinkedPeerId()helper insession-key.tsidentityLinksthroughresolve-route.tsper-peerandper-channel-peermodesHow it works
channel:peerId(e.g.telegram:123456789) matches any entry inidentityLinksalice) as the peerId insteadImplemented by Codex, cleaned up by Ruby 🐱