feat: add rich Slack progress drafts

This commit is contained in:
Peter Steinberger
2026-05-04 05:38:51 +01:00
parent 654b70dde8
commit b5d408cd69
15 changed files with 440 additions and 56 deletions

View File

@@ -1,4 +1,4 @@
ac95b4ab62408454636ce559e6d023df3c29b8b936b3aa4dde37779d29a5a099 config-baseline.json
953aece02c70b8df690b51e865a4aea838b53bbe9d43ef9495f80f719a831e38 config-baseline.json
31ec333df9f8b92c7656ac7107cecd5860dd02e08f7e18c7c674dc47a8811baa config-baseline.core.json
655d1309b70505e73198df20c5088784290b33098efd42027d3c09beeb3704a7 config-baseline.channel.json
9458dc89aa13dd07d83f69d943535099a96e8278eb7ac8ae5cf2f713631592f7 config-baseline.plugin.json
e10ba2f29f25fc665b96c714075af954eed686c56ca12783cf1f49498f86ac98 config-baseline.channel.json
606641569764473005f8343f4550500dcbe99cf54e1dc21960018cf455912196 config-baseline.plugin.json

View File

@@ -1,2 +1,2 @@
701356478634a8f3e71f941ed21a00e0456d947d287edcafb56231013b27a057 plugin-sdk-api-baseline.json
ed17426dd5e9db4b83db77162e7490eee3c0439170c1a9d1e84c01d7027d580c plugin-sdk-api-baseline.jsonl
2943ada651fd9a07c9e715a90ad4a76f725a1b60fa142dcfd504ba6d6c202ed4 plugin-sdk-api-baseline.json
ff31408a26bcad4c54dc0c897d0103ca3d7dc91b3394a3ab65e7dade0c3f6ff5 plugin-sdk-api-baseline.jsonl

View File

@@ -223,6 +223,27 @@ OpenClaw truncates long progress lines by default so repeated draft edits do not
wrap differently on every update. The prefix stays readable, and long details
such as paths or raw commands are shortened with an ellipsis.
Slack can render progress lines as structured Block Kit fields instead of a
single text body:
```json5
{
channels: {
slack: {
streaming: {
mode: "progress",
progress: {
render: "rich",
},
},
},
},
}
```
Rich rendering keeps the same plain-text fallback so channels and clients that
do not support the richer shape can still show the compact progress text.
Keep the single progress draft but hide tool and task lines:
```json5