You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit faed382
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/channels/slack.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1495,7 +1495,7 @@ The default scope (`"group-mentions"`) does not fire ack reactions in direct mes
1495
1495
-`off`: disable live preview streaming.
1496
1496
-`partial`: replace preview text with the latest partial output. Set this to restore the previous default behavior.
1497
1497
-`block`: append chunked preview updates.
1498
-
-`progress` (default): maintain one live Block Kit session card in the thread while work runs, finalize that card in place, and send the assistant's final text as a separate message.
1498
+
-`progress` (default): show structured progress in one native task card when Slack supports it, with a Block Kit session-card fallback.
1499
1499
-`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.
1500
1500
-`streaming.preview.commandText` / `streaming.progress.commandText`: `status` keeps compact tool-progress lines while hiding raw command/exec text (default); set `raw` to opt into command text.
1501
1501
@@ -1523,6 +1523,28 @@ In `progress` mode, Slack's native agent card is the default: the whole turn is
1523
1523
1524
1524
Set `channels.slack.streaming.progress.nativeTaskCards` to `false` to fall back to the Block Kit session card, which posts a separate message showing title, narration, plan checklist, recent activity, tool/file totals, and elapsed time, and finalizes to success or error.
1525
1525
1526
+
Set `channels.slack.streaming.progress.style` to `"compact"` for one plain-text progress draft instead of either card surface. With the other progress controls below, commentary appears as italic text only, and an eligible final text answer replaces that same Slack message:
1527
+
1528
+
```json5
1529
+
{
1530
+
channels: {
1531
+
slack: {
1532
+
streaming: {
1533
+
mode:"progress",
1534
+
progress: {
1535
+
style:"compact",
1536
+
label:false,
1537
+
commentary:true,
1538
+
toolProgress:false,
1539
+
},
1540
+
},
1541
+
},
1542
+
},
1543
+
}
1544
+
```
1545
+
1546
+
Slack still uses normal final delivery when the reply cannot safely replace the draft, including media, errors, oversized text, split block payloads, custom outbound identity, or an edit failure.
1547
+
1526
1548
Both surfaces link the session with **Open in OpenClaw**, but only when that link can work: `gateway.publicOrigin` must be set (the externally reachable Gateway origin) and the Control UI must not be disabled via `gateway.controlUi.enabled: false`. Installations that leave `publicOrigin` unset — where there is no way to reach OpenClaw from Slack — get no link rather than a dead one. If the Control UI is served below a path prefix, also set `gateway.controlUi.basePath`.
1527
1549
1528
1550
- A reply thread must be available for native text streaming and Slack assistant thread status to appear. Thread selection still follows `replyToMode`.
@@ -1548,7 +1570,7 @@ Use draft preview instead of Slack native text streaming:
Copy file name to clipboardExpand all lines: docs/concepts/progress-drafts.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -392,7 +392,7 @@ the final answer, except for the label if one is configured.
392
392
| Discord | Send one message, then edit it. |`progress` is explicit opt-in; the status draft is deleted after the final answer lands. |
393
393
| Matrix | Send one event, then edit it. | Account-level streaming config controls account-level drafts. |
394
394
| Microsoft Teams | Native Teams stream in personal chats. |`streaming.mode: "block"` maps to Teams block delivery instead. |
395
-
| Slack | Native stream or editable draft post. |Needs a reply thread target; top-level DMs without one still get draft preview posts and edits. |
395
+
| Slack | Native stream or editable draft post. |Card style is the default; `progress.style: "compact"` uses one text draft that an eligible final answer replaces.|
396
396
| Telegram | Send one message, then edit it. | If a message lands between the progress draft and the answer, the draft reposts below it (post-new-then-delete-old) instead of scroll-jumping the client. |
397
397
| Mattermost | Editable draft post. |`block` mode rotates between completed text and tool-activity posts; other modes fold tool activity into the same draft-style post. |
398
398
@@ -410,6 +410,8 @@ When the final answer is ready, OpenClaw tries to keep the chat clean:
410
410
visible record of the failed turn.
411
411
- If the draft can safely become the final answer (`partial`/`block` modes),
412
412
OpenClaw edits it in place.
413
+
- Slack's compact progress style also promotes the progress draft into an
414
+
eligible final text answer by editing that message in place.
413
415
- If the channel uses native progress streaming, OpenClaw finalizes that
414
416
stream when the native transport accepts the final text.
415
417
- Otherwise (media, an approval prompt, an explicit reply target, too many
{"seq":3,"at":0,"dir":"in","kind":"partial","data":{"text":"Checking the current Slack behavior."}}
4
+
{"seq":4,"at":0,"dir":"out","kind":"chat.postMessage","data":{"payload":{"channel":"C0TRACE","text":"_Checking the current Slack behavior._","thread_ts":"ts#1","unfurl_links":false},"result":{"ts":"ts#2"},"target":"C0TRACE"}}
5
+
{"seq":5,"at":2000,"dir":"in","kind":"final","data":{"text":"Compact Slack progress is ready."}}
6
+
{"seq":6,"at":2000,"dir":"out","kind":"chat.update","data":{"payload":{"channel":"C0TRACE","text":"Compact Slack progress is ready.","ts":"ts#2"},"result":{"ok":true},"target":"ts#2"}}
"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.",
35
35
"preview.commandText":
36
36
'Command/exec detail in preview tool-progress lines: "status" is the safe default; "raw" opts into command text.',
37
+
"progress.style":
38
+
'Slack progress presentation: "card" (default) uses structured task/session cards; "compact" keeps one editable text draft that the final answer replaces in place when Slack can safely edit it.',
37
39
"progress.nativeTaskCards":
38
-
'Slack native task-card progress updates when channels.slack.streaming.mode="progress" and streaming.nativeTransport is enabled. Set false to fall back to the Block Kit progress card. Default: true.',
40
+
'Slack native task-card progress updates when channels.slack.streaming.mode="progress", progress.style="card", and streaming.nativeTransport is enabled. Set false to fall back to the Block Kit progress card. Default: true.',
0 commit comments