[Bug] 输入框默认提示文字(placeholder)未被清除,与实际输入内容重叠显示

Open
#278 0 comments 0 reactions 0 assignees View on GitHub

@TPSJASPER is already working on this.

Since Oct 21, 2026.

  • #299 by @TPSJASPER — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
63/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Start the mmx CLI interactive interface on Windows and reproduce the issue by typing into the bottom input. Inspect how that input renders its placeholder and stores typed text, checking whether the placeholder is being mixed into the input value. Done means the placeholder disappears when the input receives focus or contains text, and only the user's text is visible and copied.

Written by the indexing model from the issue text.

Description

现象

底部输入框里的默认提示文字(placeholder)没有被清掉,和实际输入的内容重叠显示在一行上。

截图里输入框显示为:

gaoAskMcodetodo anything
^^^^^^^^^^^^^
Image

其中 gao 是我真实敲进去的内容,Ask Mcode 和 todo anything 是输入框的默认提示文字。三段文字被拼在同一行,彼此覆盖,无法分辨哪部分是真实输入。

复现步骤

  1. 启动 mmx CLI(截图环境:Windows,M3.1-Flash-Preview)
  2. 在底部输入框直接键入任意字符,例如 gao
  3. 观察输入框

预期:placeholder 应该在获得焦点 / 有实际输入时立刻消失,只显示 gao。

实际:placeholder 持续可见,和输入内容叠在同一行。

影响

  • 输入内容与提示文字混排,容易误读,截图里还能看到中文输入法候选框同时弹出,进一步挤压了输入区的可读性
  • 复制粘贴输入框内容时会把 placeholder 文本一起带出去
  • 中文 IME 场景下更明显,因为候选框正好覆盖在 placeholder 上

环境

  • 平台:Windows
  • 模型:M3.1-Flash-Preview
  • 状态栏:Full access,Effort default
  • 界面版本:截图取自当前 mmx CLI 交互式界面

可能的修复方向(供参考)

输入框在获得真实输入时应当清除 placeholder,而不是把它作为文本内容保留在缓冲区里;建议确认 placeholder 的渲染方式和实际输入缓冲区是否被混用(placeholder 被当成内容写入了 input value)。

截图见附件。

Dominant language
TypeScript
Stars
2.2k
Forks
200
Avg merge
1d 5h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MiniMax-AI/cli

All issues in MiniMax-AI/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.