Terminal flooded with raw mouse tracking escape sequences upon quitting wizard (Ghostty)
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- cli
调研方向
通过启动 TAILCODE,在初始引导式设置屏幕中按 q 退出,并在提示符返回后移动鼠标来重现该问题。跟踪 TypeScript wizard 的退出和终端 teardown 路径;当 shell 返回且没有打印鼠标跟踪转义序列时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Description:
When attempting to quit the TAILCODE wizard, the application exits but fails to clean up the terminal state. Specifically, it appears to leave mouse reporting enabled, resulting in the terminal being flooded with raw escape sequences as the mouse is moved.
Installation:
# Linux (x64)
curl -L -o tailcode https://github.com/kitlangton/tailcode/releases/latest/download/tailcode-linux-x64
chmod +x tailcode
./tailcode
Environment:
-
OS: Arch Linux
-
Terminal: Ghostty
Steps to Reproduce:
Launch TAILCODE.
At the initial "Guided setup for OpenCode over Tailscale" screen, press q to quit.
Move the mouse around the terminal window.
Expected Behavior:
The application should exit cleanly and restore the terminal to its normal state, which includes sending the proper ANSI escape codes to disable mouse reporting (e.g., CSI ? 1000 l or 1003 l).
Actual Behavior:
The terminal prompt returns, but moving the mouse dumps a continuous stream of raw tracking characters (e.g., 35;69M22;71M33;71M...) directly into standard output, leaving the terminal in a dirty state.
Additional Context:
I have attached a screen recording demonstrating the issue. It looks like the TUI library being used is either crashing on exit or missing the teardown hook to reset the terminal's raw mode and mouse tracking before returning control to the shell.
https://github.com/user-attachments/assets/db7311d0-0f17-40e0-b45a-7a1bdd1cb0a4
- 主要语言
- TypeScript
- 星标
- 307
- 派生
- 15
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
melgarafael/DeskcommCRM#3104 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug service: webapp
难度 2/5 1-3 小时 新手友好度 82/100
Ocelot-Social-Community/Ocelot-Social#10684 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
nicobailon/pi-subagents#2978 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
getsentry/sentry-conventions#732 · 1 条评论 ·
维护者通常 1 天内回复