NEW Workflows: agents follow the steps, you sign off. Read more →
Ulpi

Feishu New Topic

PLUGIN

That is the difference from /new, which interrupts the running turn and clears the conversation.

by kaigregliu · v0.3.5

What it does

Inside a topic the trigger is stripped, because Feishu topics do not nest; if topic creation fails the message is dispatched normally with a note. Disclosure — Feishu/Lark only.

Keeps a 40-entry message-id → thread-id dedupe map in plugin state. Appended notes are Chinese-only.

What you need first

  • Requires plugins.isolation: in_process.

How to set it up

  1. Feishu/Lark only: a message starting with (or the spoken phrase 开启一个新话题) opens a new Feishu topic on that message, which Ulpi turns into a new session — a second lane, while the session that was already running keeps running with its turn untouched.

    #new 
  2. That is the difference from, which interrupts the running turn and clears the conversation.

    /new
  3. Hooks (runs before gateway auth) and checks the sender itself with the gateway's authorization probe; unauthorised senders, in-topic messages and cached duplicates cause no calls.

    pre_gateway_dispatch
  4. For an authorised message it makes two Feishu OpenAPI calls through the receiving bot's own client (messages/{id}/reply with reply_in_thread, retried up to three times, then messages/{id}/delete of the one-character placeholder), sets the message's thread id so Ulpi routes it to a new session, and strips the trigger from the text.

    #new
  5. Reaches gateway/adapter internals (,, the Feishu adapter's and ), so a core refactor can stop topic creation (the message is then dispatched normally with a note).

    _is_user_authorized_for_source
    _delivery_adapter_for
    _client
    _run_blocking

Review notes

What an owner reads and accepts before the install is approved.

  • Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

More in Platform

All listings →