fix: enable block streaming for all providers (#684)

This commit is contained in:
Ruby
2026-01-10 15:25:55 -06:00
committed by GitHub
parent 6d70524aa8
commit a6a9930a34
2 changed files with 2 additions and 7 deletions

View File

@@ -12,6 +12,7 @@
- Gateway: add OpenAI-compatible `/v1/chat/completions` HTTP endpoint (auth, SSE streaming, per-agent routing). (#680) — thanks @steipete.
### Fixes
- Block Streaming: enable for all providers, not just Telegram. (#684) — thanks @rubyrunsstuff.
- Agents/System: clarify sandboxed runtime in system prompt and surface elevated availability when sandboxed.
- Agents/System: add reasoning visibility hint + /reasoning and /status guidance in system prompt.
- Auto-reply: prefer `RawBody` for command/directive parsing (WhatsApp + Discord) and prevent fallback runs from clobbering concurrent session updates. (#643) — thanks @mcinteerj.

View File

@@ -590,7 +590,6 @@ export async function getReplyFromConfig(
"on")
: "off";
const providerKey = sessionCtx.Provider?.trim().toLowerCase();
const explicitBlockStreamingEnable = opts?.disableBlockStreaming === false;
const resolvedBlockStreaming =
opts?.disableBlockStreaming === true
? "off"
@@ -603,12 +602,7 @@ export async function getReplyFromConfig(
agentCfg?.blockStreamingBreak === "message_end"
? "message_end"
: "text_end";
const allowBlockStreaming =
providerKey === "telegram" || explicitBlockStreamingEnable;
const blockStreamingEnabled =
resolvedBlockStreaming === "on" &&
opts?.disableBlockStreaming !== true &&
allowBlockStreaming;
const blockStreamingEnabled = resolvedBlockStreaming === "on";
const blockReplyChunking = blockStreamingEnabled
? resolveBlockStreamingChunking(
cfg,