session_picker

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package session_picker provides UI components for selecting and managing chat sessions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is an autonomous UI component for managing chat sessions.

func NewModel

func NewModel(b bus, theme *ui.Theme, pr pathResolver) *Model

NewModel creates a new session picker UI Model with a bus, theme, and path resolver.

func (*Model) Err

func (m *Model) Err() error

Err returns any error encountered during session management.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init starts the session loading process.

func (*Model) SelectedID

func (m *Model) SelectedID() string

SelectedID returns the ID of the chosen session if any.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles UI interactions and translates them into workflow calls.

func (*Model) View

func (m *Model) View() string

View determines what content to display based on the internal state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL