mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 22:05:50 +00:00
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>
This commit is contained in:
@@ -168,7 +168,7 @@ export async function launchTeleportRepoMismatchDialog(
|
||||
|
||||
/**
|
||||
* Site ~4903: ResumeConversation mount (interactive session picker).
|
||||
* Uses renderAndRun, NOT showSetupDialog. Wraps in <App><KeybindingSetup>.
|
||||
* Wraps in <App><KeybindingSetup> and uses renderAndRun.
|
||||
* Preserves original Promise.all parallelism between getWorktreePaths and imports.
|
||||
*/
|
||||
export async function launchResumeChooser(
|
||||
|
||||
Reference in New Issue
Block a user