Noticeable UI/input stall after pressing Enter to submit or confirm actions
Problem
In DeepSeek-TUI, pressing Enter can cause a noticeable short UI/input stall.
This is not limited to submitting a message in the Composer. I can also feel the same kind of delay when pressing Enter to confirm other UI actions, such as selecting an item from a selection box or confirming an option in an interactive prompt.
Examples of affected actions:
- Pressing
Enterto submit a message in the Composer. - Pressing
Enterto confirm an item in a selection box. - Pressing
Enterto choose an option in an interactive UI flow.
The action itself usually succeeds, but immediately after pressing Enter, the TUI feels briefly blocked or less responsive. The delay is perceptible during normal keyboard-driven use.
This may be related to #310, which mentioned UI-thread blocking after pressing Enter to submit a message. However, the current issue appears broader because I can also observe it in non-message-submit interactions such as selection boxes.
Proposed solution
The expected behavior is that pressing Enter should confirm the current action without causing a visible UI/input stall.
For example:
- Submitting a Composer message should not make the UI feel briefly blocked.
- Confirming a selection box item should not cause a noticeable pause.
- Choosing an option in an interactive prompt should return control immediately enough that the UI still feels responsive.
Use case
This happens during normal TUI usage, especially in workflows that involve frequent keyboard interaction.
Typical cases:
- Type a prompt in the Composer and press
Enter. - Use a selection box and press
Enterto confirm an item. - Navigate an interactive prompt and press
Enterto choose an option. - Continue typing or interacting with the TUI.
The short pause after Enter interrupts the keyboard-driven workflow. This is especially noticeable in a coding-agent TUI, where users often submit prompts, confirm actions, switch modes, select options, and continue typing in quick succession.
Alternatives considered
Current workarounds are limited:
- Wait briefly after pressing
Enter. - Avoid interacting immediately after confirming an action.
- Reduce the frequency of interactive confirmations where possible.
These workarounds are not ideal because pressing Enter to submit or confirm actions is one of the most common interactions in a terminal UI.
Impact
This does not usually prevent the action from completing, but it affects the perceived responsiveness of the TUI.
Impact:
- The UI feels briefly blocked after pressing
Enter. - The issue occurs in common interactions, not only message submission.
- Selection boxes and other confirmation flows also feel less responsive.
- Fast keyboard-driven workflows are interrupted.
- The TUI feels less smooth than expected for repeated keyboard interactions.
Additional context
Environment:
- DeepSeek-TUI version:
deepseek 0.8.40 - OS: Fedora Linux 44 Workstation x86_64
- Kernel: Linux 7.0.9-205.fc44.x86_64
- Shell: fish 4.6.0
- Desktop environment: GNOME 50.1
- Display server: Wayland / Mutter
- Terminal: Ptyxis 50.1
- Terminal font: Monospace 10pt
- Locale: zh_CN.UTF-8
Hardware:
- Host: ZhaoYang X3-14 IRL
- CPU: Intel Core i7-13620H
- Memory: 32 GB
Related issue:
- #310:
perf: extract persistence actor — kill UI-thread sync I/O blocking keystrokes after Enter
This issue may be related to #310, but it seems broader. The visible stall is not limited to pressing Enter to submit a Composer message. It also happens when pressing Enter to confirm selection boxes or other interactive UI actions.
Stewardship update: several fixes have landed for the Enter/input-stall family, but I am leaving this open because the original report covers more than composer submit.
Landed so far:
- #1931 moved composer-history persistence off the UI thread.
- #1940 routed offline queue save/clear through the persistence actor.
- #1941 stopped feedback URL launches from blocking the picker Enter path.
- #1944 detached clipboard fallback waits for context-menu/copy paths.
Thanks @Water-Run for the broad Fedora/Ptyxis repro. Please retest on a current build when practical; if composer submit is fixed but selection boxes or other interactive prompts still stall, this issue should stay open for the remaining paths.