mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-01 19:03:42 +00:00
Fix keypress handling when simulateUser is enabled and add debug logging
This commit is contained in:
@@ -873,8 +873,15 @@ export function KeypressProvider({
|
||||
|
||||
process.stdin.setEncoding('utf8'); // Make data events emit strings
|
||||
|
||||
debugLogger.log(
|
||||
`[DEBUG] KeypressProvider simulateUser: ${config?.getSimulateUser()}`,
|
||||
);
|
||||
|
||||
let processor = nonKeyboardEventFilter(broadcast);
|
||||
if (!terminalCapabilityManager.isKittyProtocolEnabled()) {
|
||||
if (
|
||||
!terminalCapabilityManager.isKittyProtocolEnabled() &&
|
||||
!config?.getSimulateUser()
|
||||
) {
|
||||
processor = bufferFastReturn(processor);
|
||||
}
|
||||
processor = bufferBackslashEnter(processor);
|
||||
|
||||
Reference in New Issue
Block a user