CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

始终提示工作中,没有反馈,doctor检查也没问题

Open wjwwyh opened this issue 6 months ago • 8 comments

Description

一直显示工作中,没有结果

Steps to reproduce

1.终端打开 2.给出任务 3.工作中

Expected behavior

Actual behavior

Environment

  • OS:mac
  • DeepSeek CLI version: deepseek 0.8.23
  • Model: v4 pro/flash
  • Shell:

Logs or screenshots

Image

wjwwyh avatar May 09 '26 05:05 wjwwyh

是不是网络有问题,换个VPN看看呢

Oliver-ZPLiu avatar May 09 '26 06:05 Oliver-ZPLiu

不行,而且始终提示这个,怎么都处理不掉 warning: project-scope config key api_key is ignored — set it in ~/.deepseek/config.toml instead. (See #417 for the deny-list rationale.) jason@jasondeMacBook-Air ~ %

wjwwyh avatar May 09 '26 08:05 wjwwyh

不行,而且始终提示这个,怎么都处理不掉 warning: project-scope config key api_key is ignored — set it in ~/.deepseek/config.toml instead. (See #417 for the deny-list rationale.) jason@jasondeMacBook-Air ~ %

wjwwyh avatar May 09 '26 08:05 wjwwyh

你的api_key 似乎放错位置了。试一下 cp .deepseek/config.toml ~/.deepseek/config.toml, 把它移动到正确位置

Oliver-ZPLiu avatar May 09 '26 08:05 Oliver-ZPLiu

始终不行,重装搞定

wjwwyh avatar May 09 '26 11:05 wjwwyh

Code review 发现几个可能导致"一直卡在工作中"的根因:

  1. ThinkingComplete 和 MessageComplete 事件处理顺序不可控 (ui.rs) — 如果 MessageComplete 先于 ThinkingComplete 处理,reasoning_content 丢失,DeepSeek V4 返回 HTTP 400,流中断但 UI 无错误提示
  2. 流中断后 streaming_thinking_active_entry 未 finalize — thinking spinner 永久显示 "live",看起来像还在工作
  3. app-server 单 Mutex 串行化所有请求 (app-server/src/lib.rs:187) — 如果用 server 模式,一个长请求阻塞所有其他请求包括 health check
  4. MCP SSE transport 无重连 (mcp.rs:435) — 网络闪断后连接永久断开,工具调用无响应

这几个都表现为"卡住但没有错误",和描述的症状一致。也关联 #861 的 thinking collapse 四个根因。

punkcanyang avatar May 10 '26 15:05 punkcanyang

This report is from deepseek 0.8.23; the engine has been substantially reworked since, and v0.8.51 specifically hardens the "stuck on 工作中 with no feedback" failure mode.

The most common cause of a permanent "working" with doctor reporting OK was the engine task dying mid-turn (a panic in the turn loop) without ever emitting a turn-complete event. As of v0.8.51 (branch claude/busy-mayer-b66rA, commit 5249723) such a panic is caught and surfaced as a failed turn instead of silently hanging the UI, and a crash report is written to ~/.codewhale/crashes/.

Could you retry on v0.8.51 once it's released? If it still hangs:

  • check ~/.codewhale/crashes/ for an engine-event-loop dump, and
  • note whether it hangs immediately or only after long sessions (which would point at compaction/streaming rather than a panic).

Leaving open pending that confirmation; if it no longer reproduces we can close it.


Generated by Claude Code

Hmbown avatar Jun 03 '26 01:06 Hmbown

Closing during v0.8.59 milestone hygiene: this old stuck-working report was resolved locally in-thread, and the broader stuck/fanout failure class is now tracked by the active v0.8.59 release issues. Please open a fresh current-version repro if it returns.

Hmbown avatar Jun 12 '26 18:06 Hmbown