WeKnora icon indicating copy to clipboard operation
WeKnora copied to clipboard

[Bug]: Feishu/Lark full output mode provides no progress feedback

Open LeonPure opened this issue 3 months ago • 0 comments

Affected Component

Backend Service & API / IM integration (Feishu and Lark)

Bug Description

When a Feishu or Lark IM channel uses output_mode=full, users receive no visible progress feedback while the model is running. For a slow agent request, the conversation appears unresponsive until the complete answer arrives.

The Feishu/Lark adapter already provides a localized streaming-card placeholder (正在思考... / Thinking...) in StartStream, but the IM service bypasses every StreamSender whenever full output is selected.

This is still present at upstream commit af0aeb7cc284d76e2c59b4eaf686132e0d5b8caa: internal/im/service.go sets streamDisabled := req.channel.OutputMode == "full" and only calls handleMessageStream when !streamDisabled.

Steps to Reproduce

  1. Configure a Feishu or Lark IM channel.
  2. Set its output mode to full.
  3. Send a question that takes several seconds to answer, especially an Agent-mode request.
  4. Observe the conversation before the final answer is generated.

Expected Behavior

The bot should immediately show the existing localized thinking card. Full-output semantics should remain intact: no reasoning, tool calls, or partial answer should be sent, and the placeholder should be replaced once with the completed answer.

Actual Behavior

No message or progress indicator is shown until QA finishes and a plain final reply is sent.

WeKnora Version

  • v0.7.2
  • Confirmed in upstream main at af0aeb7cc284d76e2c59b4eaf686132e0d5b8caa

Deployment Method

Built from source; Feishu/Lark IM integration

Operating System

Platform-independent backend behavior

Relevant Logs

No error is required. This is caused by the full-output dispatch path skipping StartStream.

Proposed Fix

Add an opt-in capability for adapters whose StartStream creates a safe replaceable progress message. In full mode, use StartStream -> run QA -> FinalizeStream -> EndStream without calling UpdateStreamContent. Other IM adapters should keep their current behavior.

Confirmation

  • [x] I searched existing issues and did not find an exact report for this behavior.

LeonPure avatar Aug 31 '26 12:08 LeonPure