better composer

This commit is contained in:
easong-openai
2025-09-04 19:15:36 -07:00
parent 9be247e41e
commit e5d31d5ccc
2 changed files with 8 additions and 3 deletions

View File

@@ -649,7 +649,11 @@ pub async fn run_main(_cli: Cli, _codex_linux_sandbox_exe: Option<PathBuf>) -> a
if key.modifiers.contains(KeyModifiers::CONTROL)
&& matches!(key.code, KeyCode::Char('c') | KeyCode::Char('C'))
{
if app.apply_modal.is_some() {
if app.env_modal.is_some() {
// Close environment selector if open (dont quit composer).
app.env_modal = None;
needs_redraw = true;
} else if app.apply_modal.is_some() {
app.apply_modal = None;
app.status = "Apply canceled".to_string();
needs_redraw = true;