Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Terminal flooded with raw mouse tracking escape sequences upon quitting wizard (Ghostty)

未关闭
#6 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

@gardnmi 已经在做这个了。

开始于 2026年2月25日。

  • #7 来自 @gardnmi —— 未关闭

评估

难度
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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。