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

推荐订阅源

L
LINUX DO - 最新话题
P
Privacy International News Feed
NISL@THU
NISL@THU
T
Threatpost
Latest news
Latest news
A
Arctic Wolf
Security Latest
Security Latest
K
Kaspersky official blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
AWS News Blog
AWS News Blog
H
Hacker News: Front Page
IT之家
IT之家
Hacker News: Ask HN
Hacker News: Ask HN
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
B
Blog RSS Feed
Project Zero
Project Zero
B
Blog
N
News | PayPal Newsroom
大猫的无限游戏
大猫的无限游戏
AI
AI
L
Lohrmann on Cybersecurity
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 叶小钗
Cyberwarzone
Cyberwarzone
The Last Watchdog
The Last Watchdog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Docker
Y
Y Combinator Blog
爱范儿
爱范儿
The Hacker News
The Hacker News
Simon Willison's Weblog
Simon Willison's Weblog
The GitHub Blog
The GitHub Blog
G
GRAHAM CLULEY
博客园 - Franky
腾讯CDC
Scott Helme
Scott Helme
The Register - Security
The Register - Security
V2EX - 技术
V2EX - 技术
F
Fortinet All Blogs
Cloudbric
Cloudbric
T
The Exploit Database - CXSecurity.com
雷峰网
雷峰网
H
Heimdal Security Blog
S
Securelist
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: clear telegram session meta broad matchers · openclaw/openclaw@7194a89
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -442,15 +442,73 @@ function createConfiguredBindingRoute(

442442

};

443443

}

444444445+

function requireValue<T>(value: T | null | undefined, label: string): T {

446+

if (value == null) {

447+

throw new Error(`expected ${label}`);

448+

}

449+

return value;

450+

}

451+452+

function requireRecord(value: unknown, label: string): Record<string, unknown> {

453+

if (typeof value !== "object" || value === null || Array.isArray(value)) {

454+

throw new Error(`expected ${label} to be an object`);

455+

}

456+

return value as Record<string, unknown>;

457+

}

458+459+

function expectRecordFields(

460+

value: unknown,

461+

expected: Record<string, unknown>,

462+

label: string,

463+

): Record<string, unknown> {

464+

const record = requireRecord(value, label);

465+

for (const [key, expectedValue] of Object.entries(expected)) {

466+

expect(record[key], `${label}.${key}`).toEqual(expectedValue);

467+

}

468+

return record;

469+

}

470+471+

function expectSendMessageCall(params: {

472+

sendMessage: ReturnType<typeof vi.fn>;

473+

callIndex?: number;

474+

chatId: unknown;

475+

text?: string;

476+

textIncludes?: string;

477+

optionFields?: Record<string, unknown>;

478+

requireReplyMarkup?: boolean;

479+

label: string;

480+

}): Record<string, unknown> {

481+

const call = requireValue(

482+

params.sendMessage.mock.calls[params.callIndex ?? 0],

483+

`${params.label} sendMessage call`,

484+

);

485+

expect(call[0]).toBe(params.chatId);

486+

if (params.text !== undefined) {

487+

expect(call[1]).toBe(params.text);

488+

}

489+

if (params.textIncludes !== undefined) {

490+

expect(String(call[1])).toContain(params.textIncludes);

491+

}

492+

const options = params.optionFields

493+

? expectRecordFields(call[2], params.optionFields, `${params.label} sendMessage options`)

494+

: requireRecord(call[2], `${params.label} sendMessage options`);

495+

if (params.requireReplyMarkup) {

496+

requireRecord(options.reply_markup, `${params.label} reply markup`);

497+

}

498+

return options;

499+

}

500+445501

function expectUnauthorizedNewCommandBlocked(sendMessage: ReturnType<typeof vi.fn>) {

446502

expect(replyMocks.dispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

447503

expect(persistentBindingMocks.resolveConfiguredBindingRoute).not.toHaveBeenCalled();

448504

expect(persistentBindingMocks.ensureConfiguredBindingRouteReady).not.toHaveBeenCalled();

449-

expect(sendMessage).toHaveBeenCalledWith(

450-

-1001234567890,

451-

"You are not authorized to use this command.",

452-

expect.objectContaining({ message_thread_id: 42 }),

453-

);

505+

expectSendMessageCall({

506+

sendMessage,

507+

chatId: -1001234567890,

508+

text: "You are not authorized to use this command.",

509+

optionFields: { message_thread_id: 42 },

510+

label: "unauthorized /new",

511+

});

454512

}

455513456514

describe("registerTelegramNativeCommands — session metadata", () => {

@@ -546,18 +604,19 @@ describe("registerTelegramNativeCommands — session metadata", () => {

546604

const menuCall = commandAuthMocks.resolveCommandArgMenu.mock.calls.find(

547605

([params]) => params.command.key === "think" && params.provider === "anthropic",

548606

)?.[0];

549-

expect(menuCall).toEqual(

550-

expect.objectContaining({

551-

provider: "anthropic",

552-

model: "claude-opus-4-7",

553-

}),

607+

expectRecordFields(

608+

menuCall,

609+

{ provider: "anthropic", model: "claude-opus-4-7" },

610+

"thinking menu call",

554611

);

555612

expect(sessionMocks.loadSessionStore).toHaveBeenCalledWith("/tmp/openclaw-sessions.json");

556-

expect(sendMessage).toHaveBeenCalledWith(

557-

100,

558-

expect.stringContaining("Current thinking level: high.\nChoose level for /think."),

559-

expect.objectContaining({ reply_markup: expect.any(Object) }),

560-

);

613+

expectSendMessageCall({

614+

sendMessage,

615+

chatId: 100,

616+

textIncludes: "Current thinking level: high.\nChoose level for /think.",

617+

requireReplyMarkup: true,

618+

label: "thinking menu",

619+

});

561620

expect(replyMocks.dispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

562621

});

563622

@@ -582,17 +641,18 @@ describe("registerTelegramNativeCommands — session metadata", () => {

582641

const menuCall = commandAuthMocks.resolveCommandArgMenu.mock.calls.find(

583642

([params]) => params.command.key === "think" && params.provider === "anthropic",

584643

)?.[0];

585-

expect(menuCall).toEqual(

586-

expect.objectContaining({

587-

provider: "anthropic",

588-

model: "claude-opus-4-7",

589-

}),

590-

);

591-

expect(sendMessage).toHaveBeenCalledWith(

592-

100,

593-

expect.stringContaining("Choose level for /think."),

594-

expect.objectContaining({ reply_markup: expect.any(Object) }),

644+

expectRecordFields(

645+

menuCall,

646+

{ provider: "anthropic", model: "claude-opus-4-7" },

647+

"thread thinking menu call",

595648

);

649+

expectSendMessageCall({

650+

sendMessage,

651+

chatId: 100,

652+

textIncludes: "Choose level for /think.",

653+

requireReplyMarkup: true,

654+

label: "thread thinking menu",

655+

});

596656

expect(replyMocks.dispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

597657

});

598658

@@ -626,17 +686,18 @@ describe("registerTelegramNativeCommands — session metadata", () => {

626686

const menuCall = commandAuthMocks.resolveCommandArgMenu.mock.calls.find(

627687

([params]) => params.command.key === "think" && params.provider === "openai",

628688

)?.[0];

629-

expect(menuCall).toEqual(

630-

expect.objectContaining({

631-

provider: "openai",

632-

model: "gpt-5.5",

633-

}),

634-

);

635-

expect(sendMessage).toHaveBeenCalledWith(

636-

100,

637-

expect.stringContaining("Current thinking level: medium.\nChoose level for /think."),

638-

expect.objectContaining({ reply_markup: expect.any(Object) }),

689+

expectRecordFields(

690+

menuCall,

691+

{ provider: "openai", model: "gpt-5.5" },

692+

"default model thinking menu call",

639693

);

694+

expectSendMessageCall({

695+

sendMessage,

696+

chatId: 100,

697+

textIncludes: "Current thinking level: medium.\nChoose level for /think.",

698+

requireReplyMarkup: true,

699+

label: "default model thinking menu",

700+

});

640701

expect(replyMocks.dispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

641702

});

642703

@@ -669,11 +730,13 @@ describe("registerTelegramNativeCommands — session metadata", () => {

669730

});

670731

await handler(createTelegramPrivateCommandContext());

671732672-

expect(sendMessage).toHaveBeenCalledWith(

673-

100,

674-

expect.stringContaining("Current thinking level: xhigh.\nChoose level for /think."),

675-

expect.objectContaining({ reply_markup: expect.any(Object) }),

676-

);

733+

expectSendMessageCall({

734+

sendMessage,

735+

chatId: 100,

736+

textIncludes: "Current thinking level: xhigh.\nChoose level for /think.",

737+

requireReplyMarkup: true,

738+

label: "target model thinking menu",

739+

});

677740

expect(replyMocks.dispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

678741

});

679742

@@ -706,11 +769,13 @@ describe("registerTelegramNativeCommands — session metadata", () => {

706769

});

707770

await handler(createTelegramPrivateCommandContext());

708771709-

expect(sendMessage).toHaveBeenCalledWith(

710-

100,

711-

expect.stringContaining("Current thinking level: minimal.\nChoose level for /think."),

712-

expect.objectContaining({ reply_markup: expect.any(Object) }),

713-

);

772+

expectSendMessageCall({

773+

sendMessage,

774+

chatId: 100,

775+

textIncludes: "Current thinking level: minimal.\nChoose level for /think.",

776+

requireReplyMarkup: true,

777+

label: "agent thinking menu",

778+

});

714779

expect(replyMocks.dispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

715780

});

716781

@@ -743,9 +808,11 @@ describe("registerTelegramNativeCommands — session metadata", () => {

743808

await runPromise;

744809745810

expect(replyMocks.dispatchReplyWithBufferedBlockDispatcher).toHaveBeenCalledTimes(1);

746-

expect(

811+

const dispatcherOptions = requireRecord(

747812

replyMocks.dispatchReplyWithBufferedBlockDispatcher.mock.calls[0]?.[0].dispatcherOptions,

748-

).toEqual(expect.objectContaining({ beforeDeliver: expect.any(Function) }));

813+

"dispatcher options",

814+

);

815+

expect(dispatcherOptions.beforeDeliver).toBeTypeOf("function");

749816

});

750817751818

it("does not inject approval buttons for native command replies once the monitor owns approvals", async () => {

@@ -848,12 +915,10 @@ describe("registerTelegramNativeCommands — session metadata", () => {

848915

const deliveredCall = deliveryMocks.deliverReplies.mock.calls[0]?.[0] as

849916

| DeliverRepliesParams

850917

| undefined;

851-

expect(deliveredCall).toEqual(

852-

expect.objectContaining({

853-

silent: true,

854-

replies: [expect.objectContaining({ isError: true })],

855-

}),

856-

);

918+

const deliveryParams = requireValue(deliveredCall, "silent error delivery params");

919+

expect(deliveryParams.silent).toBe(true);

920+

expect(deliveryParams.replies).toHaveLength(1);

921+

expect(deliveryParams.replies[0]?.isError).toBe(true);

857922

});

858923859924

it("routes Telegram native commands through configured ACP topic bindings", async () => {

@@ -1055,12 +1120,14 @@ describe("registerTelegramNativeCommands — session metadata", () => {

10551120

]

10561121

>

10571122

)[0]?.[0];

1058-

expect(dispatchCall?.ctx).toEqual(

1059-

expect.objectContaining({

1123+

expectRecordFields(

1124+

dispatchCall?.ctx,

1125+

{

10601126

CommandTargetSessionKey: "agent:main:telegram:group:-1001234567890:topic:42",

10611127

MessageThreadId: 42,

10621128

OriginatingTo: "telegram:-1001234567890:topic:42",

1063-

}),

1129+

},

1130+

"topic dispatch context",

10641131

);

10651132

},

10661133

);

@@ -1091,11 +1158,13 @@ describe("registerTelegramNativeCommands — session metadata", () => {

10911158

await handler(createTelegramTopicCommandContext());

1092115910931160

expect(replyMocks.dispatchReplyWithBufferedBlockDispatcher).not.toHaveBeenCalled();

1094-

expect(sendMessage).toHaveBeenCalledWith(

1095-

-1001234567890,

1096-

"Configured ACP binding is unavailable right now. Please try again.",

1097-

expect.objectContaining({ message_thread_id: 42 }),

1098-

);

1161+

expectSendMessageCall({

1162+

sendMessage,

1163+

chatId: -1001234567890,

1164+

text: "Configured ACP binding is unavailable right now. Please try again.",

1165+

optionFields: { message_thread_id: 42 },

1166+

label: "unavailable ACP binding",

1167+

});

10991168

});

1100116911011170

it("keeps /new blocked in ACP-bound Telegram topics when sender is unauthorized", async () => {

@@ -1180,22 +1249,26 @@ describe("registerTelegramNativeCommands — session metadata", () => {

11801249

createTelegramTopicCommandContext({ match: "bind --cwd /tmp/work", threadId: 42 }),

11811250

);

118212511183-

expect(sessionMocks.resolveAndPersistSessionFile).toHaveBeenCalledWith(

1184-

expect.objectContaining({

1252+

expectRecordFields(

1253+

sessionMocks.resolveAndPersistSessionFile.mock.calls[0]?.[0],

1254+

{

11851255

sessionId: "sess-topic",

11861256

sessionKey: "agent:main:telegram:group:-1001234567890:topic:42",

11871257

storePath: "/tmp/openclaw-sessions/sessions.json",

11881258

sessionsDir: "/tmp/openclaw-sessions",

11891259

fallbackSessionFile: path.resolve("/tmp/openclaw-sessions", "sess-topic-topic-42.jsonl"),

1190-

}),

1260+

},

1261+

"resolved session file params",

11911262

);

1192-

expect(pluginRuntimeMocks.executePluginCommand).toHaveBeenCalledWith(

1193-

expect.objectContaining({

1263+

expectRecordFields(

1264+

(pluginRuntimeMocks.executePluginCommand.mock.calls as unknown as Array<[unknown]>)[0]?.[0],

1265+

{

11941266

sessionKey: "agent:main:telegram:group:-1001234567890:topic:42",

11951267

sessionId: "sess-topic",

11961268

sessionFile: path.resolve("/tmp/openclaw-sessions", "sess-topic-topic-42.jsonl"),

11971269

messageThreadId: 42,

1198-

}),

1270+

},

1271+

"plugin command params",

11991272

);

12001273

});

12011274

@@ -1228,10 +1301,10 @@ describe("registerTelegramNativeCommands — session metadata", () => {

1228130112291302

await handler(createTelegramPrivateCommandContext({ match: "status" }));

123013031231-

expect(deliveryMocks.deliverReplies).toHaveBeenCalledWith(

1232-

expect.objectContaining({

1233-

replies: [{ text: "No response generated. Please try again." }],

1234-

}),

1304+

const deliveryCall = requireValue(

1305+

deliveryMocks.deliverReplies.mock.calls[0]?.[0],

1306+

"empty response delivery params",

12351307

);

1308+

expect(deliveryCall.replies).toEqual([{ text: "No response generated. Please try again." }]);

12361309

});

12371310

});