Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fixes no git repo warning (#1863)

easong-openai966d957faf36
diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs
index 1142bd87fc..da5410d392 100644
--- a/codex-rs/tui/src/app.rs
+++ b/codex-rs/tui/src/app.rs
@@ -233,7 +233,8 @@ impl App<'_> {
widget.on_ctrl_c();
}
AppState::GitWarning { .. } => {
- // No-op.
+ // Allow exiting the app with Ctrl+C from the warning screen.
+ self.app_event_tx.send(AppEvent::ExitRequest);
}
}
}
@@ -415,7 +416,7 @@ impl App<'_> {
let size = terminal.size()?;
let desired_height = match &self.app_state {
AppState::Chat { widget } => widget.desired_height(size.width),
- AppState::GitWarning { .. } => 10,
+ AppState::GitWarning { .. } => size.height,
};
let mut area = terminal.viewport_area;