Skip to main content

RecoverCommands

Enum RecoverCommands 

Source
pub enum RecoverCommands {
Show 14 variants Scan { provider: String, verbose: bool, include_old: bool, }, Recording { server: String, session: Option<String>, output: Option<String>, }, Database { backup: String, session: Option<String>, output: Option<String>, format: String, }, Jsonl { file: String, output: Option<String>, aggressive: bool, }, Orphans { provider: String, unindexed: bool, verify: bool, }, Repair { path: String, backup: bool, dry_run: bool, }, Status { provider: String, system: bool, }, Convert { input: String, output: Option<String>, format: Option<String>, compat: String, }, Extract { path: String, output: Option<String>, all_formats: bool, include_edits: bool, }, Detect { file: String, verbose: bool, json: bool, }, Upgrade { project_paths: Vec<String>, provider: String, target_format: String, no_backup: bool, dry_run: bool, }, CopilotInfo { session_dir: Option<String>, json: bool, }, Backups { path: Option<String>, dry_run: bool, force: bool, }, Recursive { path: Option<String>, depth: Option<usize>, force: bool, dry_run: bool, exclude: Vec<String>, register: bool, },
}

Variants§

§

Scan

Scan for recoverable sessions from various sources

Fields

§provider: String

Provider to scan: vscode, cursor, all (default: all)

§verbose: bool

Show detailed information about each session

§include_old: bool

Include sessions older than normal retention period

§

Recording

Recover sessions from the recording API server

Fields

§server: String

Server URL (default: http://localhost:8787)

§session: Option<String>

Only recover specific session ID

§output: Option<String>

Output directory for recovered sessions

§

Database

Recover sessions from SQLite database backups

Fields

§backup: String

Path to the database backup file

§session: Option<String>

Extract specific session by ID

§output: Option<String>

Output directory for recovered sessions

§format: String

Output format: json, jsonl, md (default: json)

§

Jsonl

Recover sessions from incomplete/corrupted JSONL files

Fields

§file: String

Path to the JSONL file to repair

§output: Option<String>

Output file for recovered sessions (default: same name with .recovered suffix)

§aggressive: bool

Attempt aggressive recovery (may produce incomplete sessions)

§

Orphans

List sessions from VS Code’s workspaceStorage that may be orphaned

Fields

§provider: String

Provider to check: vscode, cursor, all (default: all)

§unindexed: bool

Show sessions not in the SQLite state database

§verify: bool

Check if files actually exist on disk

§

Repair

Repair corrupted session files in place

Fields

§path: String

Path to the session directory or file

§backup: bool

Create backup before repair

§dry_run: bool

Dry run - show what would be repaired without making changes

§

Status

Show recovery status and recommendations

Fields

§provider: String

Provider to check: vscode, cursor, all (default: all)

§system: bool

Check disk space and file system health

§

Convert

Convert session files between JSON and JSONL formats

Fields

§input: String

Input file to convert (.json or .jsonl)

§output: Option<String>

Output file (auto-detects format from extension, or uses –format)

§format: Option<String>

Output format: json, jsonl (default: opposite of input)

§compat: String

VS Code version compatibility: legacy (< 1.109), modern (>= 1.109), both

§

Extract

Extract sessions from a VS Code workspace by project path

Fields

§path: String

Project directory path (will find corresponding workspace hash)

§output: Option<String>

Output directory for extracted sessions

§all_formats: bool

Include both JSON and JSONL formats if available

§include_edits: bool

Include editing session fragments (agent mode work)

§

Detect

Detect and display session format and version information

Fields

§file: String

Session file to analyze (.json or .jsonl)

§verbose: bool

Show raw format detection details

§json: bool

Output detection result as JSON

§

Upgrade

Upgrade session files to the current provider format (JSON to JSONL for VS Code 1.109+)

Fields

§project_paths: Vec<String>

Project paths to upgrade (space-separated)

§provider: String

Provider to use: vscode, cursor, auto (default: auto-detect)

§target_format: String

Target format: jsonl (VS Code 1.109+), json (legacy). Default: jsonl

§no_backup: bool

Skip creating backup of original files

§dry_run: bool

Dry run - show what would be upgraded without making changes

§

CopilotInfo

Show Copilot Chat extension version info and compatibility analysis

Fields

§session_dir: Option<String>

Path to session directory to scan for version info (default: auto-detect)

§json: bool

Output as JSON instead of human-readable table

§

Backups

Restore truncated sessions from .jsonl.bak backup files across all workspaces

Fields

§path: Option<String>

Root path to scan (default: all VS Code workspaces)

§dry_run: bool

Only show what would be restored without making changes

§force: bool

Force operation even if VS Code is running

§

Recursive

Recursively walk directories to find and recover orphaned sessions for all workspaces

Fields

§path: Option<String>

Root path to start recursive search (default: current directory)

§depth: Option<usize>

Maximum directory depth to recurse (default: unlimited)

§force: bool

Force registration even if VS Code is running

§dry_run: bool

Only show what would be recovered without making changes

§exclude: Vec<String>

Skip directories matching these patterns (can be used multiple times)

§register: bool

Also register recovered sessions in VS Code’s index

Trait Implementations§

Source§

impl FromArgMatches for RecoverCommands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for RecoverCommands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

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<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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
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: 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: 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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