Skip to main content

TuiConfig

Struct TuiConfig 

Source
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 Unfocused and 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 Clone for TuiConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TuiConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TuiConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TuiConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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>

Convert 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)

Convert &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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more