diff options
| author | adamdottv <[email protected]> | 2025-06-04 09:20:42 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-04 09:20:48 -0500 |
| commit | 01050a430f03d479387fdd77816211f5312164af (patch) | |
| tree | 69c1319d8722ce6d0a774234b9528e270dd23400 /packages/tui/internal/state | |
| parent | 0b565b18c48cb2bc6423662b08b8fed14a0cc738 (diff) | |
| download | opencode-01050a430f03d479387fdd77816211f5312164af.tar.gz opencode-01050a430f03d479387fdd77816211f5312164af.zip | |
wip: refactoring tui
Diffstat (limited to 'packages/tui/internal/state')
| -rw-r--r-- | packages/tui/internal/state/state.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/tui/internal/state/state.go b/packages/tui/internal/state/state.go new file mode 100644 index 000000000..d2cbf039c --- /dev/null +++ b/packages/tui/internal/state/state.go @@ -0,0 +1,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 |
