fix: default block streaming coalesce idle to 1s

This commit is contained in:
Peter Steinberger
2026-01-09 22:31:12 +01:00
parent 6c7a27c010
commit 53f51786f2
4 changed files with 4 additions and 3 deletions

View File

@@ -70,6 +70,7 @@
- Auto-reply: preserve spacing when stripping inline directives. (#539) — thanks @joshp123
- Auto-reply: relax reply tag parsing to allow whitespace. (#560) — thanks @mcinteerj
- Auto-reply: add per-provider block streaming toggles and coalesce streamed blocks to reduce line spam. (#536) — thanks @mcinteerj
- Auto-reply: default block streaming coalesce idle to 1s to reduce tiny chunks. — thanks @steipete
- Auto-reply: fix /status usage summary filtering for the active provider.
- Auto-reply: deduplicate followup queue entries using message id/routing to avoid duplicate replies. (#600) — thanks @samratjha96
- Status: show provider prefix in /status model display. (#506) — thanks @mcinteerj

View File

@@ -216,7 +216,7 @@ Save to `~/.clawdbot/clawdbot.json` and you can DM the bot from that number.
breakPreference: "paragraph"
},
blockStreamingCoalesce: {
idleMs: 400
idleMs: 1000
},
timeoutSeconds: 600,
mediaMaxMb: 5,

View File

@@ -1155,7 +1155,7 @@ Block streaming:
}
```
- `agents.defaults.blockStreamingCoalesce`: merge streamed blocks before sending.
Defaults to `{ idleMs: 400 }` and inherits `minChars` from `blockStreamingChunk`
Defaults to `{ idleMs: 1000 }` and inherits `minChars` from `blockStreamingChunk`
with `maxChars` capped to the provider text limit.
Provider overrides: `whatsapp.blockStreamingCoalesce`, `telegram.blockStreamingCoalesce`,
`discord.blockStreamingCoalesce`, `slack.blockStreamingCoalesce`, `signal.blockStreamingCoalesce`,

View File

@@ -4,7 +4,7 @@ import { resolveTextChunkLimit, type TextChunkProvider } from "../chunk.js";
const DEFAULT_BLOCK_STREAM_MIN = 800;
const DEFAULT_BLOCK_STREAM_MAX = 1200;
const DEFAULT_BLOCK_STREAM_COALESCE_IDLE_MS = 400;
const DEFAULT_BLOCK_STREAM_COALESCE_IDLE_MS = 1000;
const BLOCK_CHUNK_PROVIDERS = new Set<TextChunkProvider>([
"whatsapp",