pub struct WorkingSetConfig {
pub max_entries: usize,
pub max_pinned_paths: usize,
pub max_scan_chars: usize,
pub max_prompt_entries: usize,
pub cache_maximal: bool,
pub max_resident_file_bytes: usize,
pub max_total_resident_bytes: usize,
}Expand description
Configuration for working-set tracking.
Fields§
§max_entries: usizeMaximum number of entries to keep.
max_pinned_paths: usizeMaximum number of paths to pin during compaction.
max_scan_chars: usizeMaximum characters to scan per text block when pinning messages.
max_prompt_entries: usizeMaximum entries to show in the system prompt block.
cache_maximal: boolCache-maximal context mode (#528): when enabled, the working-set block materializes the full current contents of the top active files into the system prompt (deterministic order, size-bounded) instead of only a path list. The contents stay byte-stable while the files are unchanged, so DeepSeek’s KV prefix cache keeps hitting; editing a file cache-misses from that file’s block onward. Off by default — existing behavior is the path list only.
max_resident_file_bytes: usizePer-file byte cap for materialized contents in cache-maximal mode.
max_total_resident_bytes: usizeTotal byte cap across all materialized files in cache-maximal mode.
Trait Implementations§
Source§impl Clone for WorkingSetConfig
impl Clone for WorkingSetConfig
Source§impl Debug for WorkingSetConfig
impl Debug for WorkingSetConfig
Source§impl Default for WorkingSetConfig
impl Default for WorkingSetConfig
Source§impl<'de> Deserialize<'de> for WorkingSetConfig
impl<'de> Deserialize<'de> for WorkingSetConfig
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 WorkingSetConfig
impl Freeze for WorkingSetConfig
impl Move for WorkingSetConfig
impl RefUnwindSafe for WorkingSetConfig
impl Send for WorkingSetConfig
impl Sync for WorkingSetConfig
impl Unpin for WorkingSetConfig
impl UnsafeUnpin for WorkingSetConfig
impl UnwindSafe for WorkingSetConfig
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.