Skip to content

Commit fa68929

Browse files
committed
fix: resolve small triage issues
1 parent deffd11 commit fa68929

40 files changed

Lines changed: 739 additions & 61 deletions

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ Docs: https://docs.openclaw.ai
9292
- Media: treat `EPERM` from the post-write media fsync step as best-effort, allowing WebChat and channel uploads to finish on Windows filesystems that reject `fsync` after a successful write. Fixes #76844.
9393
- Media/Telegram: send in-limit original images when optional image optimization is unavailable, so Telegram MEDIA replies and message-tool image sends do not fail just because `sharp` is missing. Fixes #77081. (#77117) Thanks @pfrederiksen.
9494
- Diagnostics: include last progress, cron job/run ids, stopped cron job name, and the last assistant transcript snippet in stalled-session and stuck-session recovery logs so cron stalls show what was stopped.
95+
- Streaming channels: add `streaming.preview.commandText: "status"` / `streaming.progress.commandText: "status"` to hide command/exec text in preview progress lines while keeping the released raw command text default. Fixes #77072.
96+
- Agents/cron: let explicit cron `timeoutSeconds` drive both CLI no-output and embedded LLM idle watchdogs instead of being capped by resume defaults. Fixes #76289.
97+
- Plugins/catalog: suppress missing `channelConfigs` compatibility diagnostics for external channel plugins that are disabled, denied, or outside a restrictive allowlist. Fixes #76095.
9598
- Diagnostics: keep webhook/message OTEL attributes and Prometheus delivery labels low-cardinality and omit raw chat/message IDs from spans, so progress-draft and message-tool modes do not leak high-cardinality messaging identifiers.
9699
- Google Meet: stop advertising legacy `mode: "realtime"` to agents and config UIs, while keeping it as a hidden compatibility alias for `mode: "agent"`, so new joins use the STT -> OpenClaw agent -> TTS path instead of selecting the direct realtime voice fallback.
97100
- Google Meet: add `chrome.audioBufferBytes` for generated command-pair SoX audio commands and lower the default buffer from SoX's 8192 bytes to 4096 bytes to reduce Chrome talk-back latency.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
953aece02c70b8df690b51e865a4aea838b53bbe9d43ef9495f80f719a831e38 config-baseline.json
1+
2c78fb7af01e2ee9e919be5ab7b675347b36cae1e347f97fd2640a6f7c72f3ac config-baseline.json
22
31ec333df9f8b92c7656ac7107cecd5860dd02e08f7e18c7c674dc47a8811baa config-baseline.core.json
3-
e10ba2f29f25fc665b96c714075af954eed686c56ca12783cf1f49498f86ac98 config-baseline.channel.json
4-
606641569764473005f8343f4550500dcbe99cf54e1dc21960018cf455912196 config-baseline.plugin.json
3+
cd7c0c7fb1435bc7e59099e9ac334462d5ad444016e9ab4512aae63a238f78dc config-baseline.channel.json
4+
9832b30a696930a3da7efccf38073137571e1b66cae84e54d747b733fdafcc54 config-baseline.plugin.json

docs/channels/discord.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,25 @@ Default slash command settings:
685685
- `block` emits draft-sized chunks (use `draftChunk` to tune size and breakpoints, clamped to `textChunkLimit`).
686686
- Media, error, and explicit-reply finals cancel pending preview edits.
687687
- `streaming.preview.toolProgress` (default `true`) controls whether tool/progress updates reuse the preview message.
688+
- `streaming.preview.commandText` / `streaming.progress.commandText` controls command/exec detail in compact progress lines: `raw` (default) or `status` (tool label only).
689+
690+
Hide raw command/exec text while keeping compact progress lines:
691+
692+
```json
693+
{
694+
"channels": {
695+
"discord": {
696+
"streaming": {
697+
"mode": "progress",
698+
"progress": {
699+
"toolProgress": true,
700+
"commandText": "status"
701+
}
702+
}
703+
}
704+
}
705+
}
706+
```
688707

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

docs/channels/slack.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,25 @@ Notes:
666666
- `block`: append chunked preview updates.
667667
- `progress`: show progress status text while generating, then send final text.
668668
- `streaming.preview.toolProgress`: when draft preview is active, route tool/progress updates into the same edited preview message (default: `true`). Set `false` to keep separate tool/progress messages.
669+
- `streaming.preview.commandText` / `streaming.progress.commandText`: set to `status` to keep compact tool-progress lines while hiding raw command/exec text (default: `raw`).
670+
671+
Hide raw command/exec text while keeping compact progress lines:
672+
673+
```json
674+
{
675+
"channels": {
676+
"slack": {
677+
"streaming": {
678+
"mode": "progress",
679+
"progress": {
680+
"toolProgress": true,
681+
"commandText": "status"
682+
}
683+
}
684+
}
685+
}
686+
}
687+
```
669688

670689
`channels.slack.streaming.nativeTransport` controls Slack native text streaming when `channels.slack.streaming.mode` is `partial` (default: `true`).
671690

docs/channels/telegram.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ curl "https://api.telegram.org/bot<bot_token>/getUpdates"
280280
- `channels.telegram.streaming` is `off | partial | block | progress` (default: `partial`)
281281
- `progress` keeps one editable status draft and updates it with tool progress until final delivery
282282
- `streaming.preview.toolProgress` controls whether tool/progress updates reuse the same edited preview message (default: `true` when preview streaming is active)
283+
- `streaming.preview.commandText` controls command/exec detail inside those tool-progress lines: `raw` (default, preserves released behavior) or `status` (tool label only)
283284
- legacy `channels.telegram.streamMode` and boolean `streaming` values are detected; run `openclaw doctor --fix` to migrate them to `channels.telegram.streaming.mode`
284285

285286
Tool-progress preview updates are the short status lines shown while tools run, for example command execution, file reads, planning updates, or patch summaries. Telegram keeps these enabled by default to match released OpenClaw behavior from `v2026.4.22` and later. To keep the edited preview for answer text but hide tool-progress lines, set:
@@ -299,6 +300,41 @@ curl "https://api.telegram.org/bot<bot_token>/getUpdates"
299300
}
300301
```
301302

303+
To keep tool-progress visible but hide command/exec text, set:
304+
305+
```json
306+
{
307+
"channels": {
308+
"telegram": {
309+
"streaming": {
310+
"mode": "partial",
311+
"preview": {
312+
"commandText": "status"
313+
}
314+
}
315+
}
316+
}
317+
}
318+
```
319+
320+
For progress-draft mode, put the same command-text policy under `streaming.progress`:
321+
322+
```json
323+
{
324+
"channels": {
325+
"telegram": {
326+
"streaming": {
327+
"mode": "progress",
328+
"progress": {
329+
"toolProgress": true,
330+
"commandText": "status"
331+
}
332+
}
333+
}
334+
}
335+
}
336+
```
337+
302338
Use `streaming.mode: "off"` only when you want final-only delivery: Telegram preview edits are disabled and generic tool/progress chatter is suppressed instead of being sent as standalone status messages. Approval prompts, media payloads, and errors still route through normal final delivery. Use `streaming.preview.toolProgress: false` when you only want to keep answer preview edits while hiding the tool-progress status lines.
303339

304340
<Note>

docs/concepts/streaming.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ Supported surfaces:
201201
- Telegram has shipped with tool-progress preview updates enabled since `v2026.4.22`; keeping them enabled preserves that released behavior.
202202
- **Mattermost** already folds tool activity into its single draft preview post (see above).
203203
- Tool-progress edits follow the active preview streaming mode; they are skipped when preview streaming is `off` or when block streaming has taken over the message. On Telegram, `streaming.mode: "off"` is final-only: generic progress chatter is also suppressed instead of being delivered as standalone status messages, while approval prompts, media payloads, and errors still route normally.
204-
- To keep preview streaming but hide tool-progress lines, set `streaming.preview.toolProgress` to `false` for that channel. To disable preview edits entirely, set `streaming.mode` to `off`.
204+
- To keep preview streaming but hide tool-progress lines, set `streaming.preview.toolProgress` to `false` for that channel. To keep tool-progress lines visible while hiding command/exec text, set `streaming.preview.commandText` to `"status"` or `streaming.progress.commandText` to `"status"`; the default is `"raw"` to preserve released behavior. This policy is shared by draft/progress channels that use OpenClaw's compact progress renderer, including Discord, Matrix, Microsoft Teams, Mattermost, Slack draft previews, and Telegram. To disable preview edits entirely, set `streaming.mode` to `off`.
205205
- Telegram selected quote replies are an exception: when `replyToMode` is not `"off"` and selected quote text is present, OpenClaw skips the answer preview stream for that turn so tool-progress preview lines cannot render. Current-message replies without selected quote text still keep preview streaming. See [Telegram channel docs](/channels/telegram) for details.
206206

207-
Example:
207+
Keep progress lines visible but hide raw command/exec text:
208208

209209
```json
210210
{
@@ -213,7 +213,26 @@ Example:
213213
"streaming": {
214214
"mode": "partial",
215215
"preview": {
216-
"toolProgress": false
216+
"toolProgress": true,
217+
"commandText": "status"
218+
}
219+
}
220+
}
221+
}
222+
}
223+
```
224+
225+
Use the same shape under another compact progress channel key, for example `channels.discord`, `channels.matrix`, `channels.msteams`, `channels.mattermost`, or Slack draft previews. For progress-draft mode, put the same policy under `streaming.progress`:
226+
227+
```json
228+
{
229+
"channels": {
230+
"telegram": {
231+
"streaming": {
232+
"mode": "progress",
233+
"progress": {
234+
"toolProgress": true,
235+
"commandText": "status"
217236
}
218237
}
219238
}

extensions/discord/src/config-ui-hints.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ export const discordChannelConfigUiHints = {
6565
label: "Discord Draft Tool Progress",
6666
help: "Show tool/progress activity in the live draft preview message (default: true). Set false to hide interim tool updates while the draft preview stays active.",
6767
},
68+
"streaming.preview.commandText": {
69+
label: "Discord Draft Command Text",
70+
help: 'Command/exec detail in preview tool-progress lines: "raw" preserves released behavior; "status" shows only the tool label.',
71+
},
6872
"streaming.progress.label": {
6973
label: "Discord Progress Label",
7074
help: 'Initial progress draft title. Use "auto" for built-in single-word labels, a custom string, or false to hide the title.',
@@ -81,6 +85,10 @@ export const discordChannelConfigUiHints = {
8185
label: "Discord Progress Tool Lines",
8286
help: "Show compact tool/progress lines in progress draft mode (default: true). Set false to keep only the label until final delivery.",
8387
},
88+
"streaming.progress.commandText": {
89+
label: "Discord Progress Command Text",
90+
help: 'Command/exec detail in progress draft lines: "raw" preserves released behavior; "status" shows only the tool label.',
91+
},
8492
"retry.attempts": {
8593
label: "Discord Retry Attempts",
8694
help: "Max retry attempts for outbound Discord API calls (default: 3).",

extensions/discord/src/monitor/message-handler.process.test.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,37 @@ describe("processDiscordMessage draft streaming", () => {
15671567
);
15681568
});
15691569

1570+
it("can hide raw command progress text in Discord progress drafts by config", async () => {
1571+
const draftStream = createMockDraftStreamForTest();
1572+
1573+
dispatchInboundMessage.mockImplementationOnce(async (params?: DispatchInboundParams) => {
1574+
await params?.replyOptions?.onToolStart?.({
1575+
name: "exec",
1576+
phase: "start",
1577+
args: { command: "pnpm test -- --watch=false" },
1578+
detailMode: "raw",
1579+
});
1580+
await params?.replyOptions?.onItemEvent?.({ progressText: "done" });
1581+
return createNoQueuedDispatchResult();
1582+
});
1583+
1584+
const ctx = await createAutomaticSourceDeliveryContext({
1585+
discordConfig: {
1586+
streaming: {
1587+
mode: "progress",
1588+
progress: {
1589+
label: "Shelling",
1590+
commandText: "status",
1591+
},
1592+
},
1593+
},
1594+
});
1595+
1596+
await runProcessDiscordMessage(ctx);
1597+
1598+
expect(draftStream.update).toHaveBeenCalledWith("Shelling\n🛠️ Exec\n• done");
1599+
});
1600+
15701601
it("keeps Discord progress lines across assistant boundaries", async () => {
15711602
const draftStream = createMockDraftStreamForTest();
15721603

extensions/discord/src/monitor/message-handler.process.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
} from "openclaw/plugin-sdk/channel-reply-pipeline";
1414
import {
1515
formatChannelProgressDraftLine,
16+
formatChannelProgressDraftLineForEntry,
1617
resolveChannelStreamingBlockEnabled,
1718
} from "openclaw/plugin-sdk/channel-streaming";
1819
import { recordInboundSession } from "openclaw/plugin-sdk/conversation-runtime";
@@ -669,7 +670,8 @@ export async function processDiscordMessage(
669670
await maybeBindStatusReactionsToToolReaction(payload);
670671
await statusReactions.setTool(payload.name);
671672
await draftPreview.pushToolProgress(
672-
formatChannelProgressDraftLine(
673+
formatChannelProgressDraftLineForEntry(
674+
discordConfig,
673675
{
674676
event: "tool",
675677
name: payload.name,
@@ -683,7 +685,7 @@ export async function processDiscordMessage(
683685
},
684686
onItemEvent: async (payload) => {
685687
await draftPreview.pushToolProgress(
686-
formatChannelProgressDraftLine({
688+
formatChannelProgressDraftLineForEntry(discordConfig, {
687689
event: "item",
688690
itemKind: payload.kind,
689691
title: payload.title,

extensions/feishu/src/reply-dispatcher.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { logTypingFailure } from "openclaw/plugin-sdk/channel-feedback";
22
import { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline";
33
import {
4-
formatChannelProgressDraftLine,
4+
formatChannelProgressDraftLineForEntry,
55
isChannelProgressDraftWorkToolName,
66
} from "openclaw/plugin-sdk/channel-streaming";
77
import {
@@ -708,7 +708,8 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
708708
if (!isChannelProgressDraftWorkToolName(payload.name)) {
709709
return;
710710
}
711-
const statusLine = formatChannelProgressDraftLine(
711+
const statusLine = formatChannelProgressDraftLineForEntry(
712+
account.config,
712713
{
713714
event: "tool",
714715
name: payload.name,

0 commit comments

Comments
 (0)