Skip to content

External messages show real group and sender names (Lark, Slack, Discord) #1151

Closed

Description

@DoodleBears

Parent #1144 · reported by Vain on #1148

Problem

External groups show up as their IDs everywhere: in conversation rows, in a Channel's message origin, and in what a Bot reads. A Lark sender is also shown by open_id instead of their name.

  • Group names were never implemented. conversationName() in packages/core/src/messaging/conversations.ts returns conversation.id for groups, and no provider sends a group name.
  • Lark sender names time out. dsh-im already looks the sender up with im.v1.message.get(with_sender_name), but it gives up after 1.5 s. From the cloud host, one call takes about 0.8–2.5 s, so every lookup on the QA Host fell back to the open_id. A direct call with the same app credentials returns the real name.

Slice

  • dsh-im:
    • Each provider adds an optional conversation.name to inbound evidence:
      • Lark: im.v1.chat.get, which needs im:chat:readonly.
      • Slack: conversations.info, which needs channels:read.
      • Discord: GET /channels/{id}.
    • Group and sender names are cached per account and ID, with a TTL.
    • The Lark sender-name lookup gets a longer timeout and also uses the cache.
    • If a lookup fails, the message still goes through without the name.
  • BotHarness:
    • MessagingInboundEvent.conversation.name is optional.
    • Conversation entries, held entries and ingest rows store the real name and update it when it changes.
    • Channel message origins and Bot context show Name (id).
    • Repin the dev provider.

Real-IM E2E

On Lark, Slack and Discord, a group message shows the real group and sender names:

  • in the app's conversation list
  • in a connected Channel
  • in a Bot's reply when it is asked where the message came from

Generated by Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions