CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

Mode switch toast messages stack and obscure the Composer input area when pressing Tab repeatedly

Open Water-Run opened this issue 6 months ago • 1 comments

Problem

In DeepSeek-TUI, pressing Tab switches between modes such as PLAN, AGENT, and YOLO.

The current issue is that when I press Tab repeatedly to switch modes quickly, multiple mode switch messages appear at the bottom, for example:

  • Switched to AGENT mode
  • Switched to YOLO mode
  • Switched to PLAN mode

These messages stack near the bottom of the UI and obscure or take over space around the Composer input area.

Before the messages disappear automatically, the current input becomes partially hidden, so I have to wait before I can clearly see or continue editing what I am typing.

This is especially noticeable on smaller screens, low-height terminal windows, split terminal layouts, or when switching modes quickly.

Proposed solution

Please consider changing how mode switch messages are displayed so they do not obscure the Composer input area.

Possible solutions:

  1. Keep only the latest Switched to ... mode message instead of stacking multiple messages.
  2. Update the mode switch message in place rather than creating a new toast every time.
  3. Show the current mode in a fixed status bar, header area, or side panel instead of near the Composer.
  4. Shorten the display duration of mode switch toast messages.
  5. Avoid showing blocking or overlapping toast messages near the Composer when the Composer already contains user input.
  6. Add a configuration option to disable or reduce mode switch toast messages, for example:
[ui.toast]
mode_switch = "replace" # replace | stack | off
mode_switch_duration_ms = 800

Expected behavior:

When Tab is pressed repeatedly, the UI should only show the final/current mode, without stacking several mode switch messages and without obscuring the current input.

Use case

During normal use, I often switch between PLAN, AGENT, and YOLO modes.

For example:

  • Use PLAN to review an execution plan.
  • Switch to AGENT for regular task execution.
  • Temporarily switch to YOLO for quick edits.
  • Switch back to PLAN or AGENT.

When switching modes quickly, multiple toast messages appear at the bottom and interfere with the Composer area. This interrupts the input flow, especially when I have already typed part of a prompt and only want to confirm or change the current mode.

Alternatives considered

Current workarounds:

  1. Wait for the toast messages to disappear automatically.
  2. Avoid pressing Tab repeatedly.
  3. Press Esc to dismiss the messages.

These workarounds are not ideal:

  • Waiting for the messages to disappear interrupts the workflow.
  • Repeated Tab presses are natural when trying to confirm the current mode.
  • Pressing Esc every time adds extra manual steps.
  • The stacked toast behavior still makes the interface feel visually unstable and cluttered.

Impact

This does not break core functionality, but it noticeably affects the TUI interaction experience.

Main impact:

  • Fast mode switching creates visual clutter.
  • The Composer input area can become obscured.
  • The user cannot immediately verify the current input.
  • The user has to wait or manually dismiss messages.
  • The issue is more visible in low-height terminals, split terminal windows, or remote terminal sessions.
  • Mode switching is a common workflow in a coding-agent TUI, so this issue can occur frequently.

Changing this behavior to “replace the previous mode switch toast” or “show the current mode in a fixed status area” would make the UI more stable and improve the typing experience.

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

The attached screenshot shows several mode switch messages displayed at the bottom at the same time:

  • Switched to AGENT mode
  • Switched to YOLO mode
  • Switched to PLAN mode
Image

These stacked messages appear close to the Composer and affect the visibility of the current input area.

Water-Run avatar May 23 '26 08:05 Water-Run

Thanks for the detailed UX report and screenshot. Confirmed fixed on main by #1957 (088364346): repeated Tab mode switching now replaces prior mode-switch toasts instead of stacking them over the composer. Regression coverage is in test_mode_switch_toasts_replace_previous_mode_switch_toast and test_mode_switch_toasts_do_not_disrupt_non_mode_toasts.

中文说明:感谢你提供清楚的复现和截图。#1957 已合并,连续按 Tab 切换模式时会更新/替换模式提示,不再堆叠遮挡输入区。关闭此问题。

Hmbown avatar May 24 '26 00:05 Hmbown