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

推荐订阅源

B
Blog
The Cloudflare Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
I
InfoQ
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
H
Help Net Security
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
B
Blog RSS 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(docs): make docs formatter mintlify-safe · openclaw/o...
steipete · 2026-04-28 · via Recent Commits to openclaw:main

@@ -90,6 +90,7 @@ Native slash commands are opt-in. When enabled, OpenClaw registers `oc_*` slash

9090

- For multi-account setups, `commands` can be set at the top level or under `channels.mattermost.accounts.<id>.commands` (account values override top-level fields).

9191

- Command callbacks are validated with the per-command tokens returned by Mattermost when OpenClaw registers `oc_*` commands.

9292

- Slash callbacks fail closed when registration failed, startup was partial, or the callback token does not match one of the registered commands.

93+9394

</Accordion>

9495

<Accordion title="Reachability requirement">

9596

The callback endpoint must be reachable from the Mattermost server.

@@ -284,11 +285,13 @@ Enable via `channels.mattermost.streaming`:

284285

- `block` uses append-style draft chunks inside the preview post.

285286

- `progress` shows a status preview while generating and only posts the final answer at completion.

286287

- `off` disables preview streaming.

288+287289

</Accordion>

288290

<Accordion title="Streaming behavior notes">

289291

- If the stream cannot be finalized in place (for example the post was deleted mid-stream), OpenClaw falls back to sending a fresh final post so the reply is never lost.

290292

- Reasoning-only payloads are suppressed from channel posts, including text that arrives as a `> Reasoning:` blockquote. Set `/reasoning on` to see thinking in other surfaces; the Mattermost final post keeps the answer only.

291293

- See [Streaming](/concepts/streaming#preview-streaming-modes) for the channel-mapping matrix.

294+292295

</Accordion>

293296

</AccordionGroup>

294297

@@ -362,6 +365,7 @@ When a user clicks a button:

362365

- Button callbacks use HMAC-SHA256 verification (automatic, no config needed).

363366

- Mattermost strips callback data from its API responses (security feature), so all buttons are removed on click — partial removal is not possible.

364367

- Action IDs containing hyphens or underscores are sanitized automatically (Mattermost routing limitation).

368+365369

</Accordion>

366370

<Accordion title="Config and reachability">

367371

- `channels.mattermost.capabilities`: array of capability strings. Add `"inlineButtons"` to enable the buttons tool description in the agent system prompt.

@@ -370,6 +374,7 @@ When a user clicks a button:

370374

- If `interactions.callbackBaseUrl` is omitted, OpenClaw derives the callback URL from `gateway.customBindHost` + `gateway.port`, then falls back to `http://localhost:<port>`.

371375

- Reachability rule: the button callback URL must be reachable from the Mattermost server. `localhost` only works when Mattermost and OpenClaw run on the same host/network namespace.

372376

- If your callback target is private/tailnet/internal, add its host/domain to Mattermost `ServiceSettings.AllowedUntrustedInternalConnections`.

377+373378

</Accordion>

374379

</AccordionGroup>

375380

@@ -465,6 +470,7 @@ context = {**ctx, "_token": token}

465470

- Always sign **all** context fields (minus `_token`). The gateway strips `_token` then signs everything remaining. Signing a subset causes silent verification failure.

466471

- Use `sort_keys=True` — the gateway sorts keys before signing, and Mattermost may reorder context fields when storing the payload.

467472

- Derive the secret from the bot token (deterministic), not random bytes. The secret must be the same across the process that creates buttons and the gateway that verifies.

473+468474

</Accordion>

469475

</AccordionGroup>

470476

@@ -500,6 +506,7 @@ Mattermost supports multiple accounts under `channels.mattermost.accounts`:

500506

<Accordion title="Auth or multi-account errors">

501507

- Check the bot token, base URL, and whether the account is enabled.

502508

- Multi-account issues: env vars only apply to the `default` account.

509+503510

</Accordion>

504511

<Accordion title="Native slash commands fail">

505512

- `Unauthorized: invalid command token.`: OpenClaw did not accept the callback token. Typical causes:

@@ -509,6 +516,7 @@ Mattermost supports multiple accounts under `channels.mattermost.accounts`:

509516

- the gateway restarted without reactivating slash commands

510517

- If native slash commands stop working, check logs for `mattermost: failed to register slash commands` or `mattermost: native slash commands enabled but no commands could be registered`.

511518

- If `callbackUrl` is omitted and logs warn that the callback resolved to `http://127.0.0.1:18789/...`, that URL is probably only reachable when Mattermost runs on the same host/network namespace as OpenClaw. Set an explicit externally reachable `commands.callbackUrl` instead.

519+512520

</Accordion>

513521

<Accordion title="Buttons issues">

514522

- Buttons appear as white boxes: the agent may be sending malformed button data. Check that each button has both `text` and `callback_data` fields.

@@ -518,6 +526,7 @@ Mattermost supports multiple accounts under `channels.mattermost.accounts`:

518526

- Gateway logs `missing _token in context`: the `_token` field is not in the button's context. Ensure it is included when building the integration payload.

519527

- Confirmation shows raw ID instead of button name: `context.action_id` does not match the button's `id`. Set both to the same sanitized value.

520528

- Agent doesn't know about buttons: add `capabilities: ["inlineButtons"]` to the Mattermost channel config.

529+521530

</Accordion>

522531

</AccordionGroup>

523532