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

推荐订阅源

N
Netflix TechBlog - Medium
IT之家
IT之家
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
美团技术团队
小众软件
小众软件
博客园 - 叶小钗
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理

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(telegram): keep room events quiet · openclaw/openclaw...
obviyus · 2026-05-16 · via Recent Commits to openclaw:main

@@ -1571,6 +1571,112 @@ describe("dispatchTelegramMessage draft streaming", () => {

15711571

expect(groupHistories.get(historyKey)).toHaveLength(1);

15721572

});

157315731574+

it("keeps room-event history when a newer turn supersedes dispatch", async () => {

1575+

const historyKey = "telegram:group:-100123";

1576+

const groupHistories = new Map([

1577+

[historyKey, [{ sender: "Alice", body: "lunch at two", timestamp: 1 }]],

1578+

]);

1579+

let releaseFirst: (() => void) | undefined;

1580+

const firstGate = new Promise<void>((resolve) => {

1581+

releaseFirst = resolve;

1582+

});

1583+

let secondStarted: (() => void) | undefined;

1584+

const secondStartGate = new Promise<void>((resolve) => {

1585+

secondStarted = resolve;

1586+

});

1587+

dispatchReplyWithBufferedBlockDispatcher

1588+

.mockImplementationOnce(async () => {

1589+

await firstGate;

1590+

return {

1591+

queuedFinal: false,

1592+

counts: { block: 0, final: 0, tool: 0 },

1593+

sourceReplyDeliveryMode: "message_tool_only",

1594+

};

1595+

})

1596+

.mockImplementationOnce(async () => {

1597+

secondStarted?.();

1598+

return {

1599+

queuedFinal: false,

1600+

counts: { block: 0, final: 0, tool: 0 },

1601+

sourceReplyDeliveryMode: "message_tool_only",

1602+

};

1603+

});

1604+1605+

const createRoomContext = (messageId: number, body: string) =>

1606+

createContext({

1607+

ctxPayload: {

1608+

InboundTurnKind: "room_event",

1609+

SessionKey: "agent:main:telegram:group:-100123",

1610+

ChatType: "group",

1611+

MessageSid: String(messageId),

1612+

RawBody: body,

1613+

BodyForAgent: body,

1614+

CommandBody: body,

1615+

} as unknown as TelegramMessageContext["ctxPayload"],

1616+

msg: {

1617+

chat: { id: -100123, type: "supergroup" },

1618+

message_id: messageId,

1619+

} as unknown as TelegramMessageContext["msg"],

1620+

chatId: -100123,

1621+

isGroup: true,

1622+

historyKey,

1623+

historyLimit: 10,

1624+

groupHistories,

1625+

threadSpec: { id: undefined, scope: "none" },

1626+

});

1627+1628+

const firstPromise = dispatchWithContext({

1629+

context: createRoomContext(99, "ambient one"),

1630+

streamMode: "partial",

1631+

});

1632+

const secondPromise = dispatchWithContext({

1633+

context: createRoomContext(100, "ambient two"),

1634+

streamMode: "partial",

1635+

});

1636+1637+

await secondStartGate;

1638+

releaseFirst?.();

1639+

await Promise.all([firstPromise, secondPromise]);

1640+1641+

expect(groupHistories.get(historyKey)).toHaveLength(1);

1642+

});

1643+1644+

it("does not send visible error fallbacks for room events", async () => {

1645+

const historyKey = "telegram:group:-100123";

1646+

const groupHistories = new Map([

1647+

[historyKey, [{ sender: "Alice", body: "quiet failure", timestamp: 1 }]],

1648+

]);

1649+

dispatchReplyWithBufferedBlockDispatcher.mockRejectedValue(new Error("provider down"));

1650+1651+

await dispatchWithContext({

1652+

context: createContext({

1653+

ctxPayload: {

1654+

InboundTurnKind: "room_event",

1655+

SessionKey: "agent:main:telegram:group:-100123",

1656+

ChatType: "group",

1657+

MessageSid: "101",

1658+

RawBody: "ambient failure",

1659+

BodyForAgent: "ambient failure",

1660+

CommandBody: "ambient failure",

1661+

} as unknown as TelegramMessageContext["ctxPayload"],

1662+

msg: {

1663+

chat: { id: -100123, type: "supergroup" },

1664+

message_id: 101,

1665+

} as unknown as TelegramMessageContext["msg"],

1666+

chatId: -100123,

1667+

isGroup: true,

1668+

historyKey,

1669+

historyLimit: 10,

1670+

groupHistories,

1671+

threadSpec: { id: undefined, scope: "none" },

1672+

}),

1673+

streamMode: "partial",

1674+

});

1675+1676+

expect(deliverReplies).not.toHaveBeenCalled();

1677+

expect(groupHistories.get(historyKey)).toHaveLength(1);

1678+

});

1679+15741680

it("shows compacting reaction during auto-compaction and resumes thinking", async () => {

15751681

const statusReactionController = {

15761682

setThinking: vi.fn(async () => {}),