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

推荐订阅源

L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
博客园 - 司徒正美
罗磊的独立博客
D
Docker
Last Week in AI
Last Week in AI
爱范儿
爱范儿
M
MIT News - Artificial intelligence
V
V2EX
Google DeepMind News
Google DeepMind News
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
V
Visual Studio Blog
博客园 - 叶小钗
B
Blog RSS Feed
A
About on SuperTechFans
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
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
fix: bound slack command confirm text · openclaw/openclaw...
steipete · 2026-04-30 · via Recent Commits to openclaw:main

@@ -9,6 +9,7 @@ vi.mock("./slash-commands.runtime.js", () => {

99

const reportLongCommand = { key: "reportlong", nativeName: "reportlong" };

1010

const reportLongButtonCommand = { key: "reportlongbutton", nativeName: "reportlongbutton" };

1111

const unsafeConfirmCommand = { key: "unsafeconfirm", nativeName: "unsafeconfirm" };

12+

const longConfirmCommand = { key: "longconfirm", nativeName: "longconfirm" };

1213

const statusAliasCommand = { key: "status", nativeName: "status" };

1314

const periodArg = { name: "period", description: "period" };

1415

const baseReportPeriodChoices = [

@@ -78,6 +79,9 @@ vi.mock("./slash-commands.runtime.js", () => {

7879

if (normalized === "unsafeconfirm") {

7980

return unsafeConfirmCommand;

8081

}

82+

if (normalized === "longconfirm") {

83+

return longConfirmCommand;

84+

}

8185

if (normalized === "agentstatus") {

8286

return statusAliasCommand;

8387

}

@@ -126,6 +130,12 @@ vi.mock("./slash-commands.runtime.js", () => {

126130

acceptsArgs: true,

127131

args: [],

128132

},

133+

{

134+

name: "longconfirm",

135+

description: "LongConfirm",

136+

acceptsArgs: true,

137+

args: [],

138+

},

129139

{

130140

name: "agentstatus",

131141

description: "Status",

@@ -179,6 +189,15 @@ vi.mock("./slash-commands.runtime.js", () => {

179189

],

180190

};

181191

}

192+

if (params.command?.key === "longconfirm") {

193+

return {

194+

arg: { name: `mode_${"x".repeat(320)}`, description: "mode" },

195+

choices: [

196+

{ value: "on", label: "on" },

197+

{ value: "off", label: "off" },

198+

],

199+

};

200+

}

182201

if (params.command?.key !== "usage") {

183202

return null;

184203

}

@@ -428,6 +447,7 @@ describe("Slack native command argument menus", () => {

428447

let reportLongHandler: (args: unknown) => Promise<void>;

429448

let reportLongButtonHandler: (args: unknown) => Promise<void>;

430449

let unsafeConfirmHandler: (args: unknown) => Promise<void>;

450+

let longConfirmHandler: (args: unknown) => Promise<void>;

431451

let agentStatusHandler: (args: unknown) => Promise<void>;

432452

let argMenuHandler: (args: unknown) => Promise<void>;

433453

let argMenuOptionsHandler: (args: unknown) => Promise<void>;

@@ -446,6 +466,7 @@ describe("Slack native command argument menus", () => {

446466

"/reportlongbutton",

447467

);

448468

unsafeConfirmHandler = requireHandler(harness.commands, "/unsafeconfirm", "/unsafeconfirm");

469+

longConfirmHandler = requireHandler(harness.commands, "/longconfirm", "/longconfirm");

449470

agentStatusHandler = requireHandler(harness.commands, "/agentstatus", "/agentstatus");

450471

argMenuHandler = requireHandler(harness.actions, /^openclaw_cmdarg/, "arg-menu action");

451472

argMenuOptionsHandler = requireHandler(harness.options, "openclaw_cmdarg", "arg-menu options");

@@ -596,6 +617,16 @@ describe("Slack native command argument menus", () => {

596617

);

597618

});

598619620+

it("truncates confirm dialog text when long args force button fallback", async () => {

621+

const element = (await getFirstActionElementFromCommand(longConfirmHandler)) as

622+

| { type?: string; confirm?: { text?: { text?: string } } }

623+

| undefined;

624+

const confirmText = element?.confirm?.text?.text;

625+

expect(element?.type).toBe("button");

626+

expect(confirmText).toHaveLength(300);

627+

expect(confirmText?.endsWith("…")).toBe(true);

628+

});

629+599630

it("dispatches the command when a menu button is clicked", async () => {

600631

await runArgMenuAction(argMenuHandler, {

601632

action: {