惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
博客园 - Franky
V
V2EX
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Jina AI
Jina AI
博客园 - 叶小钗
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
D
Docker
博客园 - 【当耐特】
阮一峰的网络日志
阮一峰的网络日志

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(cron): preserve plugin delivery targets · openclaw/op...
TurboTheTurt · 2026-05-31 · via Recent Commits to openclaw:main

@@ -432,6 +432,7 @@ describe("resolveDeliveryTarget", () => {

432432

to: "user:123456789",

433433

kind: "user",

434434

source: "directory",

435+

resolutionSource: "plugin",

435436

});

436437437438

const cfg = makeCfg({ bindings: [] });

@@ -588,6 +589,149 @@ describe("resolveDeliveryTarget", () => {

588589

expect(result.threadId).toBeUndefined();

589590

});

590591592+

it("preserves plugin-canonical targets that begin with the selected channel prefix", async () => {

593+

setMainSessionEntry(undefined);

594+

const canonicalTarget = "Bncr:tgBot:-1003891624016:6278285192";

595+

setActivePluginRegistry(

596+

createTestRegistry([

597+

{

598+

pluginId: "bncr",

599+

source: "test",

600+

plugin: createOutboundTestPlugin({

601+

id: "bncr",

602+

outbound: createStubOutbound("Bncr"),

603+

messaging: {

604+

targetPrefixes: ["bncr"],

605+

targetResolver: {

606+

resolveTarget: async ({ input }) =>

607+

input === canonicalTarget

608+

? { to: canonicalTarget, kind: "group" as const, source: "normalized" as const }

609+

: null,

610+

},

611+

},

612+

}),

613+

},

614+

]),

615+

);

616+617+

const result = await resolveDeliveryTarget(makeCfg({ bindings: [] }), AGENT_ID, {

618+

channel: "bncr",

619+

to: canonicalTarget,

620+

});

621+622+

expect(result.ok).toBe(true);

623+

expect(result.to).toBe(canonicalTarget);

624+

expect(result.threadId).toBeUndefined();

625+

});

626+627+

it("preserves plugin-canonical targets returned for aliases", async () => {

628+

setMainSessionEntry(undefined);

629+

const canonicalTarget = "Bncr:tgBot:-1003891624016:6278285192";

630+

setActivePluginRegistry(

631+

createTestRegistry([

632+

{

633+

pluginId: "bncr",

634+

source: "test",

635+

plugin: createOutboundTestPlugin({

636+

id: "bncr",

637+

outbound: createStubOutbound("Bncr"),

638+

messaging: {

639+

targetPrefixes: ["bncr"],

640+

targetResolver: {

641+

resolveTarget: async ({ input }) =>

642+

input === "alerts"

643+

? { to: canonicalTarget, kind: "group" as const, source: "normalized" as const }

644+

: null,

645+

},

646+

},

647+

}),

648+

},

649+

]),

650+

);

651+652+

const result = await resolveDeliveryTarget(makeCfg({ bindings: [] }), AGENT_ID, {

653+

channel: "bncr",

654+

to: "alerts",

655+

});

656+657+

expect(result.ok).toBe(true);

658+

expect(result.to).toBe(canonicalTarget);

659+

expect(result.threadId).toBeUndefined();

660+

});

661+662+

it("still strips selected prefixes from generic normalized fallback targets", async () => {

663+

setMainSessionEntry(undefined);

664+

setActivePluginRegistry(

665+

createTestRegistry([

666+

{

667+

pluginId: "alpha",

668+

source: "test",

669+

plugin: createOutboundTestPlugin({

670+

id: "alpha",

671+

outbound: createStubOutbound("Alpha"),

672+

messaging: { targetPrefixes: ["alpha"] },

673+

}),

674+

},

675+

]),

676+

);

677+678+

const result = await resolveDeliveryTarget(makeCfg({ bindings: [] }), AGENT_ID, {

679+

channel: "alpha",

680+

to: "alpha:room-a",

681+

});

682+683+

expect(result.ok).toBe(true);

684+

expect(result.to).toBe("room-a");

685+

expect(result.threadId).toBeUndefined();

686+

});

687+688+

it("uses plugin-resolved directory targets for route parsing", async () => {

689+

setMainSessionEntry(undefined);

690+

setActivePluginRegistry(

691+

createTestRegistry([

692+

{

693+

pluginId: "alpha",

694+

source: "test",

695+

plugin: createOutboundTestPlugin({

696+

id: "alpha",

697+

outbound: createStubOutbound("Alpha"),

698+

messaging: {

699+

targetPrefixes: ["alpha"],

700+

targetResolver: {

701+

resolveTarget: async ({ input }) =>

702+

input === "alice"

703+

? { to: "user:123", kind: "user" as const, source: "directory" as const }

704+

: null,

705+

},

706+

resolveOutboundSessionRoute: ({ cfg, agentId, accountId, target }) => {

707+

const isUser = target.startsWith("user:");

708+

return buildChannelOutboundSessionRoute({

709+

cfg,

710+

agentId,

711+

channel: "alpha",

712+

accountId,

713+

peer: { kind: isUser ? "direct" : "channel", id: target },

714+

chatType: isUser ? "direct" : "channel",

715+

from: target,

716+

to: isUser ? target : `channel:${target}`,

717+

});

718+

},

719+

},

720+

}),

721+

},

722+

]),

723+

);

724+725+

const result = await resolveDeliveryTarget(makeCfg({ bindings: [] }), AGENT_ID, {

726+

channel: "alpha",

727+

to: "alice",

728+

});

729+730+

expect(result.ok).toBe(true);

731+

expect(result.to).toBe("user:123");

732+

expect(result.threadId).toBeUndefined();

733+

});

734+591735

it("uses canonical route targets even when the route has no thread", async () => {

592736

setMainSessionEntry(undefined);

593737

setActivePluginRegistry(