pub struct TuiConfig {Show 20 fields
pub alternate_screen: Option<String>,
pub mouse_capture: Option<bool>,
pub selection_copy_markdown: Option<bool>,
pub stream_chunk_timeout_secs: Option<u64>,
pub max_model_steps: Option<u32>,
pub turn_wall_clock_secs: Option<u64>,
pub stream_max_content_mb: Option<u64>,
pub stream_max_duration_secs: Option<u64>,
pub stream_max_resumes: Option<u32>,
pub stream_max_transparent_retries: Option<u32>,
pub stream_max_errors: Option<u32>,
pub stream_open_timeout_secs: Option<u64>,
pub connect_timeout_secs: Option<u64>,
pub force_http1: Option<bool>,
pub status_items: Option<Vec<StatusItem>>,
pub posture_bar: Option<ChromeRowPreset>,
pub metrics_line: Option<ChromeRowPreset>,
pub osc8_links: Option<bool>,
pub notification_condition: Option<NotificationCondition>,
pub composer_arrows_scroll: Option<bool>,
}Fields§
§alternate_screen: Option<String>§mouse_capture: Option<bool>§selection_copy_markdown: Option<bool>Copy a transcript drag selection as Markdown source (true, the
default) instead of rendered terminal text. The payload projects every
intersected cell through the same canonical serialization Ctrl-Y and
/copy use. Set false to restore the rendered-text payload (#6156).
PRIMARY selection on Linux always keeps rendered text.
stream_chunk_timeout_secs: Option<u64>Per-SSE-chunk idle timeout in seconds. Defaults to 900 seconds when
omitted. 0 maps to the default; values clamp to 1..=3600.
max_model_steps: Option<u32>Optional ceiling on model steps in a single turn. Omitted or 0
leaves model steps uncapped. Explicit positive values are preserved;
u32::MAX also represents no limit. Stream limits remain independent.
turn_wall_clock_secs: Option<u64>Cumulative wall-clock budget for a single turn, in seconds.
Omitted or 0 means no limit; positive values are preserved. Time
blocked on a human approval decision is excluded from the measurement.
stream_max_content_mb: Option<u64>R1: per-step cap on accumulated streamed content, in megabytes.
Omitted or 0 resolve to the default (10 MB); explicit values clamp
to 64 KiB..=512 MiB.
stream_max_duration_secs: Option<u64>R1: per-step cap on a single stream’s wall-clock duration, in
seconds. Omitted or 0 resolve to the default (1800); explicit
values clamp to 10..=86_400.
stream_max_resumes: Option<u32>Proven pre-dispatch stream-open retries. Omitted defaults to3;
0 disables them and values clamp to 0..=10.
stream_max_transparent_retries: Option<u32>Inactive Core compatibility setting. Omitted defaults to2;
values remain parsed and clamped to 0..=10.
stream_max_errors: Option<u32>Inactive Core compatibility setting. Core ends on the first uncertain stream error; omitted/zero defaults to5 and other values clamp to1..=50.
stream_open_timeout_secs: Option<u64>#6700: wait for SSE response headers, in seconds. Omitted or 0
fall back to CODEWHALE_STREAM_OPEN_TIMEOUT_SECS, then 180; values
clamp to 5..=600.
connect_timeout_secs: Option<u64>#6700: TCP/TLS connect timeout for the model HTTP client, in seconds.
Omitted or 0 resolve to the default (30); values clamp to 1..=300.
force_http1: Option<bool>#6700: pin the model HTTP client to HTTP/1.1 (config form of
CODEWHALE_FORCE_HTTP1). Omitted or false leaves HTTP/2 on unless
the env var is truthy; either one pins.
status_items: Option<Vec<StatusItem>>Ordered list of footer items the user wants visible. None (the field
missing from config.toml) means “use the built-in default order”; an
empty Some(vec![]) means “show nothing in the footer”.
Edited interactively via /statusline; persisted to tui.status_items
in ~/.deepseek/config.toml.
posture_bar: Option<ChromeRowPreset>How much of the posture bar — the first row under the composer — to
paint: full (default), compact, or hidden. hidden gives the
row back to the transcript; compact keeps the row and starts its
shed ladder past the clocks, counts and hints (#5950).
status_items still composes what is in the row; this only decides
the row’s size. Absent from an older config.toml means full.
metrics_line: Option<ChromeRowPreset>The same three settings for the metrics line under the posture bar.
compact is the default: it keeps the route, the context reading, the cost and the
balance, the cache rate, and drops the other telemetry and the help hint (#5950, #6565).
osc8_links: Option<bool>Emit OSC 8 hyperlink escape sequences around URLs in the transcript so
supporting terminals (iTerm2, Terminal.app 13+, Ghostty, Kitty,
WezTerm, Alacritty, recent gnome-terminal/konsole) make them clickable
with the terminal’s link gesture (usually Cmd-click on macOS and
Ctrl-click on Linux/Windows). Terminals without OSC 8 support render the
plain label and ignore the escape. Defaults to on for macOS/Linux and
off for Windows legacy consoles; set false to suppress everywhere
(e.g. for a terminal that misrenders the sequence). OSC 8 escapes are
emitted out-of-band, so buffer-column corruption is not a concern.
notification_condition: Option<NotificationCondition>High-level notification trigger condition. When set, controls whether
operator notifications may interrupt the current terminal and, for
Always, overrides the [notifications].threshold_secs gate from the
lower-level [notifications] block:
Always— allow configured operator notifications even while the terminal is focused. Successful turn completion also ignores the duration threshold. Method, category, and quiet gates still apply.Unfocused— notify only after the terminal has remained unfocused for the built-in attention grace period. The normal duration threshold still applies.Never— suppress all operator notifications.- Unset (default) — behave like
Unfocusedand fall back to the[notifications]duration threshold.
composer_arrows_scroll: Option<bool>When true, plain Up/Down on an empty composer scroll the
transcript instead of recalling input history. Useful for
terminals that map mouse-wheel gestures to arrow keys. Default:
true only when mouse capture is off; otherwise false.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TuiConfig
impl<'de> Deserialize<'de> for TuiConfig
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>,
Auto Trait Implementations§
impl Forget for TuiConfig
impl Freeze for TuiConfig
impl Move for TuiConfig
impl RefUnwindSafe for TuiConfig
impl Send for TuiConfig
impl Sync for TuiConfig
impl Unpin for TuiConfig
impl UnsafeUnpin for TuiConfig
impl UnwindSafe for TuiConfig
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
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>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.