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

推荐订阅源

G
Google Developers Blog
宝玉的分享
宝玉的分享
月光博客
月光博客
B
Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
博客园_首页
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
A
About on SuperTechFans
Y
Y Combinator Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
D
Docker
爱范儿
爱范儿
博客园 - 司徒正美
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net

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
refactor(channels): finish turn kernel migration · opencl...
steipete · 2026-04-30 · via Recent Commits to openclaw:main

@@ -72,96 +72,98 @@ export async function dispatchSynologyChatInboundTurn(params: {

7272

userId: params.msg.from,

7373

});

747475-

await resolved.rt.channel.turn.runResolved({

75+

await resolved.rt.channel.turn.run({

7676

channel: CHANNEL_ID,

7777

accountId: params.account.accountId,

7878

raw: params.msg,

79-

input: (msg) => ({

80-

id: `${params.account.accountId}:${msg.from}`,

81-

timestamp: Date.now(),

82-

rawText: msg.body,

83-

textForAgent: msg.body,

84-

textForCommands: msg.body,

85-

raw: msg,

86-

}),

87-

resolveTurn: (input) => {

88-

const chatKind =

89-

params.msg.chatType === "group" || params.msg.chatType === "channel"

90-

? params.msg.chatType

91-

: "direct";

92-

const msgCtx = resolved.rt.channel.turn.buildContext({

93-

channel: CHANNEL_ID,

94-

accountId: params.account.accountId,

95-

timestamp: input.timestamp,

96-

from: `synology-chat:${params.msg.from}`,

97-

sender: {

98-

id: params.msg.from,

99-

name: params.msg.senderName,

100-

},

101-

conversation: {

102-

kind: chatKind,

103-

id: params.msg.from,

104-

label: params.msg.senderName || params.msg.from,

105-

routePeer: {

106-

kind: "direct",

79+

adapter: {

80+

ingest: (msg) => ({

81+

id: `${params.account.accountId}:${msg.from}`,

82+

timestamp: Date.now(),

83+

rawText: msg.body,

84+

textForAgent: msg.body,

85+

textForCommands: msg.body,

86+

raw: msg,

87+

}),

88+

resolveTurn: (input) => {

89+

const chatKind =

90+

params.msg.chatType === "group" || params.msg.chatType === "channel"

91+

? params.msg.chatType

92+

: "direct";

93+

const msgCtx = resolved.rt.channel.turn.buildContext({

94+

channel: CHANNEL_ID,

95+

accountId: params.account.accountId,

96+

timestamp: input.timestamp,

97+

from: `synology-chat:${params.msg.from}`,

98+

sender: {

10799

id: params.msg.from,

100+

name: params.msg.senderName,

101+

},

102+

conversation: {

103+

kind: chatKind,

104+

id: params.msg.from,

105+

label: params.msg.senderName || params.msg.from,

106+

routePeer: {

107+

kind: "direct",

108+

id: params.msg.from,

109+

},

110+

},

111+

route: {

112+

agentId: resolved.route.agentId,

113+

accountId: params.account.accountId,

114+

routeSessionKey: resolved.sessionKey,

115+

dispatchSessionKey: resolved.sessionKey,

108116

},

109-

},

110-

route: {

117+

reply: {

118+

to: `synology-chat:${params.msg.from}`,

119+

originatingTo: `synology-chat:${params.msg.from}`,

120+

},

121+

message: {

122+

rawBody: input.rawText,

123+

commandBody: input.textForCommands,

124+

bodyForAgent: input.textForAgent,

125+

envelopeFrom: params.msg.senderName,

126+

},

127+

extra: {

128+

ChatType: params.msg.chatType,

129+

CommandAuthorized: params.msg.commandAuthorized,

130+

},

131+

});

132+

const storePath = resolved.rt.channel.session.resolveStorePath(currentCfg.session?.store, {

111133

agentId: resolved.route.agentId,

134+

});

135+

return {

136+

cfg: currentCfg,

137+

channel: CHANNEL_ID,

112138

accountId: params.account.accountId,

113-

routeSessionKey: resolved.sessionKey,

114-

dispatchSessionKey: resolved.sessionKey,

115-

},

116-

reply: {

117-

to: `synology-chat:${params.msg.from}`,

118-

originatingTo: `synology-chat:${params.msg.from}`,

119-

},

120-

message: {

121-

rawBody: input.rawText,

122-

commandBody: input.textForCommands,

123-

bodyForAgent: input.textForAgent,

124-

envelopeFrom: params.msg.senderName,

125-

},

126-

extra: {

127-

ChatType: params.msg.chatType,

128-

CommandAuthorized: params.msg.commandAuthorized,

129-

},

130-

});

131-

const storePath = resolved.rt.channel.session.resolveStorePath(currentCfg.session?.store, {

132-

agentId: resolved.route.agentId,

133-

});

134-

return {

135-

cfg: currentCfg,

136-

channel: CHANNEL_ID,

137-

accountId: params.account.accountId,

138-

agentId: resolved.route.agentId,

139-

routeSessionKey: resolved.route.sessionKey,

140-

storePath,

141-

ctxPayload: msgCtx,

142-

recordInboundSession: resolved.rt.channel.session.recordInboundSession,

143-

dispatchReplyWithBufferedBlockDispatcher:

144-

resolved.rt.channel.reply.dispatchReplyWithBufferedBlockDispatcher,

145-

delivery: {

146-

deliver: async (payload) => {

147-

await deliverSynologyChatReply({

148-

account: params.account,

149-

sendUserId,

150-

payload,

151-

});

139+

agentId: resolved.route.agentId,

140+

routeSessionKey: resolved.route.sessionKey,

141+

storePath,

142+

ctxPayload: msgCtx,

143+

recordInboundSession: resolved.rt.channel.session.recordInboundSession,

144+

dispatchReplyWithBufferedBlockDispatcher:

145+

resolved.rt.channel.reply.dispatchReplyWithBufferedBlockDispatcher,

146+

delivery: {

147+

deliver: async (payload) => {

148+

await deliverSynologyChatReply({

149+

account: params.account,

150+

sendUserId,

151+

payload,

152+

});

153+

},

152154

},

153-

},

154-

dispatcherOptions: {

155-

onReplyStart: () => {

156-

params.log?.info?.(`Agent reply started for ${params.msg.from}`);

155+

dispatcherOptions: {

156+

onReplyStart: () => {

157+

params.log?.info?.(`Agent reply started for ${params.msg.from}`);

158+

},

157159

},

158-

},

159-

record: {

160-

onRecordError: (err) => {

161-

params.log?.info?.(`Session metadata update failed for ${params.msg.from}`, err);

160+

record: {

161+

onRecordError: (err) => {

162+

params.log?.info?.(`Session metadata update failed for ${params.msg.from}`, err);

163+

},

162164

},

163-

},

164-

};

165+

};

166+

},

165167

},

166168

});

167169