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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
V
Visual Studio Blog
博客园 - 叶小钗
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
U
Unit 42
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
D
DataBreaches.Net
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence

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: carry room event gateway actions · openclaw/openclaw...
steipete · 2026-05-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -138,6 +138,28 @@ describe("telegram bot message processor", () => {

138138

);

139139

});

140140
141+

it("does not send early typing cues for room events", async () => {

142+

const sendTyping = vi.fn().mockResolvedValue(undefined);

143+

buildTelegramMessageContext.mockResolvedValue(

144+

createMessageContext({

145+

sendTyping,

146+

ctxPayload: {

147+

From: "telegram:123",

148+

To: "telegram:123",

149+

ChatType: "group",

150+

RawBody: "ambient",

151+

InboundTurnKind: "room_event",

152+

},

153+

}),

154+

);

155+
156+

const processMessage = createTelegramMessageProcessor(baseDeps);

157+

await processSampleMessage(processMessage);

158+
159+

expect(sendTyping).not.toHaveBeenCalled();

160+

expect(dispatchTelegramMessage).toHaveBeenCalledTimes(1);

161+

});

162+
141163

it("skips dispatch when no context is produced", async () => {

142164

buildTelegramMessageContext.mockResolvedValue(null);

143165

const processMessage = createTelegramMessageProcessor(baseDeps);

Original file line numberDiff line numberDiff line change

@@ -155,9 +155,11 @@ export const createTelegramMessageProcessor = (deps: TelegramMessageProcessorDep

155155

(options?.ingressBuffer ? ` buffer=${options.ingressBuffer}` : ""),

156156

);

157157

}

158-

void context.sendTyping().catch((err) => {

159-

logVerbose(`telegram early typing cue failed for chat ${context.chatId}: ${String(err)}`);

160-

});

158+

if (context.ctxPayload.InboundTurnKind !== "room_event") {

159+

void context.sendTyping().catch((err) => {

160+

logVerbose(`telegram early typing cue failed for chat ${context.chatId}: ${String(err)}`);

161+

});

162+

}

161163

telegramInboundLog.info(

162164

formatTelegramInboundLogLine({

163165

from: context.ctxPayload.From,

Original file line numberDiff line numberDiff line change

@@ -79,6 +79,7 @@ export const MessageActionParamsSchema = Type.Object(

7979

senderIsOwner: Type.Optional(Type.Boolean()),

8080

sessionKey: Type.Optional(Type.String()),

8181

sessionId: Type.Optional(Type.String()),

82+

inboundTurnKind: Type.Optional(Type.String({ enum: ["user_request", "room_event"] })),

8283

agentId: Type.Optional(Type.String()),

8384

toolContext: Type.Optional(MessageActionToolContextSchema),

8485

idempotencyKey: NonEmptyString,

Original file line numberDiff line numberDiff line change

@@ -1265,6 +1265,7 @@ describe("gateway send mirroring", () => {

12651265

emoji: "✅",

12661266

},

12671267

requesterSenderId: "trusted-user",

1268+

inboundTurnKind: "room_event",

12681269

toolContext: {

12691270

currentGraphChannelId: "graph:team/chan",

12701271

currentChannelProvider: "whatsapp",

@@ -1291,6 +1292,9 @@ describe("gateway send mirroring", () => {

12911292

undefined,

12921293

{ channel: "whatsapp" },

12931294

);

1295+

expect(mocks.dispatchChannelMessageAction).toHaveBeenCalledWith(

1296+

expect.objectContaining({ inboundTurnKind: "room_event" }),

1297+

);

12941298

});

12951299
12961300

it("passes agent-scoped media roots to gateway message actions", async () => {

Original file line numberDiff line numberDiff line change

@@ -287,6 +287,7 @@ export const sendHandlers: GatewayRequestHandlers = {

287287

senderIsOwner?: boolean;

288288

sessionKey?: string;

289289

sessionId?: string;

290+

inboundTurnKind?: "user_request" | "room_event";

290291

agentId?: string;

291292

toolContext?: {

292293

currentChannelId?: string;

@@ -364,6 +365,7 @@ export const sendHandlers: GatewayRequestHandlers = {

364365

senderIsOwner,

365366

sessionKey: normalizeOptionalString(request.sessionKey) ?? undefined,

366367

sessionId: normalizeOptionalString(request.sessionId) ?? undefined,

368+

inboundTurnKind: request.inboundTurnKind,

367369

agentId: normalizeOptionalString(request.agentId) ?? undefined,

368370

mediaLocalRoots: getAgentScopedMediaLocalRoots(

369371

cfg,