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

推荐订阅源

T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
量子位
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
The Cloudflare Blog
博客园 - Franky
罗磊的独立博客
宝玉的分享
宝玉的分享
博客园_首页
腾讯CDC
The GitHub Blog
The GitHub Blog
D
DataBreaches.Net
IT之家
IT之家
D
Docker
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
V
V2EX
月光博客
月光博客
N
Netflix TechBlog - Medium
爱范儿
爱范儿
I
InfoQ
P
Proofpoint News Feed

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(release): wait for bundled runtime commands · opencl...
steipete · 2026-05-31 · via Recent Commits to openclaw:main

@@ -698,14 +698,7 @@ async function runManifestProbes(plan, options) {

698698

}

699699

}

700700

if (plan.runtimeSlashAliases.length > 0 && plan.activeInThisProbe) {

701-

const commands = await retryRpcCall(

702-

"commands.list",

703-

{ scope: "both", includeArgs: true },

704-

options,

705-

);

706-

for (const alias of plan.runtimeSlashAliases) {

707-

assertCommandVisible(commands, alias);

708-

}

701+

await retryCommandsListWithAliases(plan.runtimeSlashAliases, options);

709702

} else if (plan.runtimeSlashAliases.length > 0) {

710703

console.log(

711704

`Runtime slash command smoke skipped for ${options.pluginId}: plugin is lazy in this probe`,

@@ -741,10 +734,10 @@ function isChannelVisible(payload, channel) {

741734

return false;

742735

}

743736744-

function assertCommandVisible(payload, alias) {

737+

export function isCommandVisible(payload, alias) {

745738

const expected = alias.replace(/^\//u, "").toLowerCase();

746739

const commands = Array.isArray(payload.commands) ? payload.commands : [];

747-

const found = commands.some((command) => {

740+

return commands.some((command) => {

748741

const names = [

749742

command?.name,

750743

command?.nativeName,

@@ -754,13 +747,34 @@ function assertCommandVisible(payload, alias) {

754747

.map((value) => value.replace(/^\//u, "").toLowerCase());

755748

return names.includes(expected);

756749

});

757-

if (!found) {

750+

}

751+752+

function assertCommandVisible(payload, alias) {

753+

const expected = alias.replace(/^\//u, "").toLowerCase();

754+

if (!isCommandVisible(payload, alias)) {

758755

throw new Error(

759756

`commands.list did not include /${expected}: ${JSON.stringify(payload).slice(0, 2000)}`,

760757

);

761758

}

762759

}

763760761+

async function retryCommandsListWithAliases(aliases, options) {

762+

const started = Date.now();

763+

let commands;

764+

while (Date.now() - started < COMMAND_TIMEOUT_MS) {

765+

commands = await retryRpcCall("commands.list", { scope: "both", includeArgs: true }, options);

766+

const missing = aliases.filter((alias) => !isCommandVisible(commands, alias));

767+

if (missing.length === 0) {

768+

return commands;

769+

}

770+

await delay(500);

771+

}

772+

for (const alias of aliases) {

773+

assertCommandVisible(commands, alias);

774+

}

775+

return commands;

776+

}

777+764778

function assertToolVisible(payload, tool) {

765779

const groups = Array.isArray(payload.groups) ? payload.groups : [];

766780

const found = groups.some((group) =>