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

推荐订阅源

G
Google Developers Blog
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Help Net Security
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
S
SegmentFault 最新的问题
The Cloudflare Blog
I
InfoQ
美团技术团队
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 司徒正美
L
LangChain Blog
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog

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(approvals): interpolate request id in fallback comman...
itsuzef · 2026-06-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -602,7 +602,7 @@ describe("exec approval forwarder", () => {

602602

expect(text).toContain("🔒 Exec approval required");

603603

expect(text).toContain("Command: `echo hello`");

604604

expect(text).toContain("Expires in: 5s");

605-

expect(text).toContain("Reply with: /approve <id> allow-once|allow-always|deny");

605+

expect(text).toContain("Reply with: /approve req-1 allow-once|allow-always|deny");

606606

});

607607
608608

it("includes command analysis warnings in fallback delivery text", () => {

@@ -639,7 +639,7 @@ describe("exec approval forwarder", () => {

639639

).resolves.toBe(true);

640640

await Promise.resolve();

641641

const text = getFirstDeliveryText(deliver);

642-

expect(text).toContain("Reply with: /approve <id> allow-once|deny");

642+

expect(text).toContain("Reply with: /approve req-1 allow-once|deny");

643643

expect(text).not.toContain("allow-once|allow-always|deny");

644644

expect(text).toContain("Allow Always is unavailable");

645645

});

Original file line numberDiff line numberDiff line change

@@ -286,7 +286,7 @@ export function buildExecApprovalRequestMessage(request: ExecApprovalRequest, no

286286

? "Background mode note: non-interactive runs cannot wait for chat approvals; use pre-approved policy (allow-always or ask=off)."

287287

: "Background mode note: non-interactive runs cannot wait for chat approvals; the effective policy still requires per-run approval unless ask=off.",

288288

);

289-

lines.push(`Reply with: /approve <id> ${decisionText}`);

289+

lines.push(`Reply with: /approve ${request.id} ${decisionText}`);

290290

if (!allowedDecisions.includes("allow-always")) {

291291

lines.push(

292292

"Allow Always is unavailable because the effective policy requires approval every time.",

Original file line numberDiff line numberDiff line change

@@ -190,7 +190,7 @@ describe("plugin approval forwarding", () => {

190190

expect(result).toBe(true);

191191

await flushPendingDelivery();

192192

const payload = firstDeliveredPayload(deliver);

193-

expect(payload?.text).toContain("Reply with: /approve <id> allow-once|deny");

193+

expect(payload?.text).toContain("Reply with: /approve plugin-req-1 allow-once|deny");

194194

expect(payload?.text).not.toContain("allow-always");

195195

expect(payload?.presentation).toEqual({

196196

blocks: [

Original file line numberDiff line numberDiff line change

@@ -108,9 +108,9 @@ export function buildPluginApprovalRequestMessage(

108108

const expiresIn = Math.max(0, Math.round((request.expiresAtMs - nowMsValue) / 1000));

109109

lines.push(`Expires in: ${expiresIn}s`);

110110

lines.push(

111-

`Reply with: /approve <id> ${resolvePluginApprovalRequestAllowedDecisions(request.request).join(

112-

"|",

113-

)}`,

111+

`Reply with: /approve ${request.id} ${resolvePluginApprovalRequestAllowedDecisions(

112+

request.request,

113+

).join("|")}`,

114114

);

115115

return lines.join("\n");

116116

}

Original file line numberDiff line numberDiff line change

@@ -142,7 +142,7 @@ describe("plugin-sdk/approval-renderers", () => {

142142

nowMs: 1_000,

143143

}),

144144

textExpected: (text: string) =>

145-

expect(text).toContain("Reply with: /approve <id> allow-once|deny"),

145+

expect(text).toContain("Reply with: /approve plugin-approval-123 allow-once|deny"),

146146

presentationExpected: {

147147

blocks: [

148148

{