fix: resolve small triage issues · openclaw/openclaw@fa68929
steipete
·
2026-05-04
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -92,6 +92,9 @@ Docs: https://docs.openclaw.ai
|
92 | 92 | - 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. |
93 | 93 | - 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. |
94 | 94 | - 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. |
95 | 98 | - 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. |
96 | 99 | - 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. |
97 | 100 | - 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. |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -953aece02c70b8df690b51e865a4aea838b53bbe9d43ef9495f80f719a831e38 config-baseline.json |
| 1 | +2c78fb7af01e2ee9e919be5ab7b675347b36cae1e347f97fd2640a6f7c72f3ac config-baseline.json |
2 | 2 | 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 |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -685,6 +685,25 @@ Default slash command settings:
|
685 | 685 | - `block` emits draft-sized chunks (use `draftChunk` to tune size and breakpoints, clamped to `textChunkLimit`). |
686 | 686 | - Media, error, and explicit-reply finals cancel pending preview edits. |
687 | 687 | - `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 | +``` |
688 | 707 | |
689 | 708 | 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. |
690 | 709 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -666,6 +666,25 @@ Notes:
|
666 | 666 | - `block`: append chunked preview updates. |
667 | 667 | - `progress`: show progress status text while generating, then send final text. |
668 | 668 | - `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 | +``` |
669 | 688 | |
670 | 689 | `channels.slack.streaming.nativeTransport` controls Slack native text streaming when `channels.slack.streaming.mode` is `partial` (default: `true`). |
671 | 690 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -280,6 +280,7 @@ curl "https://api.telegram.org/bot<bot_token>/getUpdates"
|
280 | 280 | - `channels.telegram.streaming` is `off | partial | block | progress` (default: `partial`) |
281 | 281 | - `progress` keeps one editable status draft and updates it with tool progress until final delivery |
282 | 282 | - `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) |
283 | 284 | - legacy `channels.telegram.streamMode` and boolean `streaming` values are detected; run `openclaw doctor --fix` to migrate them to `channels.telegram.streaming.mode` |
284 | 285 | |
285 | 286 | 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"
|
299 | 300 | } |
300 | 301 | ``` |
301 | 302 | |
| 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 | + |
302 | 338 | 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. |
303 | 339 | |
304 | 340 | <Note> |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -201,10 +201,10 @@ Supported surfaces:
|
201 | 201 | - Telegram has shipped with tool-progress preview updates enabled since `v2026.4.22`; keeping them enabled preserves that released behavior. |
202 | 202 | - **Mattermost** already folds tool activity into its single draft preview post (see above). |
203 | 203 | - 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`. |
205 | 205 | - 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. |
206 | 206 | |
207 | | -Example: |
| 207 | +Keep progress lines visible but hide raw command/exec text: |
208 | 208 | |
209 | 209 | ```json |
210 | 210 | { |
@@ -213,7 +213,26 @@ Example:
|
213 | 213 | "streaming": { |
214 | 214 | "mode": "partial", |
215 | 215 | "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" |
217 | 236 | } |
218 | 237 | } |
219 | 238 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -65,6 +65,10 @@ export const discordChannelConfigUiHints = {
|
65 | 65 | label: "Discord Draft Tool Progress", |
66 | 66 | 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.", |
67 | 67 | }, |
| 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 | +}, |
68 | 72 | "streaming.progress.label": { |
69 | 73 | label: "Discord Progress Label", |
70 | 74 | 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 = {
|
81 | 85 | label: "Discord Progress Tool Lines", |
82 | 86 | help: "Show compact tool/progress lines in progress draft mode (default: true). Set false to keep only the label until final delivery.", |
83 | 87 | }, |
| 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 | +}, |
84 | 92 | "retry.attempts": { |
85 | 93 | label: "Discord Retry Attempts", |
86 | 94 | help: "Max retry attempts for outbound Discord API calls (default: 3).", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1567,6 +1567,37 @@ describe("processDiscordMessage draft streaming", () => {
|
1567 | 1567 | ); |
1568 | 1568 | }); |
1569 | 1569 | |
| 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 | + |
1570 | 1601 | it("keeps Discord progress lines across assistant boundaries", async () => { |
1571 | 1602 | const draftStream = createMockDraftStreamForTest(); |
1572 | 1603 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,6 +13,7 @@ import {
|
13 | 13 | } from "openclaw/plugin-sdk/channel-reply-pipeline"; |
14 | 14 | import { |
15 | 15 | formatChannelProgressDraftLine, |
| 16 | +formatChannelProgressDraftLineForEntry, |
16 | 17 | resolveChannelStreamingBlockEnabled, |
17 | 18 | } from "openclaw/plugin-sdk/channel-streaming"; |
18 | 19 | import { recordInboundSession } from "openclaw/plugin-sdk/conversation-runtime"; |
@@ -669,7 +670,8 @@ export async function processDiscordMessage(
|
669 | 670 | await maybeBindStatusReactionsToToolReaction(payload); |
670 | 671 | await statusReactions.setTool(payload.name); |
671 | 672 | await draftPreview.pushToolProgress( |
672 | | -formatChannelProgressDraftLine( |
| 673 | +formatChannelProgressDraftLineForEntry( |
| 674 | +discordConfig, |
673 | 675 | { |
674 | 676 | event: "tool", |
675 | 677 | name: payload.name, |
@@ -683,7 +685,7 @@ export async function processDiscordMessage(
|
683 | 685 | }, |
684 | 686 | onItemEvent: async (payload) => { |
685 | 687 | await draftPreview.pushToolProgress( |
686 | | -formatChannelProgressDraftLine({ |
| 688 | +formatChannelProgressDraftLineForEntry(discordConfig, { |
687 | 689 | event: "item", |
688 | 690 | itemKind: payload.kind, |
689 | 691 | title: payload.title, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { logTypingFailure } from "openclaw/plugin-sdk/channel-feedback"; |
2 | 2 | import { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline"; |
3 | 3 | import { |
4 | | -formatChannelProgressDraftLine, |
| 4 | +formatChannelProgressDraftLineForEntry, |
5 | 5 | isChannelProgressDraftWorkToolName, |
6 | 6 | } from "openclaw/plugin-sdk/channel-streaming"; |
7 | 7 | import { |
@@ -708,7 +708,8 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
|
708 | 708 | if (!isChannelProgressDraftWorkToolName(payload.name)) { |
709 | 709 | return; |
710 | 710 | } |
711 | | -const statusLine = formatChannelProgressDraftLine( |
| 711 | +const statusLine = formatChannelProgressDraftLineForEntry( |
| 712 | +account.config, |
712 | 713 | { |
713 | 714 | event: "tool", |
714 | 715 | name: payload.name, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。