Skip to main content

Crate opensession_local_db

Crate opensession_local_db 

Source

Modules§

git

Structs§

CommitLink
A link between a git commit and an AI session.
LocalDb
Local SQLite index/cache shared by TUI and Daemon. This is not the source of truth for canonical session bodies. Thread-safe: wraps the connection in a Mutex so it can be shared via Arc<LocalDb>.
LocalSessionFilter
Filter for listing sessions from the local DB.
LocalSessionRow
A local session row stored in the local SQLite index/cache database.
LogFilter
Extended filter for the log command.
RemoteSessionSummary
Minimal remote session payload needed for local index/cache upsert.

Enums§

LocalSortOrder
Sort order for local session listing.
LocalTimeRange
Time range filter for local session listing.

Constants§

LOCAL_SESSION_COLUMNS
Column list for SELECT queries against sessions + session_sync + users.

Functions§

hide_opencode_child_sessions
Remove OpenCode child sessions so only parent sessions remain visible.
is_opencode_child_session
Return true when a cached row corresponds to an OpenCode child session.
parse_opencode_parent_session_idDeprecated
Parse parentID / parentId from an OpenCode session JSON file.