[Fix] Prefer external session delivery context (#87476)

* fix(sessions): prefer external delivery context

Signed-off-by: samzong <samzong.lu@gmail.com>

* fix: route Feishu session announces from delivery context

* fix: accept normalized cron schedule inputs

---------

Signed-off-by: samzong <samzong.lu@gmail.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
samzong
2026-05-29 10:59:54 +08:00
committed by GitHub
parent 3cf9877d0c
commit c237de552a
7 changed files with 352 additions and 9 deletions

View File

@@ -96,6 +96,12 @@ afterAll(() => {
vi.resetModules();
});
describe("feishuPlugin metadata", () => {
it("opts announce delivery into persisted session lookup", () => {
expect(feishuPlugin.meta.preferSessionLookupForAnnounceTarget).toBe(true);
});
});
describe("feishuPlugin.status.probeAccount", () => {
it("uses current account credentials for multi-account config", async () => {
const cfg = {

View File

@@ -139,6 +139,7 @@ const meta: ChannelMeta = {
blurb: "飞书/Lark enterprise messaging.",
aliases: ["lark"],
order: 70,
preferSessionLookupForAnnounceTarget: true,
};
const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(