Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Remove the unused TUI shutdown app command (#34553)

jif40a719238cbc
diff --git a/codex-rs/tui/src/app/pending_interactive_replay.rs b/codex-rs/tui/src/app/pending_interactive_replay.rs
index d204105356..cc47f51ae0 100644
--- a/codex-rs/tui/src/app/pending_interactive_replay.rs
+++ b/codex-rs/tui/src/app/pending_interactive_replay.rs
@@ -82,7 +82,6 @@ impl PendingInteractiveReplayState {
| AppCommand::ResolveElicitation { .. }
| AppCommand::RequestPermissionsResponse { .. }
| AppCommand::UserInputAnswer { .. }
- | AppCommand::Shutdown
)
}
@@ -164,7 +163,6 @@ impl PendingInteractiveReplayState {
self.request_user_input_call_ids_by_turn_id.remove(id);
}
}
- AppCommand::Shutdown => self.clear(),
_ => {}
}
}
diff --git a/codex-rs/tui/src/app_command.rs b/codex-rs/tui/src/app_command.rs
index 1c7693a051..fef3fbb5d3 100644
--- a/codex-rs/tui/src/app_command.rs
+++ b/codex-rs/tui/src/app_command.rs
@@ -90,7 +90,6 @@ pub(crate) enum AppCommand {
SetThreadName {
name: String,
},
- Shutdown,
Review {
target: ReviewTarget,
},
@@ -232,11 +231,6 @@ impl AppCommand {
Self::SetThreadName { name }
}
- #[allow(dead_code)]
- pub(crate) fn shutdown() -> Self {
- Self::Shutdown
- }
-
pub(crate) fn review(target: ReviewTarget) -> Self {
Self::Review { target }
}