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 database shared by TUI and Daemon. 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 database.
LogFilter
Extended filter for the log command.

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_id
Parse parentID / parentId from an OpenCode session JSON file.