feat: ctrl-d only exits when there is no user input (#1589)

While this does make it so that `ctrl-d` will not exit Codex when the
composer is not empty, `ctrl-d` will still exit Codex if it is in the
"working" state.

Fixes https://github.com/openai/codex/issues/1443.
This commit is contained in:
Michael Bolin
2025-07-16 08:59:26 -07:00
committed by GitHub
parent f14b5adabf
commit 5b820c5ce7
5 changed files with 30 additions and 3 deletions

View File

@@ -162,6 +162,10 @@ impl BottomPane<'_> {
}
}
pub(crate) fn composer_is_empty(&self) -> bool {
self.composer.is_empty()
}
pub(crate) fn is_task_running(&self) -> bool {
self.is_task_running
}