pub enum InspectCommands {
Index {
path: Option<String>,
workspace_id: Option<String>,
json: bool,
},
Memento {
path: Option<String>,
workspace_id: Option<String>,
json: bool,
},
Cache {
path: Option<String>,
workspace_id: Option<String>,
json: bool,
},
Validate {
path: Option<String>,
workspace_id: Option<String>,
json: bool,
},
Keys {
path: Option<String>,
workspace_id: Option<String>,
all: bool,
json: bool,
},
Files {
path: Option<String>,
workspace_id: Option<String>,
json: bool,
},
Rebuild {
path: Option<String>,
workspace_id: Option<String>,
dry_run: bool,
json: bool,
},
}Variants§
Index
Show the ChatSessionStore index entries from state.vscdb
Fields
Memento
Show session memento (input history and active session state)
Fields
Cache
Show agentSessions model and state caches (drives sidebar visibility)
Fields
Validate
Validate session files on disk (format, size, parse, index consistency)
Fields
Keys
List keys in state.vscdb with value sizes
Fields
Files
List all files in the chatSessions directory with format and size details
Fields
Rebuild
Rebuild session index and model cache from session files on disk
Scans the chatSessions directory, parses each file to extract metadata (title, timestamps, request count), then overwrites the index and rebuilds the agentSessions.model.cache so sessions appear in the Chat sidebar. Also cleans up the state cache and fixes the active-session memento.
Trait Implementations§
Source§impl FromArgMatches for InspectCommands
impl FromArgMatches for InspectCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for InspectCommands
impl Subcommand for InspectCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for InspectCommands
impl RefUnwindSafe for InspectCommands
impl Send for InspectCommands
impl Sync for InspectCommands
impl Unpin for InspectCommands
impl UnsafeUnpin for InspectCommands
impl UnwindSafe for InspectCommands
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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