diff --git a/codex-rs/core/src/model_provider_info.rs b/codex-rs/core/src/model_provider_info.rs index 2850996dcf..f83bfdf26e 100644 --- a/codex-rs/core/src/model_provider_info.rs +++ b/codex-rs/core/src/model_provider_info.rs @@ -274,7 +274,7 @@ pub fn built_in_model_providers() -> HashMap { .filter(|v| !v.trim().is_empty()), env_key: None, env_key_instructions: None, - wire_api: WireApi::Responses, + wire_api: WireApi::Chat, query_params: None, http_headers: Some( [("version".to_string(), env!("CARGO_PKG_VERSION").to_string())] diff --git a/codex-rs/tui/src/bottom_pane/textarea.rs b/codex-rs/tui/src/bottom_pane/textarea.rs index 269fa345e0..ec0a2b3a01 100644 --- a/codex-rs/tui/src/bottom_pane/textarea.rs +++ b/codex-rs/tui/src/bottom_pane/textarea.rs @@ -214,6 +214,14 @@ impl TextArea { KeyEvent { code: KeyCode::Char('\u{0006}'), modifiers: KeyModifiers::NONE, .. } /* ^F */ => { self.move_cursor_right(); } + // Special handling for slash character to fix Windows input issues (#4260) + // Allow slash to be inserted with any modifier combination on Windows + KeyEvent { + code: KeyCode::Char('/'), + // Accept any modifiers for slash character to fix Windows keyboard layout issues + modifiers: _, + .. + } => self.insert_str("/"), KeyEvent { code: KeyCode::Char(c), // Insert plain characters (and Shift-modified). Do NOT insert when ALT is held,