pub struct ContextConfig {
pub enabled: bool,
pub projects_path: Option<PathBuf>,
pub context_window_tokens: Option<u64>,
pub model_context_window_tokens: BTreeMap<String, u64>,
pub layout: ContextLayout,
}Expand description
Optional local Claude Code context-window monitor. This is deliberately separate from vendors: sessions are discovered from local transcripts and change while the TUI is running, whereas vendor tabs are config-declared account identities.
Fields§
§enabled: boolKeep the filesystem scanner completely dormant unless explicitly
enabled. The c key and its footer hint are hidden while disabled.
projects_path: Option<PathBuf>Override Claude Code’s normal ~/.claude/projects transcript root.
context_window_tokens: Option<u64>Optional fallback denominator. When absent, sessions without an exact model override show their input-token count without inventing a %.
model_context_window_tokens: BTreeMap<String, u64>Exact Claude model id -> context-window size. This takes precedence
over context_window_tokens, which keeps mixed 200K/1M histories safe.
layout: ContextLayoutWhere the view opens: full | split | bottom.
Implementations§
Source§impl ContextConfig
impl ContextConfig
Trait Implementations§
Source§impl Clone for ContextConfig
impl Clone for ContextConfig
Source§fn clone(&self) -> ContextConfig
fn clone(&self) -> ContextConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContextConfig
impl Debug for ContextConfig
Source§impl Default for ContextConfig
impl Default for ContextConfig
Source§fn default() -> ContextConfig
fn default() -> ContextConfig
Source§impl<'de> Deserialize<'de> for ContextConfigwhere
ContextConfig: Default,
impl<'de> Deserialize<'de> for ContextConfigwhere
ContextConfig: Default,
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 Freeze for ContextConfig
impl RefUnwindSafe for ContextConfig
impl Send for ContextConfig
impl Sync for ContextConfig
impl Unpin for ContextConfig
impl UnsafeUnpin for ContextConfig
impl UnwindSafe for ContextConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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