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

推荐订阅源

N
Netflix TechBlog - Medium
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
WordPress大学
WordPress大学
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
Jina AI
Jina AI
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
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(telegram): stop noninterrupting reply fences · opencl...
steipete · 2026-05-18 · via Recent Commits to openclaw:main

@@ -2124,7 +2124,6 @@ describe("dispatchTelegramMessage draft streaming", () => {

21242124

secondStarted = resolve;

21252125

});

21262126

let firstAbortSignal: AbortSignal | undefined;

2127-

let sideAbortSignal: AbortSignal | undefined;

21282127

dispatchReplyWithBufferedBlockDispatcher

21292128

.mockImplementationOnce(async ({ replyOptions }) => {

21302129

firstAbortSignal = replyOptions?.abortSignal;

@@ -2283,6 +2282,70 @@ describe("dispatchTelegramMessage draft streaming", () => {

22832282

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

22842283

});

228522842285+

it("lets authorized /stop abort active non-interrupting side dispatch", async () => {

2286+

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

2287+

const groupHistories = new Map([[historyKey, []]]);

2288+

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

2289+

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

2290+

sideStarted = resolve;

2291+

});

2292+

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

2293+

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

2294+

releaseSide = resolve;

2295+

});

2296+

let sideAbortSignal: AbortSignal | undefined;

2297+

dispatchReplyWithBufferedBlockDispatcher.mockImplementationOnce(async ({ replyOptions }) => {

2298+

sideAbortSignal = replyOptions?.abortSignal;

2299+

sideStarted?.();

2300+

await sideGate;

2301+

return {

2302+

queuedFinal: false,

2303+

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

2304+

};

2305+

});

2306+

deliverReplies.mockResolvedValue({ delivered: true });

2307+2308+

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

2309+

createContext({

2310+

ctxPayload: {

2311+

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

2312+

ChatType: "group",

2313+

MessageSid: String(messageId),

2314+

RawBody: body,

2315+

BodyForAgent: body,

2316+

CommandBody: body,

2317+

CommandAuthorized: true,

2318+

} as unknown as TelegramMessageContext["ctxPayload"],

2319+

msg: {

2320+

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

2321+

message_id: messageId,

2322+

text: body,

2323+

} as unknown as TelegramMessageContext["msg"],

2324+

chatId: -100123,

2325+

isGroup: true,

2326+

historyKey,

2327+

historyLimit: 10,

2328+

groupHistories,

2329+

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

2330+

});

2331+2332+

const sidePromise = dispatchWithContext({

2333+

context: createGroupContext(100, "/btw what changed?"),

2334+

streamMode: "off",

2335+

});

2336+

await sideStartGate;

2337+

expect(sideAbortSignal?.aborted).toBe(false);

2338+2339+

await dispatchWithContext({

2340+

context: createGroupContext(101, "/stop"),

2341+

streamMode: "off",

2342+

});

2343+2344+

expect(sideAbortSignal?.aborted).toBe(true);

2345+

releaseSide?.();

2346+

await sidePromise;

2347+

});

2348+22862349

it("keeps queued room events abortable after their source dispatch returns", async () => {

22872350

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

22882351

const groupHistories = new Map([[historyKey, []]]);