Feishu New Topic
PLUGINThat 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
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.
#newThat is the difference from, which interrupts the running turn and clears the conversation.
/newHooks (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_dispatchFor 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.
#newReaches 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