fix ctr-n hint (#4566)

don't show or enable ctr-n to choose best of n while not in the composer
This commit is contained in:
easong-openai
2025-10-01 11:42:04 -07:00
committed by GitHub
parent d94e8bad8b
commit ceaba36c7f
2 changed files with 24 additions and 13 deletions

View File

@@ -839,6 +839,9 @@ pub async fn run_main(_cli: Cli, _codex_linux_sandbox_exe: Option<PathBuf>) -> a
&& matches!(key.code, KeyCode::Char('n') | KeyCode::Char('N'))
|| matches!(key.code, KeyCode::Char('\u{000E}'));
if is_ctrl_n {
if app.new_task.is_none() {
continue;
}
if app.best_of_modal.is_some() {
app.best_of_modal = None;
needs_redraw = true;