claude-code-best/packages/@ant/ink/src
claude-code-best e38d45460e
fix: 修复 Windows Node.js 构建产物因 stdin.ref() 泄漏导致进程挂起 (#353)
startCapturingEarlyInput() 调用 stdin.ref() 后,如果 Ink 未能接管
(如 raw mode 不支持或 setup 阶段异常),unref() 永远不会被调用,
导致 Node.js 事件循环无法退出。修复包括:
- stopCapturingEarlyInput() 中补充 stdin.unref() 调用
- 新增 10s 安全阀定时器自动清理 leaked ref()
- Ink App.componentWillUnmount 兜底 unref() 非 TTY stdin

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-24 21:16:15 +08:00
..
components fix: 修复 Windows Node.js 构建产物因 stdin.ref() 泄漏导致进程挂起 (#353) 2026-04-24 21:16:15 +08:00
core feat: 远程群控 (#243) 2026-04-11 23:22:55 +08:00
hooks fix(types): clean type fixes across 92 files 2026-04-09 23:45:56 +08:00
keybindings fix(types): clean type fixes across 92 files 2026-04-09 23:45:56 +08:00
theme feat: 将 keybinding 纳入 ink 管辖 2026-04-07 17:51:01 +08:00
types Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
utils Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
index.ts fix: 修复类型问题 2026-04-10 17:34:01 +08:00