pub struct Tui {Show 17 fields
pub notification_settings: TuiNotificationSettings,
pub animations: bool,
pub show_tooltips: bool,
pub vim_mode_default: bool,
pub raw_output_mode: bool,
pub alternate_screen: AltScreenMode,
pub status_line: Option<Vec<String>>,
pub status_line_use_colors: bool,
pub terminal_title: Option<Vec<String>>,
pub theme: Option<String>,
pub pet: Option<String>,
pub pet_anchor: TuiPetAnchor,
pub session_picker_view: Option<SessionPickerViewMode>,
pub resume_cwd: Option<ResumeCwdMode>,
pub keymap: TuiKeymap,
pub model_availability_nux: ModelAvailabilityNuxConfig,
pub terminal_resize_reflow_max_rows: Option<usize>,
}Expand description
Collection of settings that are specific to the TUI.
Fields§
§notification_settings: TuiNotificationSettings§animations: boolEnable animations (welcome screen, shimmer effects, spinners).
Defaults to true.
show_tooltips: boolShow startup tooltips in the TUI welcome screen.
Defaults to true.
vim_mode_default: boolStart the composer in Vim mode (Normal) by default.
Defaults to false.
raw_output_mode: boolStart the TUI in raw scrollback mode for copy-friendly transcript output.
Defaults to false.
alternate_screen: AltScreenModeControls whether the TUI uses the terminal’s alternate screen buffer.
auto(default): Use alternate screen.always: Always use alternate screen.never: Never use alternate screen (inline mode only, preserves scrollback).
status_line: Option<Vec<String>>Ordered list of status line item identifiers.
When set, the TUI renders the selected items as the status line.
When unset, the TUI defaults to: model-with-reasoning and current-dir.
status_line_use_colors: boolColor status line items with colors derived from the active syntax theme.
Defaults to true.
terminal_title: Option<Vec<String>>Ordered list of terminal title item identifiers.
When set, the TUI renders the selected items into the terminal window/tab title.
When unset, the TUI defaults to: activity and project.
The activity item spins while working and shows an action-required
message when blocked on the user.
theme: Option<String>Syntax highlighting theme name (kebab-case).
When set, overrides automatic light/dark theme detection.
Use /theme in the TUI or see $CODEX_HOME/themes for custom themes.
pet: Option<String>Pet id to preselect in the terminal pet picker.
Custom pet ids resolve against CODEX_HOME/pets/
pet_anchor: TuiPetAnchorWhere the terminal pet should anchor vertically.
Defaults to composer, which follows the current TUI composer viewport.
session_picker_view: Option<SessionPickerViewMode>Preferred layout for resume/fork session picker results.
resume_cwd: Option<ResumeCwdMode>Working directory to use when resuming or forking a session. When unset, prompt if the current and session directories differ.
keymap: TuiKeymapKeybinding overrides for the TUI.
This supports rebinding selected actions globally and by context.
Context bindings take precedence over global bindings.
model_availability_nux: ModelAvailabilityNuxConfigStartup tooltip availability NUX state persisted by the TUI.
terminal_resize_reflow_max_rows: Option<usize>Trim terminal resize-reflow replay to the most recent rendered terminal rows when the
transcript exceeds this cap. Omit to use Codex’s terminal-specific default. Set to 0 to
keep all rendered rows.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tui
impl<'de> Deserialize<'de> for Tui
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Tui
impl JsonSchema for Tui
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Tui
Auto Trait Implementations§
impl Freeze for Tui
impl RefUnwindSafe for Tui
impl Send for Tui
impl Sync for Tui
impl Unpin for Tui
impl UnsafeUnpin for Tui
impl UnwindSafe for Tui
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<T> AsTypeStaticRegistered for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
impl<T> HasTyVTable for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request