pub struct UiConfig {Show 23 fields
pub sidebar_style: SidebarStyle,
pub tool_output: ToolOutputDisplay,
pub tool_output_lines: usize,
pub read_max_lines: usize,
pub sidebar_width: u16,
pub word_wrap: bool,
pub animations: AnimationLevel,
pub hide_tools_in_chat: bool,
pub chat_tool_display: ChatToolDisplay,
pub auto_open_sidebar: bool,
pub sidebar_auto_open_width: u16,
pub thinking_lines: usize,
pub streaming_lines: usize,
pub mouse_scroll_lines: usize,
pub keyboard_scroll_lines: usize,
pub show_timestamps: bool,
pub show_cost: bool,
pub show_context_usage: bool,
pub notify_on_agent_complete: bool,
pub continue_policy: ContinuePolicy,
pub build_auto_turn_budget: u32,
pub improve_auto_turn_budget: u32,
pub loop_turn_budget: u32,
/* private fields */
}Expand description
UI display configuration.
Fields§
Sidebar layout style.
tool_output: ToolOutputDisplayHow much tool output to show.
tool_output_lines: usizeMax lines per tool in compact mode. Default: 10.
read_max_lines: usizeMax lines the read tool returns before truncating. 0 disables line truncation for file reads. Default: 500.
Sidebar width as percentage of screen (20-80). Default: 40.
word_wrap: boolWord-wrap long lines in tool output. Default: true.
animations: AnimationLevelAnimation intensity for the TUI. Default: minimal.
hide_tools_in_chat: boolLegacy compatibility flag for older configs. Prefer chat_tool_display.
chat_tool_display: ChatToolDisplayHow tool calls should appear in the chat transcript.
Auto-open the sidebar on the first tool call. Default: true.
Minimum terminal width to auto-open sidebar. Default: 120.
thinking_lines: usizeNumber of thinking lines to show in the rolling tail. Default: 5.
streaming_lines: usizeNumber of streaming tool output lines to retain. Default: 5.
mouse_scroll_lines: usizeMouse wheel scroll speed in lines. Default: 3.
keyboard_scroll_lines: usizeKeyboard/page scroll speed in lines. Default: 20.
show_timestamps: boolShow timestamps in chat. Default: false.
show_cost: boolShow cost in the top bar. Default: true.
show_context_usage: boolShow context usage in the top bar. Default: true.
notify_on_agent_complete: boolEmit a terminal bell when an agent run fully completes in the TUI. Default: true.
continue_policy: ContinuePolicyPolicy for imp-local automatic continuation after a visible, high-confidence turn. Default: disabled.
build_auto_turn_budget: u32Maximum number of automatic Build-mode task turns before pausing. Default: 20.
improve_auto_turn_budget: u32Maximum number of automatic Improve-mode research turns before pausing. Default: 5.
loop_turn_budget: u32Maximum number of /loop automatic turns before pausing.
0 disables the imp-level loop cap. Default: 0.
Implementations§
Source§impl UiConfig
impl UiConfig
pub fn effective_chat_tool_display(&self) -> ChatToolDisplay
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>,
impl StructuralPartialEq for UiConfig
Auto Trait Implementations§
impl Freeze for UiConfig
impl RefUnwindSafe for UiConfig
impl Send for UiConfig
impl Sync for UiConfig
impl Unpin for UiConfig
impl UnsafeUnpin for UiConfig
impl UnwindSafe for UiConfig
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more