claude-code-best/packages
claude-code-best e86573ac2f fix: 修复 -r 模式下键盘输入无响应
两个根因:

1. earlyInput 的 readableHandler 残留在 stdin 上
   setAppCallbacks() 在反编译项目中从未被调用,导致
   stopCapturingEarlyInput() 是 no-op,readableHandler
   在 Ink 的 handleReadable 之前消费所有 stdin 数据。
   修复:在 handleSetRawMode(true) 时移除非自身的 readable listeners。

2. React 19 layout effect cleanup 顺序问题
   React 19 先运行新树的 layout effects,再清理旧树。
   当旧树(showSetupDialog)比新树(launchResumeChooser)
   有更多 useInput hooks 时,旧树 cleanup 把
   rawModeEnabledCount 降到 0,错误关闭 raw mode。
   修复:当 count=0 但仍有活跃 EventEmitter listeners 时恢复 count。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 23:54:09 +08:00
..
@ant fix: 修复 -r 模式下键盘输入无响应 2026-04-07 23:54:09 +08:00
audio-capture-napi feat: enable /voice mode with native audio binaries 2026-04-03 21:14:44 +08:00
color-diff-napi chore: update 2026-04-05 09:12:48 +08:00
image-processor-napi feat: 实现 4 个 NAPI 包 — modifiers/image-processor/audio-capture/url-handler 2026-04-01 01:07:42 +08:00
modifiers-napi feat: 完成最新的可构建版本 2026-04-01 10:42:53 +08:00
url-handler-napi feat: 实现 4 个 NAPI 包 — modifiers/image-processor/audio-capture/url-handler 2026-04-01 01:07:42 +08:00