Skip to content

bug: 在部分问题提问中出现长时间Thinking无反应的情况(deepseek) #425

Description

@Nomikfk1215

正常情况

Image

异常情况

Image

现象:

  • DeepSeek v4 pro 对较长实现类 prompt 会先输出大量 reasoning_content,几分钟内没有普通 content delta,也没有 tool_calls。
  • 当前 OpenAI-compatible provider 在 internal/provider/openai.go 中解析 reasoning_content 后只保存到 Message.Meta,不通过 onDelta 或事件通知 UI。
  • TUI 因此一直显示 Thinking,用户误以为模型卡死或没有工具调用。
  • 复现证据:session 20260510-073547-18865ac8,15:36:49 用户提交,15:40:28 才出现第一个 list_files;期间 output_tokens=2765,主要在 meta.reasoning_content。
  • 正常对比:session 20260510-074048-05c02978,15:41:20 提交,15:41:32 第一个工具调用,hidden reasoning 很短。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions