mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:30:44 +00:00
fix: centralize draft preview finalization
This commit is contained in:
@@ -149,17 +149,25 @@ Discord:
|
||||
- Uses send + edit preview messages.
|
||||
- `block` mode uses draft chunking (`draftChunk`).
|
||||
- Preview streaming is skipped when Discord block streaming is explicitly enabled.
|
||||
- Final media, error, and explicit-reply payloads cancel pending previews without flushing a new draft, then use normal delivery.
|
||||
|
||||
Slack:
|
||||
|
||||
- `partial` can use Slack native streaming (`chat.startStream`/`append`/`stop`) when available.
|
||||
- `block` uses append-style draft previews.
|
||||
- `progress` uses status preview text, then final answer.
|
||||
- Final media/error payloads and progress finals do not create throwaway draft messages; only text/block finals that can edit the preview flush pending draft text.
|
||||
|
||||
Mattermost:
|
||||
|
||||
- Streams thinking, tool activity, and partial reply text into a single draft preview post that finalizes in place when the final answer is safe to send.
|
||||
- Falls back to sending a fresh final post if the preview post was deleted or is otherwise unavailable at finalize time.
|
||||
- Final media/error payloads cancel pending preview updates before normal delivery instead of flushing a temporary preview post.
|
||||
|
||||
Matrix:
|
||||
|
||||
- Draft previews finalize in place when the final text can reuse the preview event.
|
||||
- Media-only, error, and reply-target-mismatch finals cancel pending preview updates before normal delivery; an already-visible stale preview is redacted.
|
||||
|
||||
### Tool-progress preview updates
|
||||
|
||||
|
||||
Reference in New Issue
Block a user