CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

TUI运行中enter输入补充信息 导致GUI崩溃

Open wangchneyu opened this issue 6 months ago • 4 comments

Description

TUI运行中enter输入补充信息 导致GUI崩溃

Steps to reproduce

1.项目正在运行想补充需求 2.enter需求后 页面崩溃 3.

Expected behavior

挂起稍后读取或者立即读取

Actual behavior

既不挂起也不稍后读取

Environment

  • OS:win11
  • DeepSeek CLI version:v
  • Model:deepseek-v4-pro
  • Shell:powershell

Logs or screenshots

Image

wangchneyu avatar May 10 '26 03:05 wangchneyu

你这是最新版本的deepseek-tui吗,有没有更多报错信息呢

Oliver-ZPLiu avatar May 10 '26 04:05 Oliver-ZPLiu

The TUI has had a panic-hook crash dump since earlier — when the TUI panics, a log gets written to ~/.deepseek/crashes/<timestamp>-process-panic.log with location, message, and timestamp.

Could you grab the most recent file from that directory and paste its contents here? On Win11 PowerShell:

Get-ChildItem $env:USERPROFILE\.deepseek\crashes\ | Sort LastWriteTime -Desc | Select -First 1 | Get-Content

That will give us the panic location and message, which is what we need to actually fix the underlying cause (Enter mid-stream landing in some unexpected state).

If you'd rather not paste it publicly, you can email it to [email protected] and we'll deal with it that way.

请提供 ~/.deepseek/crashes/ 目录里最新的崩溃日志(文件名格式 <timestamp>-process-panic.log),里面有 panic 的位置和原因。Win11 PowerShell:

Get-ChildItem $env:USERPROFILE\.deepseek\crashes\ | Sort LastWriteTime -Desc | Select -First 1 | Get-Content

如果不方便公开粘贴,可以通过 [email protected] 邮箱发送。

In the meantime, v0.8.27 doesn't address this specifically — without the panic location it's a needle-in-a-haystack — so likely deferred to v0.8.28 once we have the diagnostics.

Hmbown avatar May 10 '26 15:05 Hmbown

Agent handoff notes (2026-07-02)

This sounds like mid-turn input/steering should queue instead of crashing. Start with:

  • crates/tui/src/tui/ui.rs (queue_follow_up, submit_or_steer_message, pending steers)
  • crates/tui/src/tui/widgets/mod.rs composer submit handling
  • crates/tui/src/runtime_threads.rs steer/turn APIs
  • related issue #874 if still open

Acceptance: pressing Enter while a turn/tool is running either queues, steers, or shows a clear disabled state; it must not crash or leak text to the shell. Add a regression test for running-turn submit behavior.

Hmbown avatar Jul 02 '26 17:07 Hmbown

Fixed in 0.8.68. The crash came from the busy-turn Enter path: steering a running turn could fail mid-flight and leave the UI in a broken state. All busy-Enter paths now route through attempt_steer_with_queue_fallback (crates/tui/src/tui/ui.rs). If the steer fails, the paused/quarry/token state is restored from a SteerPausedSnapshot and your message is queued with a visible toast — no crash, nothing lost. Engine event drains also yield every 8–16 events / 8 ms, so input stays live during long turns.

Covered by tests: steer_failure_queues_message_and_surfaces_toast, enter_while_model_waiting_steers_instead_of_queueing, engine_drain_budget_respects_event_and_time_limits.

Lands on main shortly via the 0.8.68 train (branch work/v0.9.0-cutover).

中文摘要:任务运行中按 Enter 不再导致崩溃——消息会尝试注入当前轮次,失败时自动排队并弹出提示,界面状态完整恢复。此修复即将随 0.8.68 合入 main。

Hmbown avatar Jul 07 '26 19:07 Hmbown