Skip to content

External conversations 1: a bound Lark app's group streams into a Channel #1145

Closed

Description

@DoodleBears

Parent #1144 · ADR-0143

Slice

In a Channel's External connectors, + 接入外部会话 opens a dialog: pick a bound Lark app, then one of its known conversations, then confirm. That conversation's messages flow into the Channel as Source Events. Every member Bot gets context-only admissions by default, and the ingest's wake policy can change that.

  • Host: a new Conversation ingest record and schema generation (Channel, provider, app fingerprint, conversation kind/id, revision, enabled, intake-after, wake policy). Add a fanout subscriber on the Binding's existing registration. Connecting needs no ordinary-delivery proof. Add Pause and Delete.
  • Client: the connect dialog, plus ingest rows under External connectors showing state and last message, with Pause and Delete.

Real-IM E2E

  1. In a real Lark group the bound app belongs to, send three messages that don't @ the app. They appear in the Channel and no Bot wakes.
  2. A local @bot in the Channel gets an answer that uses those messages.
  3. Restart the Host. The next message still arrives.
  4. Delete the ingest. New messages stop and history remains.

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