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

推荐订阅源

S
SegmentFault 最新的问题
J
Java Code Geeks
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
B
Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
美团技术团队
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
N
Netflix TechBlog - Medium
C
Check Point Blog
Recent Announcements
Recent Announcements
博客园 - Franky
博客园 - 叶小钗
T
Tailwind CSS 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: bound slack interactive button urls · openclaw/openc...
steipete · 2026-04-30 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -39,6 +39,7 @@ Docs: https://docs.openclaw.ai

3939

- Slack/commands: keep native command argument menus on select controls for encoded choice values up to Slack's option limit and truncate fallback button labels to Slack's button-text limit, so long valid choices no longer render invalid Slack blocks. Thanks @slackapi.

4040

- Agents/Codex: flush accepted debounced steering messages before normal app-server turn cleanup, so inbound follow-ups acknowledged as queued are not dropped when the turn completes before the debounce fires. Thanks @vincentkoc.

4141

- Slack/interactive replies: keep rendered buttons and selects within Slack Block Kit value and count limits, and align command argument select values with Slack's option limit, so overlong agent-authored choices no longer make Slack reject the whole block payload. Thanks @slackapi.

42+

- Slack/interactive replies: drop overlong Block Kit button URLs while preserving valid callback values, so malformed link buttons no longer make Slack reject the whole interactive reply. Thanks @slackapi.

4243

- CLI/update: scope packaged Node compile caches by OpenClaw version and install metadata, so global installs no longer reuse stale compiled chunks after package updates. Thanks @pashpashpash.

4344

- Channels/Voice call: keep pre-auth webhook in-flight limiting active when socket remote address metadata is missing, so slow-body requests from stripped-IP proxy paths still share the fallback bucket. (#74453) Thanks @davidangularme.

4445

- Plugin SDK/testing: lazy-load TypeScript from the plugin test-contract runtime and add release checks for critical SDK contract entrypoint imports and bundle size, so published packages fail preflight before shipping ESM-incompatible or oversized contract helpers. Thanks @vincentkoc.

Original file line numberDiff line numberDiff line change

@@ -15,6 +15,7 @@ const SLACK_SECTION_TEXT_MAX = 3000;

1515

const SLACK_PLAIN_TEXT_MAX = 75;

1616

const SLACK_OPTION_VALUE_MAX = 75;

1717

const SLACK_BUTTON_VALUE_MAX = 2000;

18+

const SLACK_BUTTON_URL_MAX = 3000;

1819

const SLACK_STATIC_SELECT_OPTIONS_MAX = 100;

1920

const SLACK_ACTION_BLOCK_ELEMENTS_MAX = 25;

2021

@@ -72,7 +73,11 @@ export function buildSlackInteractiveBlocks(interactive?: InteractiveReply): Sla

7273

button.value && isWithinSlackLimit(button.value, SLACK_BUTTON_VALUE_MAX)

7374

? button.value

7475

: undefined;

75-

if (!value && !button.url) {

76+

const url =

77+

button.url && isWithinSlackLimit(button.url, SLACK_BUTTON_URL_MAX)

78+

? button.url

79+

: undefined;

80+

if (!value && !url) {

7681

return [];

7782

}

7883

const style = resolveSlackButtonStyle(button.style);

@@ -86,7 +91,7 @@ export function buildSlackInteractiveBlocks(interactive?: InteractiveReply): Sla

8691

emoji: true,

8792

},

8893

...(value ? { value } : {}),

89-

...(button.url ? { url: button.url } : {}),

94+

...(url ? { url } : {}),

9095

...(style ? { style } : {}),

9196

},

9297

];

Original file line numberDiff line numberDiff line change

@@ -164,6 +164,34 @@ describe("buildSlackInteractiveBlocks", () => {

164164

expect(buttonBlock.elements?.[1]).not.toHaveProperty("value");

165165

});

166166
167+

it("drops Slack button URLs beyond Block Kit limits", () => {

168+

const validUrl = `https://example.com/${"a".repeat(2980)}`;

169+

const longUrl = `https://example.com/${"b".repeat(2981)}`;

170+

const blocks = buildSlackInteractiveBlocks({

171+

blocks: [

172+

{

173+

type: "buttons",

174+

buttons: [

175+

{ label: "Allowed", url: validUrl },

176+

{ label: "Too long", url: longUrl },

177+

{ label: "Fallback action", value: "fallback", url: longUrl },

178+

],

179+

},

180+

],

181+

});

182+
183+

const buttonBlock = blocks[0] as {

184+

elements?: Array<{ value?: string; url?: string }>;

185+

};

186+
187+

expect(validUrl).toHaveLength(3000);

188+

expect(longUrl).toHaveLength(3001);

189+

expect(buttonBlock.elements).toHaveLength(2);

190+

expect(buttonBlock.elements?.[0]?.url).toBe(validUrl);

191+

expect(buttonBlock.elements?.[1]?.value).toBe("fallback");

192+

expect(buttonBlock.elements?.[1]).not.toHaveProperty("url");

193+

});

194+
167195

it("caps Slack actions blocks at the Block Kit element limit", () => {

168196

const blocks = buildSlackInteractiveBlocks({

169197

blocks: [