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

推荐订阅源

K
Kaspersky official blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
Netflix TechBlog - Medium
腾讯CDC
IT之家
IT之家
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
罗磊的独立博客
P
Privacy International News Feed
D
DataBreaches.Net
T
Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
S
Securelist
P
Palo Alto Networks Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Secure Thoughts
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LangChain Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Troy Hunt's Blog
The Last Watchdog
The Last Watchdog
T
Tor Project blog
V
Vulnerabilities – Threatpost
T
Threat Research - Cisco Blogs
H
Heimdal Security Blog
Hugging Face - Blog
Hugging Face - Blog
Hacker News: Ask HN
Hacker News: Ask HN
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
S
SegmentFault 最新的问题
Know Your Adversary
Know Your Adversary
博客园_首页
N
News and Events Feed by Topic
G
GRAHAM CLULEY
L
LINUX DO - 热门话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Help Net Security
Help Net Security
Simon Willison's Weblog
Simon Willison's Weblog
H
Hacker News: Front Page
大猫的无限游戏
大猫的无限游戏
AWS News Blog
AWS News Blog
The Cloudflare Blog
AI
AI

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
fix(commands): make /skill load workspace skills · openclaw/openclaw@667393b
MonkeyLeeT · 2026-05-31 · via Recent Commits to openclaw:main

@@ -12,13 +12,19 @@ import { stripInlineStatus } from "./reply-inline.js";

1212

import { buildTestCtx } from "./test-ctx.js";

1313

import type { TypingController } from "./typing.js";

141415-

const { buildStatusReplyMock, createOpenClawToolsMock, getChannelPluginMock, handleCommandsMock } =

16-

vi.hoisted(() => ({

17-

buildStatusReplyMock: vi.fn(),

18-

createOpenClawToolsMock: vi.fn(),

19-

getChannelPluginMock: vi.fn(),

20-

handleCommandsMock: vi.fn(),

21-

}));

15+

const {

16+

buildStatusReplyMock,

17+

createOpenClawToolsMock,

18+

getChannelPluginMock,

19+

handleCommandsMock,

20+

listSkillCommandsForWorkspaceMock,

21+

} = vi.hoisted(() => ({

22+

buildStatusReplyMock: vi.fn(),

23+

createOpenClawToolsMock: vi.fn(),

24+

getChannelPluginMock: vi.fn(),

25+

handleCommandsMock: vi.fn(),

26+

listSkillCommandsForWorkspaceMock: vi.fn(),

27+

}));

22282329

type HandleInlineActionsInput = Parameters<

2430

typeof import("./get-reply-inline-actions.js").handleInlineActions

@@ -29,6 +35,10 @@ vi.mock("./commands.runtime.js", () => ({

2935

buildStatusReply: (...args: unknown[]) => buildStatusReplyMock(...args),

3036

}));

313738+

vi.mock("../../skills/discovery/chat-commands.runtime.js", () => ({

39+

listSkillCommandsForWorkspace: (...args: unknown[]) => listSkillCommandsForWorkspaceMock(...args),

40+

}));

41+3242

vi.mock("../../agents/openclaw-tools.runtime.js", () => ({

3343

createOpenClawTools: (...args: unknown[]) => createOpenClawToolsMock(...args),

3444

}));

@@ -180,10 +190,47 @@ function mockCallArgs(mock: ReturnType<typeof vi.fn>, label: string, callIndex =

180190

return call;

181191

}

182192193+

function mockToolDispatchedSkillCommand() {

194+

const toolExecute = vi.fn(async () => ({ text: "sent" }));

195+

createOpenClawToolsMock.mockReturnValue([

196+

{

197+

name: "send_status",

198+

execute: toolExecute,

199+

},

200+

]);

201+

listSkillCommandsForWorkspaceMock.mockReturnValue([

202+

{

203+

name: "send_status",

204+

skillName: "send-status",

205+

description: "Send status",

206+

dispatch: {

207+

kind: "tool",

208+

toolName: "send_status",

209+

argMode: "raw",

210+

},

211+

},

212+

] satisfies SkillCommandSpec[]);

213+

return toolExecute;

214+

}

215+216+

function officeHoursSkillCommands(): SkillCommandSpec[] {

217+

return [

218+

{

219+

name: "office_hours",

220+

skillName: "office-hours",

221+

description: "Office hours",

222+

promptTemplate: "Act as an engineering advisor.\n\nFocus on:\n$ARGUMENTS",

223+

sourceFilePath: "/tmp/plugin/commands/office-hours.md",

224+

},

225+

];

226+

}

227+183228

describe("handleInlineActions", () => {

184229

beforeEach(() => {

185230

handleCommandsMock.mockReset();

186231

handleCommandsMock.mockResolvedValue({ shouldContinue: true, reply: undefined });

232+

listSkillCommandsForWorkspaceMock.mockReset();

233+

listSkillCommandsForWorkspaceMock.mockReturnValue([]);

187234

getChannelPluginMock.mockReset();

188235

createOpenClawToolsMock.mockReset();

189236

buildStatusReplyMock.mockReset();

@@ -467,6 +514,76 @@ describe("handleInlineActions", () => {

467514

});

468515

});

469516517+

it("skips stale queued /skill messages before loading or dispatching skills", async () => {

518+

const typing = createTypingController();

519+

const toolExecute = mockToolDispatchedSkillCommand();

520+

const sessionEntry: SessionEntry = {

521+

sessionId: "session-skill",

522+

updatedAt: Date.now(),

523+

abortCutoffMessageSid: "42",

524+

abortedLastRun: true,

525+

};

526+

const sessionStore = { "s:main": sessionEntry };

527+

const ctx = buildTestCtx({

528+

Body: "/skill send_status now",

529+

CommandBody: "/skill send_status now",

530+

MessageSid: "41",

531+

});

532+533+

await expectInlineActionSkipped({

534+

ctx,

535+

typing,

536+

cleanedBody: "/skill send_status now",

537+

command: {

538+

isAuthorizedSender: true,

539+

rawBodyNormalized: "/skill send_status now",

540+

commandBodyNormalized: "/skill send_status now",

541+

},

542+

overrides: {

543+

allowTextCommands: true,

544+

cfg: { commands: { text: true } },

545+

sessionEntry,

546+

sessionStore,

547+

skillCommands: [],

548+

},

549+

});

550+551+

expect(listSkillCommandsForWorkspaceMock).not.toHaveBeenCalled();

552+

expect(createOpenClawToolsMock).not.toHaveBeenCalled();

553+

expect(toolExecute).not.toHaveBeenCalled();

554+

});

555+556+

it("skips empty-config /skill tool dispatch before loading skills", async () => {

557+

const typing = createTypingController();

558+

const toolExecute = mockToolDispatchedSkillCommand();

559+

const ctx = buildTestCtx({

560+

From: "whatsapp:+999",

561+

To: "whatsapp:+123",

562+

Body: "/skill send_status now",

563+

CommandBody: "/skill send_status now",

564+

});

565+566+

await expectInlineActionSkipped({

567+

ctx,

568+

typing,

569+

cleanedBody: "/skill send_status now",

570+

command: {

571+

isAuthorizedSender: true,

572+

to: "whatsapp:+123",

573+

rawBodyNormalized: "/skill send_status now",

574+

commandBodyNormalized: "/skill send_status now",

575+

},

576+

overrides: {

577+

allowTextCommands: true,

578+

skillCommands: [],

579+

},

580+

});

581+582+

expect(listSkillCommandsForWorkspaceMock).not.toHaveBeenCalled();

583+

expect(createOpenClawToolsMock).not.toHaveBeenCalled();

584+

expect(toolExecute).not.toHaveBeenCalled();

585+

});

586+470587

it("clears /stop cutoff when a newer message arrives", async () => {

471588

const typing = createTypingController();

472589

const sessionEntry: SessionEntry = {

@@ -554,15 +671,7 @@ describe("handleInlineActions", () => {

554671

Body: "/office_hours build me a deployment plan",

555672

CommandBody: "/office_hours build me a deployment plan",

556673

});

557-

const skillCommands: SkillCommandSpec[] = [

558-

{

559-

name: "office_hours",

560-

skillName: "office-hours",

561-

description: "Office hours",

562-

promptTemplate: "Act as an engineering advisor.\n\nFocus on:\n$ARGUMENTS",

563-

sourceFilePath: "/tmp/plugin/commands/office-hours.md",

564-

},

565-

];

674+

const skillCommands = officeHoursSkillCommands();

566675567676

const result = await handleInlineActions(

568677

createHandleInlineActionsInput({

@@ -592,6 +701,43 @@ describe("handleInlineActions", () => {

592701

);

593702

});

594703704+

it("loads workspace skills when /skill gets an empty preloaded command list", async () => {

705+

const typing = createTypingController();

706+

handleCommandsMock.mockResolvedValue({ shouldContinue: false, reply: { text: "done" } });

707+

const ctx = buildTestCtx({

708+

Body: "/skill office_hours build me a deployment plan",

709+

CommandBody: "/skill office_hours build me a deployment plan",

710+

});

711+

const skillCommands = officeHoursSkillCommands();

712+

listSkillCommandsForWorkspaceMock.mockReturnValue(skillCommands);

713+714+

const result = await handleInlineActions(

715+

createHandleInlineActionsInput({

716+

ctx,

717+

typing,

718+

cleanedBody: "/skill office_hours build me a deployment plan",

719+

command: {

720+

isAuthorizedSender: true,

721+

rawBodyNormalized: "/skill office_hours build me a deployment plan",

722+

commandBodyNormalized: "/skill office_hours build me a deployment plan",

723+

},

724+

overrides: {

725+

allowTextCommands: true,

726+

cfg: { commands: { text: true } },

727+

skillCommands: [],

728+

},

729+

}),

730+

);

731+732+

expect(result).toEqual({ kind: "reply", reply: { text: "done" } });

733+

expect(listSkillCommandsForWorkspaceMock).toHaveBeenCalledOnce();

734+

expect(ctx.Body).toBe(

735+

"Act as an engineering advisor.\n\nFocus on:\nbuild me a deployment plan",

736+

);

737+

const commandArgs = mockObjectArg(handleCommandsMock, "handleCommands");

738+

expect(commandArgs.skillCommands).toEqual(skillCommands);

739+

});

740+595741

it("passes requesterAgentIdOverride into inline tool runtimes", async () => {

596742

const typing = createTypingController();

597743

const toolExecute = vi.fn(async () => ({ text: "spawned" }));