Skip to main content

Module session_archive

Module session_archive 

Source

Structs§

SearchResult
SessionArchive
SessionArchiveMetadata
SessionArchiveSummary
Small archive metadata retained by desktop session-list queries.
SessionContinuationMetadata
SessionListing
SessionMessage
SessionProgress
SessionProgressArgs
SessionSnapshot
VerifiedSessionArchiveIdentifier
An archive identifier derived from a loaded session listing.

Enums§

SessionContinuationExhaustionReason
SessionContinuationRecommendedAction
SessionForkMode
SessionProgressPersistenceStatus
Outcome of an asynchronous session-progress checkpoint.

Constants§

COLLAPSED_TOOL_OUTPUT_NOTICE
Instruction supplied to the model when tool output is collapsed in the UI.
SESSION_DIR_ENV
SESSION_MAX_AGE_DAYS_ENV
SESSION_MAX_FILES_ENV
SESSION_MAX_SIZE_MB_ENV

Functions§

apply_session_history_config_from_vtcode
delete_session_archive
Delete one session archive by identifier. Returns false when no archive file exists. Invalid identifiers are rejected before any filesystem access.
find_session_by_id_or_name
Find a saved session by ID or name for TUI /resume command.
find_session_by_identifier
Find a session archive by its identifier (file stem) without needing to list all sessions.
generate_session_archive_identifier
history_persistence_enabled
is_internal_session_context
Identify persisted model-only context that should not appear in a resumed transcript.
list_recent_session_summaries_in_workspace
List recent archives for a workspace while retaining only their navigation metadata.
list_recent_sessions
list_recent_sessions_in_workspace
List the most recent archives for a workspace, applying the limit after workspace filtering.
reserve_session_archive_identifier
Reserve a unique session archive identifier for the current process.
search_sessions
Search for a query string across recent sessions. Returns a list of SearchResult sorted by relevance (or recency).
session_listing_matches_workspace
session_workspace_path
sessions_dir
Resolve the session archive directory for storage accounting.