pub struct UiConfig {Show 19 fields
pub tool_output_mode: ToolOutputMode,
pub tool_output_max_lines: usize,
pub tool_output_spool_bytes: usize,
pub tool_output_spool_dir: Option<String>,
pub allow_tool_ansi: bool,
pub inline_viewport_rows: u16,
pub reasoning_display_mode: ReasoningDisplayMode,
pub reasoning_visible_default: bool,
pub status_line: StatusLineConfig,
pub keyboard_protocol: KeyboardProtocolConfig,
pub layout_mode: LayoutModeOverride,
pub display_mode: UiDisplayMode,
pub show_sidebar: bool,
pub dim_completed_todos: bool,
pub message_block_spacing: bool,
pub minimum_contrast: f64,
pub bold_is_bright: bool,
pub safe_colors_only: bool,
pub color_scheme_mode: ColorSchemeMode,
}Fields§
§tool_output_mode: ToolOutputMode§tool_output_max_lines: usize§tool_output_spool_bytes: usize§tool_output_spool_dir: Option<String>§allow_tool_ansi: bool§inline_viewport_rows: u16§reasoning_display_mode: ReasoningDisplayMode§reasoning_visible_default: bool§status_line: StatusLineConfig§keyboard_protocol: KeyboardProtocolConfig§layout_mode: LayoutModeOverrideOverride the responsive layout mode
display_mode: UiDisplayModeUI display mode preset (full, minimal, focused)
Show the right sidebar (queue, context, tools)
dim_completed_todos: boolDim completed todo items (- [x]) in agent output
message_block_spacing: boolAdd spacing between message blocks
minimum_contrast: f64Minimum contrast ratio for text against background (WCAG 2.1 standard)
- 4.5: WCAG AA (default, suitable for most users)
- 7.0: WCAG AAA (enhanced, for low-vision users)
- 3.0: Large text minimum
- 1.0: Disable contrast enforcement
bold_is_bright: boolCompatibility mode for legacy terminals that map bold to bright colors. When enabled, avoids using bold styling on text that would become bright colors, preventing visibility issues in terminals with “bold is bright” behavior.
safe_colors_only: boolRestrict color palette to the 11 “safe” ANSI colors portable across common themes. Safe colors: red, green, yellow, blue, magenta, cyan + brred, brgreen, brmagenta, brcyan Problematic colors avoided: brblack (invisible in Solarized Dark), bryellow (light themes), white/brwhite (light themes), brblue (Basic Dark). See: https://blog.xoria.org/terminal-colors/
color_scheme_mode: ColorSchemeModeColor scheme mode for automatic light/dark theme switching.
- “auto”: Detect from terminal (via OSC 11 or COLORFGBG env var)
- “light”: Force light mode theme selection
- “dark”: Force dark mode theme selection
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UiConfig
impl<'de> Deserialize<'de> for UiConfig
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 UiConfig
impl JsonSchema for UiConfig
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 more