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

推荐订阅源

宝玉的分享
宝玉的分享
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
Y
Y Combinator Blog
月光博客
月光博客
IT之家
IT之家
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
L
LangChain Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
博客园 - Franky
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
V
Visual Studio Blog
小众软件
小众软件
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium

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(matrix): wire presentation metadata delivery · opencl...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -3,7 +3,7 @@ import type { ChannelDirectoryAdapter, ChannelOutboundAdapter } from "./types.ad

33

type MaybePromise<T> = T | Promise<T>;

4455

type DirectoryMethod = "self" | "listPeersLive" | "listGroupsLive" | "listGroupMembers";

6-

type OutboundMethod = "sendText" | "sendMedia" | "sendPoll";

6+

type OutboundMethod = "renderPresentation" | "sendPayload" | "sendText" | "sendMedia" | "sendPoll";

7788

type DirectorySelfParams = Parameters<NonNullable<ChannelDirectoryAdapter["self"]>>[0];

99

type DirectoryListParams = Parameters<NonNullable<ChannelDirectoryAdapter["listPeersLive"]>>[0];

@@ -13,6 +13,10 @@ type DirectoryGroupMembersParams = Parameters<

1313

type SendTextParams = Parameters<NonNullable<ChannelOutboundAdapter["sendText"]>>[0];

1414

type SendMediaParams = Parameters<NonNullable<ChannelOutboundAdapter["sendMedia"]>>[0];

1515

type SendPollParams = Parameters<NonNullable<ChannelOutboundAdapter["sendPoll"]>>[0];

16+

type RenderPresentationParams = Parameters<

17+

NonNullable<ChannelOutboundAdapter["renderPresentation"]>

18+

>[0];

19+

type SendPayloadParams = Parameters<NonNullable<ChannelOutboundAdapter["sendPayload"]>>[0];

16201721

async function resolveForwardedMethod<Runtime, Fn>(params: {

1822

getRuntime: () => MaybePromise<Runtime>;

@@ -80,6 +84,14 @@ export function createRuntimeDirectoryLiveAdapter<Runtime>(params: {

80848185

export function createRuntimeOutboundDelegates<Runtime>(params: {

8286

getRuntime: () => MaybePromise<Runtime>;

87+

renderPresentation?: {

88+

resolve: (runtime: Runtime) => ChannelOutboundAdapter["renderPresentation"] | null | undefined;

89+

unavailableMessage?: string;

90+

};

91+

sendPayload?: {

92+

resolve: (runtime: Runtime) => ChannelOutboundAdapter["sendPayload"] | null | undefined;

93+

unavailableMessage?: string;

94+

};

8395

sendText?: {

8496

resolve: (runtime: Runtime) => ChannelOutboundAdapter["sendText"] | null | undefined;

8597

unavailableMessage?: string;

@@ -94,6 +106,26 @@ export function createRuntimeOutboundDelegates<Runtime>(params: {

94106

};

95107

}): Pick<ChannelOutboundAdapter, OutboundMethod> {

96108

return {

109+

renderPresentation: params.renderPresentation

110+

? async (ctx: RenderPresentationParams) =>

111+

await (

112+

await resolveForwardedMethod({

113+

getRuntime: params.getRuntime,

114+

resolve: params.renderPresentation!.resolve,

115+

unavailableMessage: params.renderPresentation!.unavailableMessage,

116+

})

117+

)(ctx)

118+

: undefined,

119+

sendPayload: params.sendPayload

120+

? async (ctx: SendPayloadParams) =>

121+

await (

122+

await resolveForwardedMethod({

123+

getRuntime: params.getRuntime,

124+

resolve: params.sendPayload!.resolve,

125+

unavailableMessage: params.sendPayload!.unavailableMessage,

126+

})

127+

)(ctx)

128+

: undefined,

97129

sendText: params.sendText

98130

? async (ctx: SendTextParams) =>

99131

await (