state.go 376 B

123456789101112131415161718192021
  1. package state
  2. import (
  3. "github.com/sst/opencode/pkg/client"
  4. )
  5. type SessionSelectedMsg = *client.SessionInfo
  6. type ModelSelectedMsg struct {
  7. Provider client.ProviderInfo
  8. Model client.ProviderModel
  9. }
  10. type SessionClearedMsg struct{}
  11. type CompactSessionMsg struct{}
  12. // TODO: remove
  13. type StateUpdatedMsg struct {
  14. State map[string]any
  15. }
  16. // TODO: store in CONFIG/tui.yaml