Fix keypress handling when simulateUser is enabled and add debug logging

This commit is contained in:
Your Name
2026-04-17 21:21:27 +00:00
committed by Mahima Shanware
parent 7b39a05afb
commit bea622e5e9
@@ -862,8 +862,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);