feat: rebrand as Open Claude and harden OpenAI REPL

This commit is contained in:
Kevin Codex
2026-04-01 13:31:18 +08:00
parent 55098bf9b7
commit 2d7aa9c841
14 changed files with 109 additions and 53 deletions

View File

@@ -165,6 +165,12 @@ const EXTENDED_KEYS_TERMINALS = [
/** True if this terminal correctly handles extended key reporting
* (Kitty keyboard protocol + xterm modifyOtherKeys). */
export function supportsExtendedKeys(): boolean {
// Open Claude defaults this off because some real terminals render the UI
// but stop delivering normal typing once kitty/modifyOtherKeys negotiation
// is enabled. Power users can opt back in explicitly.
if (process.env.OPENCLAUDE_ENABLE_EXTENDED_KEYS !== '1') {
return false
}
return EXTENDED_KEYS_TERMINALS.includes(env.terminal ?? '')
}