[Bug] 输入框默认提示文字(placeholder)未被清除,与实际输入内容重叠显示
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
^^^^^^^^^^^^^
其中 gao 是我真实敲进去的内容,Ask Mcode 和 todo anything 是输入框的默认提示文字。三段文字被拼在同一行,彼此覆盖,无法分辨哪部分是真实输入。
复现步骤
- 启动 mmx CLI(截图环境:Windows,M3.1-Flash-Preview)
- 在底部输入框直接键入任意字符,例如
gao - 观察输入框
预期: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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MiniMax-AI/cli
-
[Bug] 未登录时 mmx help 被认证检查拦截,无法查看公开文档链接May be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MiniMax-AI/cli#259 · 1 comment ·
-
[Bug] --no-color 未去除请求状态栏的 ANSI 颜色May be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
MiniMax-AI/cli#258 ·
-
Difficulty 5/5 Over a week Newbie friendliness 34/100
MiniMax-AI/cli#312 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 47/100
MiniMax-AI/cli#310 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
MiniMax-AI/cli#287 ·
Similar issues
-
area:api bug good first issue priority:high
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Doezer/Questarr#1486 · 1 comment ·
Maintainers usually reply within 1 day
-
area:import difficulty:good-first good first issue help wanted priority:P1 roadmap size:S type:test
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Sergey-Bar/Penny#245 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mihazs/lazysh#3377 · 2 comments ·
Maintainers usually reply within 1 day
-
Approve the Cloudflare agent plugin for harness sessionsPossibly taken @joshtsch claimed this today. Openenhancement ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day