diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-19 16:35:45 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-21 13:42:29 +0200 |
| commit | 2de51274177432b559be3b7deb1f14b9539f2994 (patch) | |
| tree | d47fff06ebf662f6bd7f594c78d0ae97e203a493 /internal/tui/page | |
| parent | 2b5a33e476ae3c6b5c6345777d20792786836dda (diff) | |
| download | opencode-2de51274177432b559be3b7deb1f14b9539f2994.tar.gz opencode-2de51274177432b559be3b7deb1f14b9539f2994.zip | |
initial tool call stream
Diffstat (limited to 'internal/tui/page')
| -rw-r--r-- | internal/tui/page/chat.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/tui/page/chat.go b/internal/tui/page/chat.go index ef826e9a3..a5a656a22 100644 --- a/internal/tui/page/chat.go +++ b/internal/tui/page/chat.go @@ -57,6 +57,14 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) { if cmd != nil { return p, cmd } + case chat.SessionSelectedMsg: + if p.session.ID == "" { + cmd := p.setSidebar() + if cmd != nil { + cmds = append(cmds, cmd) + } + } + p.session = msg case chat.EditorFocusMsg: p.editingMode = bool(msg) case tea.KeyMsg: @@ -91,7 +99,7 @@ func (p *chatPage) setSidebar() tea.Cmd { } func (p *chatPage) clearSidebar() tea.Cmd { - return p.layout.SetRightPanel(nil) + return p.layout.ClearRightPanel() } func (p *chatPage) sendMessage(text string) tea.Cmd { |
