[Bug] 手机远程页面:语音输入(长 IME 组合文本)结束后输入框内容被截歭,仅剩中间片段
Open
Nobody has claimed this yet.
priority: P2
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
使用环境
- 桌面端:ZCode 3.8.1(macOS,Apple Silicon)
- 远程端:Android 手机浏览器(Chrome 及其他)+ 独立 WebView 封装 App,均复现
- 输入法:豆包输入法 · 语音输入(Android)
- 模型通道:Z.ai
复现步骤
- 桌面端打开「手机远程」(二维码 / 复制链接),用手机浏览器打开
zcode.z.ai/remote/v4?... - 焦点置于远程页面的对话输入框
- 用豆包语音输入连续说一段较长的话(约 100 字以上);识别期间整段文本处于 IME「组合中」状态(带下划线、被实时整体修正替换)
- 点击结束语音输入
期望表现 vs 实际表现
- 期望:输入框保留完整的识别全文
- 实际:输入框内容被掐头去尾,只残留中间约 10–30 字;语音较短(约 20 字以内)时无此问题
定位分析(供参考)
- 语音识别期间,输入法通过
setComposingText持续整体替换一段不断增长的组合文本,结束时finishComposingText提交;对应网页侧compositionstart / compositionupdate / compositionend事件序列 - 怀疑远程页面输入框的编辑层对超长 composition 序列做了截断 / 节流,或对组合区间有长度上限,导致长文本提交后只剩中间片段
- 已排除输入法因素:同一输入法在微信、备忘录等原生输入框长语音输入正常(原生 EditText 的组合文本由系统框架托管)
- 已排除浏览器因素:Chrome 与独立 WebView 封装均复现,指向远程页面前端编辑器组件
其他
- 想确认下:桌面端(Electron)输入框是否与远程页面共享同一编辑器组件?如共享,建议一并回归测试
- 如需录屏或更多环境信息可以补充
Contributor guide
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.
Research direction
Start at the remote page entry point zcode.z.ai/remote/v4?... and reproduce the long Android voice-input composition sequence with compositionstart, compositionupdate, and compositionend. Trace the input editor's handling of the composing range and verify that the complete text remains after finishComposingText; if the editor is shared, repeat the regression check in the desktop Electron input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100