fix(feishu): disable block streaming to prevent silent reply drops (openclaw#38422)

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: xinhuagu <562450+xinhuagu@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
Xinhua Gu
2026-03-07 05:33:30 +01:00
committed by GitHub
parent e309a15d73
commit 024af2b738
3 changed files with 13 additions and 0 deletions

View File

@@ -219,6 +219,17 @@ describe("createFeishuReplyDispatcher streaming behavior", () => {
expect(sendMediaFeishuMock).not.toHaveBeenCalled();
});
it("sets disableBlockStreaming in replyOptions to prevent silent reply drops", async () => {
const result = createFeishuReplyDispatcher({
cfg: {} as never,
agentId: "agent",
runtime: {} as never,
chatId: "oc_chat",
});
expect(result.replyOptions).toHaveProperty("disableBlockStreaming", true);
});
it("uses streaming session for auto mode markdown payloads", async () => {
createFeishuReplyDispatcher({
cfg: {} as never,

View File

@@ -382,6 +382,7 @@ export function createFeishuReplyDispatcher(params: CreateFeishuReplyDispatcherP
replyOptions: {
...replyOptions,
onModelSelected: prefixContext.onModelSelected,
disableBlockStreaming: true,
onPartialReply: streamingEnabled
? (payload: ReplyPayload) => {
if (!payload.text) {