summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/state/state.go
blob: d2cbf039c8bc77902e4fdfc47b6b1f1ddfdaa75a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package state

import (
	"github.com/sst/opencode/pkg/client"
)

type SessionSelectedMsg = *client.SessionInfo
type ModelSelectedMsg struct {
	Provider client.ProviderInfo
	Model    client.ProviderModel
}

type SessionClearedMsg struct{}
type CompactSessionMsg struct{}

// TODO: remove
type StateUpdatedMsg struct {
	State map[string]any
}

// TODO: store in CONFIG/tui.yaml