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

推荐订阅源

云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
爱范儿
爱范儿
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
博客园_首页
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园 - Franky
量子位
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence

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: merge Discord Voice sections and trim thread/stream...
vincentkoc · 2026-04-23 · via Recent Commits to openclaw:main

@@ -591,30 +591,9 @@ Default slash command settings:

591591

</Accordion>

592592593593

<Accordion title="Live stream preview">

594-

OpenClaw can stream draft replies by sending a temporary message and editing it as text arrives.

594+

OpenClaw can stream draft replies by sending a temporary message and editing it as text arrives. `channels.discord.streaming` takes `off` (default) | `partial` | `block` | `progress`. `progress` maps to `partial` on Discord; `streamMode` is a legacy alias and is auto-migrated.

595595596-

- `channels.discord.streaming` controls preview streaming (`off` | `partial` | `block` | `progress`, default: `off`).

597-

- Default stays `off` because Discord preview edits can hit rate limits quickly, especially when multiple bots or gateways share the same account or guild traffic.

598-

- `progress` is accepted for cross-channel consistency and maps to `partial` on Discord.

599-

- `channels.discord.streamMode` is a legacy alias and is auto-migrated.

600-

- `partial` edits a single preview message as tokens arrive.

601-

- `block` emits draft-sized chunks (use `draftChunk` to tune size and breakpoints).

602-

- Media, error, and explicit-reply finals cancel pending preview edits without flushing a temporary draft before normal delivery.

603-

- `streaming.preview.toolProgress` controls whether tool/progress updates reuse the same draft preview message (default: `true`). Set `false` to keep separate tool/progress messages.

604-605-

Example:

606-607-

```json5

608-

{

609-

channels: {

610-

discord: {

611-

streaming: "partial",

612-

},

613-

},

614-

}

615-

```

616-617-

`block` mode chunking defaults (clamped to `channels.discord.textChunkLimit`):

596+

Default stays `off` because Discord preview edits hit rate limits quickly when multiple bots or gateways share an account.

618597619598

```json5

620599

{

@@ -631,10 +610,12 @@ Default slash command settings:

631610

}

632611

```

633612634-

Preview streaming is text-only; media replies fall back to normal delivery.

613+

- `partial` edits a single preview message as tokens arrive.

614+

- `block` emits draft-sized chunks (use `draftChunk` to tune size and breakpoints, clamped to `textChunkLimit`).

615+

- Media, error, and explicit-reply finals cancel pending preview edits.

616+

- `streaming.preview.toolProgress` (default `true`) controls whether tool/progress updates reuse the preview message.

635617636-

Note: preview streaming is separate from block streaming. When block streaming is explicitly

637-

enabled for Discord, OpenClaw skips the preview stream to avoid double streaming.

618+

Preview streaming is text-only; media replies fall back to normal delivery. When `block` streaming is explicitly enabled, OpenClaw skips the preview stream to avoid double-streaming.

638619639620

</Accordion>

640621

@@ -652,17 +633,12 @@ Default slash command settings:

652633653634

Thread behavior:

654635655-

- Discord threads are routed as channel sessions

656-

- parent thread metadata can be used for parent-session linkage

657-

- thread config inherits parent channel config unless a thread-specific entry exists

658-

- parent transcript inheritance into newly created auto-threads is opt-in via `channels.discord.thread.inheritParent` (default `false`). When `false`, newly created Discord thread sessions start isolated from the parent channel transcript; when `true`, the parent channel history seeds the new thread session

659-

- per-account overrides live under `channels.discord.accounts.<id>.thread.inheritParent`

660-

- message-tool reactions can resolve `user:<id>` DM targets in addition to channel targets

661-

- `channels.discord.guilds.<guild>.channels.<channel>.requireMention: false` is preserved during reply-stage activation fallback, so configured always-on channels stay always-on even when reply-stage fallback runs

636+

- Discord threads route as channel sessions and inherit parent channel config unless overridden.

637+

- `channels.discord.thread.inheritParent` (default `false`) opts new auto-threads into seeding from the parent transcript. Per-account overrides live under `channels.discord.accounts.<id>.thread.inheritParent`.

638+

- Message-tool reactions can resolve `user:<id>` DM targets.

639+

- `guilds.<guild>.channels.<channel>.requireMention: false` is preserved during reply-stage activation fallback.

662640663-

Channel topics are injected as **untrusted** context (not as system prompt).

664-

Reply and quoted-message context currently stays as received.

665-

Discord allowlists primarily gate who can trigger the agent, not a full supplemental-context redaction boundary.

641+

Channel topics are injected as **untrusted** context. Allowlists gate who can trigger the agent, not a full supplemental-context redaction boundary.

666642667643

</Accordion>

668644

@@ -770,13 +746,9 @@ Default slash command settings:

770746771747

Notes:

772748773-

- `/acp spawn codex --bind here` binds the current Discord channel or thread in place and keeps future messages routed to the same ACP session.

774-

- That can still mean "start a fresh Codex ACP session", but it does not create a new Discord thread by itself. The existing channel stays the chat surface.

775-

- Codex may still run in its own `cwd` or backend workspace on disk. That workspace is runtime state, not a Discord thread.

776-

- Thread messages can inherit the parent channel ACP binding.

777-

- In a bound channel or thread, `/new` and `/reset` reset the same ACP session in place.

778-

- Temporary thread bindings still work and can override target resolution while active.

779-

- `spawnAcpSessions` is only required when OpenClaw needs to create/bind a child thread via `--thread auto|here`. It is not required for `/acp spawn ... --bind here` in the current channel.

749+

- `/acp spawn codex --bind here` binds the current channel or thread in place and keeps future messages on the same ACP session. Thread messages inherit the parent channel binding.

750+

- In a bound channel or thread, `/new` and `/reset` reset the same ACP session in place. Temporary thread bindings can override target resolution while active.

751+

- `spawnAcpSessions` is only required when OpenClaw needs to create/bind a child thread via `--thread auto|here`.

780752781753

See [ACP Agents](/tools/acp-agents) for binding behavior details.

782754

@@ -981,25 +953,9 @@ Default slash command settings:

981953

should only include a manual `/approve` command when the tool result says

982954

chat approvals are unavailable or manual approval is the only path.

983955984-

Gateway auth for this handler uses the same shared credential resolution contract as other Gateway clients:

985-986-

- env-first local auth (`OPENCLAW_GATEWAY_TOKEN` / `OPENCLAW_GATEWAY_PASSWORD` then `gateway.auth.*`)

987-

- in local mode, `gateway.remote.*` can be used as fallback only when `gateway.auth.*` is unset; configured-but-unresolved local SecretRefs fail closed

988-

- remote-mode support via `gateway.remote.*` when applicable

989-

- URL overrides are override-safe: CLI overrides do not reuse implicit credentials, and env overrides use env credentials only

990-991-

Approval resolution behavior:

992-993-

- IDs prefixed with `plugin:` resolve through `plugin.approval.resolve`.

994-

- Other IDs resolve through `exec.approval.resolve`.

995-

- Discord does not do an extra exec-to-plugin fallback hop here; the id

996-

prefix decides which gateway method it calls.

956+

Gateway auth and approval resolution follow the shared Gateway client contract (`plugin:` IDs resolve through `plugin.approval.resolve`; other IDs through `exec.approval.resolve`). Approvals expire after 30 minutes by default.

997957998-

Exec approvals expire after 30 minutes by default. If approvals fail with

999-

unknown approval IDs, verify approver resolution, feature enablement, and

1000-

that the delivered approval id kind matches the pending request.

1001-1002-

Related docs: [Exec approvals](/tools/exec-approvals)

958+

See [Exec approvals](/tools/exec-approvals).

10039591004960

</Accordion>

1005961

</AccordionGroup>

@@ -1052,17 +1008,19 @@ Example:

10521008

}

10531009

```

105410101055-

## Voice channels

1011+

## Voice

1012+1013+

Discord has two distinct voice surfaces: realtime **voice channels** (continuous conversations) and **voice message attachments** (the waveform preview format). The gateway supports both.

105610141057-

OpenClaw can join Discord voice channels for realtime, continuous conversations. This is separate from voice message attachments.

1015+

### Voice channels

1058101610591017

Requirements:

1060101810611019

- Enable native commands (`commands.native` or `channels.discord.commands.native`).

10621020

- Configure `channels.discord.voice`.

10631021

- The bot needs Connect + Speak permissions in the target voice channel.

106410221065-

Use the Discord-only native command `/vc join|leave|status` to control sessions. The command uses the account default agent and follows the same allowlist and group policy rules as other Discord commands.

1023+

Use `/vc join|leave|status` to control sessions. The command uses the account default agent and follows the same allowlist and group policy rules as other Discord commands.

1066102410671025

Auto-join example:

10681026

@@ -1100,17 +1058,13 @@ Notes:

11001058

- OpenClaw also watches receive decrypt failures and auto-recovers by leaving/rejoining the voice channel after repeated failures in a short window.

11011059

- If receive logs repeatedly show `DecryptionFailed(UnencryptedWhenPassthroughDisabled)`, this may be the upstream `@discordjs/voice` receive bug tracked in [discord.js #11419](https://github.com/discordjs/discord.js/issues/11419).

110210601103-

## Voice messages

1104-1105-

Discord voice messages show a waveform preview and require OGG/Opus audio plus metadata. OpenClaw generates the waveform automatically, but it needs `ffmpeg` and `ffprobe` available on the gateway host to inspect and convert audio files.

1061+

### Voice messages

110610621107-

Requirements and constraints:

1063+

Discord voice messages show a waveform preview and require OGG/Opus audio. OpenClaw generates the waveform automatically, but needs `ffmpeg` and `ffprobe` on the gateway host to inspect and convert.

1108106411091065

- Provide a **local file path** (URLs are rejected).

1110-

- Omit text content (Discord does not allow text + voice message in the same payload).

1111-

- Any audio format is accepted; OpenClaw converts to OGG/Opus when needed.

1112-1113-

Example:

1066+

- Omit text content (Discord rejects text + voice message in the same payload).

1067+

- Any audio format is accepted; OpenClaw converts to OGG/Opus as needed.

1114106811151069

```bash

11161070

message(action="send", channel="discord", target="channel:123", path="/path/to/audio.mp3", asVoice=true)