Skip to main content

list_sessions_with_opencode_paged

Function list_sessions_with_opencode_paged 

Source
pub async fn list_sessions_with_opencode_paged(
    dir: &Path,
    limit: usize,
    offset: usize,
) -> Result<Vec<SessionSummary>>
Expand description

List sessions including OpenCode sessions for a directory with pagination.

This is more efficient than list_sessions_with_opencode when you only need a subset of sessions (e.g., for the TUI session picker).

  • limit: Maximum number of sessions to return (default: 100)
  • offset: Number of sessions to skip (default: 0)