fix(cli): fix enabling kitty codes on Windows Terminal (#21136)

This commit is contained in:
Tommaso Sciortino
2026-03-05 15:29:12 +00:00
committed by GitHub
parent 09259a8ec4
commit ddafd79661
3 changed files with 23 additions and 3 deletions
@@ -138,9 +138,6 @@ export class TerminalCapabilityManager {
process.stdin.setRawMode(false);
}
this.detectionComplete = true;
this.enableSupportedModes();
resolve();
};
@@ -246,9 +243,11 @@ export class TerminalCapabilityManager {
enableSupportedModes() {
try {
if (this.kittySupported) {
debugLogger.log('Enabling Kitty keyboard protocol');
enableKittyKeyboardProtocol();
this.kittyEnabled = true;
} else if (this.modifyOtherKeysSupported) {
debugLogger.log('Enabling modifyOtherKeys');
enableModifyOtherKeys();
}
// Always enable bracketed paste since it'll be ignored if unsupported.