Merge remote-tracking branch 'prhead/feat/slack-text-streaming'

# Conflicts:
#	docs/channels/slack.md
#	src/config/types.slack.ts
#	src/slack/monitor/message-handler/dispatch.ts
This commit is contained in:
Peter Steinberger
2026-02-18 00:49:30 +01:00
5 changed files with 327 additions and 25 deletions

View File

@@ -125,6 +125,13 @@ export type SlackAccountConfig = {
blockStreaming?: boolean;
/** Merge streamed block replies before sending. */
blockStreamingCoalesce?: BlockStreamingCoalesceConfig;
/**
* Enable Slack native text streaming (Agents & AI Apps). Default: true.
*
* Set to `false` to disable native Slack text streaming and use normal reply
* delivery behavior only.
*/
streaming?: boolean;
/** Slack stream preview mode (replace|status_final|append). Default: replace. */
streamMode?: SlackStreamMode;
mediaMaxMb?: number;

View File

@@ -546,6 +546,7 @@ export const SlackAccountSchema = z
chunkMode: z.enum(["length", "newline"]).optional(),
blockStreaming: z.boolean().optional(),
blockStreamingCoalesce: BlockStreamingCoalesceSchema.optional(),
streaming: z.boolean().optional(),
mediaMaxMb: z.number().positive().optional(),
reactionNotifications: z.enum(["off", "own", "all", "allowlist"]).optional(),
reactionAllowlist: z.array(z.union([z.string(), z.number()])).optional(),