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

推荐订阅源

U
Unit 42
T
The Blog of Author Tim Ferriss
H
Help Net Security
博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
博客园 - 聂微东
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
B
Blog
Engineering at Meta
Engineering at Meta
V
V2EX
Hugging Face - Blog
Hugging Face - 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
docs: typography hygiene across 6 pages · openclaw/opencl...
vincentkoc · 2026-05-06 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -361,7 +361,7 @@ When a user clicks a button:

361361

<AccordionGroup>

362362

<Accordion title="Implementation notes">

363363

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

364-

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

364+

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

365365

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

366366
367367

</Accordion>

@@ -391,7 +391,7 @@ External scripts and webhooks can post buttons directly via the Mattermost REST

391391

{

392392

actions: [

393393

{

394-

id: "mybutton01", // alphanumeric only see below

394+

id: "mybutton01", // alphanumeric only - see below

395395

type: "button", // required, or clicks are silently ignored

396396

name: "Approve", // display label

397397

style: "primary", // optional: "default", "primary", "danger"

@@ -416,11 +416,11 @@ External scripts and webhooks can post buttons directly via the Mattermost REST

416416

**Critical rules**

417417
418418

1. Attachments go in `props.attachments`, not top-level `attachments` (silently ignored).

419-

2. Every action needs `type: "button"` without it, clicks are swallowed silently.

420-

3. Every action needs an `id` field Mattermost ignores actions without IDs.

419+

2. Every action needs `type: "button"` - without it, clicks are swallowed silently.

420+

3. Every action needs an `id` field - Mattermost ignores actions without IDs.

421421

4. Action `id` must be **alphanumeric only** (`[a-zA-Z0-9]`). Hyphens and underscores break Mattermost's server-side action routing (returns 404). Strip them before use.

422422

5. `context.action_id` must match the button's `id` so the confirmation message shows the button name (e.g., "Approve") instead of a raw ID.

423-

6. `context.action_id` is required the interaction handler returns 400 without it.

423+

6. `context.action_id` is required - the interaction handler returns 400 without it.

424424
425425

</Warning>

426426

@@ -467,7 +467,7 @@ context = {**ctx, "_token": token}

467467

<Accordion title="Common HMAC pitfalls">

468468

- Python's `json.dumps` adds spaces by default (`{"key": "val"}`). Use `separators=(",", ":")` to match JavaScript's compact output (`{"key":"val"}`).

469469

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

470-

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

470+

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

471471

- 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.

472472
473473

</Accordion>

@@ -477,7 +477,7 @@ context = {**ctx, "_token": token}

477477
478478

The Mattermost plugin includes a directory adapter that resolves channel and user names via the Mattermost API. This enables `#channel-name` and `@username` targets in `openclaw message send` and cron/webhook deliveries.

479479
480-

No configuration is needed the adapter uses the bot token from the account config.

480+

No configuration is needed - the adapter uses the bot token from the account config.

481481
482482

## Multi-account

483483

@@ -531,8 +531,8 @@ Mattermost supports multiple accounts under `channels.mattermost.accounts`:

531531
532532

## Related

533533
534-

- [Channel Routing](/channels/channel-routing) session routing for messages

535-

- [Channels Overview](/channels) all supported channels

536-

- [Groups](/channels/groups) group chat behavior and mention gating

537-

- [Pairing](/channels/pairing) DM authentication and pairing flow

538-

- [Security](/gateway/security) access model and hardening

534+

- [Channel Routing](/channels/channel-routing) - session routing for messages

535+

- [Channels Overview](/channels) - all supported channels

536+

- [Groups](/channels/groups) - group chat behavior and mention gating

537+

- [Pairing](/channels/pairing) - DM authentication and pairing flow

538+

- [Security](/gateway/security) - access model and hardening

Original file line numberDiff line numberDiff line change

@@ -82,7 +82,7 @@ Provider-owned runner behavior lives on explicit provider hooks such as replay p

8282
8383

## Built-in providers (pi-ai catalog)

8484
85-

OpenClaw ships with the piai catalog. These providers require **no** `models.providers` config; just set auth + pick a model.

85+

OpenClaw ships with the pi-ai catalog. These providers require **no** `models.providers` config; just set auth + pick a model.

8686
8787

### OpenAI

8888

@@ -295,11 +295,11 @@ See [/providers/kilocode](/providers/kilocode) for setup details.

295295

| ----------------------- | -------------------------------- | ------------------------------------------------------------ | --------------------------------------------- |

296296

| BytePlus | `byteplus` / `byteplus-plan` | `BYTEPLUS_API_KEY` | `byteplus-plan/ark-code-latest` |

297297

| Cerebras | `cerebras` | `CEREBRAS_API_KEY` | `cerebras/zai-glm-4.7` |

298-

| Cloudflare AI Gateway | `cloudflare-ai-gateway` | `CLOUDFLARE_AI_GATEWAY_API_KEY` | |

298+

| Cloudflare AI Gateway | `cloudflare-ai-gateway` | `CLOUDFLARE_AI_GATEWAY_API_KEY` | - |

299299

| DeepInfra | `deepinfra` | `DEEPINFRA_API_KEY` | `deepinfra/deepseek-ai/DeepSeek-V3.2` |

300300

| DeepSeek | `deepseek` | `DEEPSEEK_API_KEY` | `deepseek/deepseek-v4-flash` |

301-

| GitHub Copilot | `github-copilot` | `COPILOT_GITHUB_TOKEN` / `GH_TOKEN` / `GITHUB_TOKEN` | |

302-

| Groq | `groq` | `GROQ_API_KEY` | |

301+

| GitHub Copilot | `github-copilot` | `COPILOT_GITHUB_TOKEN` / `GH_TOKEN` / `GITHUB_TOKEN` | - |

302+

| Groq | `groq` | `GROQ_API_KEY` | - |

303303

| Hugging Face Inference | `huggingface` | `HUGGINGFACE_HUB_TOKEN` or `HF_TOKEN` | `huggingface/deepseek-ai/DeepSeek-R1` |

304304

| Kilo Gateway | `kilocode` | `KILOCODE_API_KEY` | `kilocode/kilo/auto` |

305305

| Kimi Coding | `kimi` | `KIMI_API_KEY` or `KIMICODE_API_KEY` | `kimi/kimi-code` |

@@ -312,7 +312,7 @@ See [/providers/kilocode](/providers/kilocode) for setup details.

312312

| Qwen Cloud | `qwen` | `QWEN_API_KEY` / `MODELSTUDIO_API_KEY` / `DASHSCOPE_API_KEY` | `qwen/qwen3.5-plus` |

313313

| StepFun | `stepfun` / `stepfun-plan` | `STEPFUN_API_KEY` | `stepfun/step-3.5-flash` |

314314

| Together | `together` | `TOGETHER_API_KEY` | `together/moonshotai/Kimi-K2.5` |

315-

| Venice | `venice` | `VENICE_API_KEY` | |

315+

| Venice | `venice` | `VENICE_API_KEY` | - |

316316

| Vercel AI Gateway | `vercel-ai-gateway` | `AI_GATEWAY_API_KEY` | `vercel-ai-gateway/anthropic/claude-opus-4.6` |

317317

| Volcano Engine (Doubao) | `volcengine` / `volcengine-plan` | `VOLCANO_ENGINE_API_KEY` | `volcengine-plan/ark-code-latest` |

318318

| xAI | `xai` | `XAI_API_KEY` | `xai/grok-4.3` |

@@ -343,7 +343,7 @@ See [/providers/kilocode](/providers/kilocode) for setup details.

343343
344344

## Providers via `models.providers` (custom/base URL)

345345
346-

Use `models.providers` (or `models.json`) to add **custom** providers or OpenAI/Anthropiccompatible proxies.

346+

Use `models.providers` (or `models.json`) to add **custom** providers or OpenAI/Anthropic-compatible proxies.

347347
348348

Many of the bundled provider plugins below already publish a default catalog. Use explicit `models.providers.<id>` entries only when you want to override the default base URL, headers, or model list.

349349

@@ -635,7 +635,7 @@ See [/providers/sglang](/providers/sglang) for details.

635635
636636

### Local proxies (LM Studio, vLLM, LiteLLM, etc.)

637637
638-

Example (OpenAIcompatible):

638+

Example (OpenAI-compatible):

639639
640640

```json5

641641

{

@@ -708,7 +708,7 @@ See also: [Configuration](/gateway/configuration) for full configuration example

708708
709709

## Related

710710
711-

- [Configuration reference](/gateway/config-agents#agent-defaults) model config keys

712-

- [Model failover](/concepts/model-failover) fallback chains and retry behavior

713-

- [Models](/concepts/models) model configuration and aliases

714-

- [Providers](/providers) per-provider setup guides

711+

- [Configuration reference](/gateway/config-agents#agent-defaults) - model config keys

712+

- [Model failover](/concepts/model-failover) - fallback chains and retry behavior

713+

- [Models](/concepts/models) - model configuration and aliases

714+

- [Providers](/providers) - per-provider setup guides

Original file line numberDiff line numberDiff line change

@@ -69,17 +69,17 @@ streaming and the provider also includes it in the completed reply.

6969
7070

Block chunking is implemented by `EmbeddedBlockChunker`:

7171
72-

- **Low bound:** dont emit until buffer >= `minChars` (unless forced).

72+

- **Low bound:** don't emit until buffer >= `minChars` (unless forced).

7373

- **High bound:** prefer splits before `maxChars`; if forced, split at `maxChars`.

7474

- **Break preference:** `paragraph``newline``sentence``whitespace` → hard break.

7575

- **Code fences:** never split inside fences; when forced at `maxChars`, close + reopen the fence to keep Markdown valid.

7676
77-

`maxChars` is clamped to the channel `textChunkLimit`, so you cant exceed per-channel caps.

77+

`maxChars` is clamped to the channel `textChunkLimit`, so you can't exceed per-channel caps.

7878
7979

## Coalescing (merge streamed blocks)

8080
8181

When block streaming is enabled, OpenClaw can **merge consecutive block chunks**

82-

before sending them out. This reduces single-line spam while still providing

82+

before sending them out. This reduces "single-line spam" while still providing

8383

progressive output.

8484
8585

- Coalescing waits for **idle gaps** (`idleMs`) before flushing.

@@ -98,7 +98,7 @@ block replies (after the first block). This makes multi-bubble responses feel

9898

more natural.

9999
100100

- Config: `agents.defaults.humanDelay` (override per agent via `agents.list[].humanDelay`).

101-

- Modes: `off` (default), `natural` (8002500ms), `custom` (`minMs`/`maxMs`).

101+

- Modes: `off` (default), `natural` (800-2500ms), `custom` (`minMs`/`maxMs`).

102102

- Applies only to **block replies**, not final replies or tool summaries.

103103
104104

## "Stream chunks or everything"

@@ -193,7 +193,7 @@ Matrix:

193193
194194

### Tool-progress preview updates

195195
196-

Preview streaming can also include **tool-progress** updates short status lines like "searching the web", "reading file", or "calling tool" that appear in the same preview message while tools are running, ahead of the final reply. This keeps multi-step tool turns visually alive rather than silent between the first thinking preview and the final answer.

196+

Preview streaming can also include **tool-progress** updates - short status lines like "searching the web", "reading file", or "calling tool" - that appear in the same preview message while tools are running, ahead of the final reply. This keeps multi-step tool turns visually alive rather than silent between the first thinking preview and the final answer.

197197
198198

Supported surfaces:

199199

@@ -243,7 +243,7 @@ Use the same shape under another compact progress channel key, for example `chan

243243

## Related

244244
245245

- [Message lifecycle refactor](/concepts/message-lifecycle-refactor) - target shared preview, edit, stream, and finalization design

246-

- [Progress drafts](/concepts/progress-drafts) visible work-in-progress messages that update during long turns

247-

- [Messages](/concepts/messages) message lifecycle and delivery

248-

- [Retry](/concepts/retry) retry behavior on delivery failure

249-

- [Channels](/channels) per-channel streaming support

246+

- [Progress drafts](/concepts/progress-drafts) - visible work-in-progress messages that update during long turns

247+

- [Messages](/concepts/messages) - message lifecycle and delivery

248+

- [Retry](/concepts/retry) - retry behavior on delivery failure

249+

- [Channels](/channels) - per-channel streaming support

Original file line numberDiff line numberDiff line change

@@ -36,7 +36,7 @@ install from npm during the launch cutover.

3636

Add a model provider (LLM, proxy, or custom endpoint)

3737

</Card>

3838

<Card title="Tool / hook plugin" icon="wrench" href="/plugins/hooks">

39-

Register agent tools, event hooks, or services continue below

39+

Register agent tools, event hooks, or services - continue below

4040

</Card>

4141

</CardGroup>

4242

@@ -126,7 +126,7 @@ and provider plugins have dedicated guides linked above.

126126

```

127127
128128

`definePluginEntry` is for non-channel plugins. For channels, use

129-

`defineChannelPluginEntry` see [Channel Plugins](/plugins/sdk-channel-plugins).

129+

`defineChannelPluginEntry` - see [Channel Plugins](/plugins/sdk-channel-plugins).

130130

For full entry point options, see [Entry Points](/plugins/sdk-entrypoints).

131131
132132

</Step>

@@ -144,7 +144,7 @@ and provider plugins have dedicated guides linked above.

144144

Bare package specs like `@myorg/openclaw-my-plugin` install from npm during

145145

the launch cutover. Use `clawhub:` when you want ClawHub resolution.

146146
147-

**In-repo plugins:** place under the bundled plugin workspace tree automatically discovered.

147+

**In-repo plugins:** place under the bundled plugin workspace tree - automatically discovered.

148148
149149

```bash

150150

pnpm test -- <bundled-plugin-root>/my-plugin/

@@ -220,7 +220,7 @@ available) or optional (user opt-in):

220220
221221

```typescript

222222

register(api) {

223-

// Required tool always available

223+

// Required tool - always available

224224

api.registerTool({

225225

name: "my_tool",

226226

description: "Do a thing",

@@ -230,7 +230,7 @@ register(api) {

230230

},

231231

});

232232
233-

// Optional tool user must add to allowlist

233+

// Optional tool - user must add to allowlist

234234

api.registerTool(

235235

{

236236

name: "workflow_tool",

@@ -338,7 +338,7 @@ import { ... } from "openclaw/plugin-sdk";

338338

For the full subpath reference, see [SDK Overview](/plugins/sdk-overview).

339339
340340

Within your plugin, use local barrel files (`api.ts`, `runtime-api.ts`) for

341-

internal imports never import your own plugin through its SDK path.

341+

internal imports - never import your own plugin through its SDK path.

342342
343343

For provider plugins, keep provider-specific helpers in those package-root

344344

barrels unless the seam is truly generic. Current bundled examples:

@@ -398,8 +398,8 @@ reserved surfaces, not as the default pattern for new third-party plugins.

398398
399399

## Related

400400
401-

- [Plugin Architecture](/plugins/architecture) internal architecture deep dive

402-

- [SDK Overview](/plugins/sdk-overview) Plugin SDK reference

403-

- [Manifest](/plugins/manifest) plugin manifest format

404-

- [Channel Plugins](/plugins/sdk-channel-plugins) building channel plugins

405-

- [Provider Plugins](/plugins/sdk-provider-plugins) building provider plugins

401+

- [Plugin Architecture](/plugins/architecture) - internal architecture deep dive

402+

- [SDK Overview](/plugins/sdk-overview) - Plugin SDK reference

403+

- [Manifest](/plugins/manifest) - plugin manifest format

404+

- [Channel Plugins](/plugins/sdk-channel-plugins) - building channel plugins

405+

- [Provider Plugins](/plugins/sdk-provider-plugins) - building provider plugins