mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
61429a6c10
This is a follow-up to https://github.com/openai/codex/pull/15922. That previous PR deleted the old `tui` directory and left the new `tui_app_server` directory in place. This PR renames `tui_app_server` to `tui` and fixes up all references.
17 lines
344 B
Rust
17 lines
344 B
Rust
pub(crate) struct SessionHeader {
|
|
model: String,
|
|
}
|
|
|
|
impl SessionHeader {
|
|
pub(crate) fn new(model: String) -> Self {
|
|
Self { model }
|
|
}
|
|
|
|
/// Updates the header's model text.
|
|
pub(crate) fn set_model(&mut self, model: &str) {
|
|
if self.model != model {
|
|
self.model = model.to_string();
|
|
}
|
|
}
|
|
}
|