summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/page
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-30 06:47:44 -0500
committeradamdottv <[email protected]>2025-05-30 06:47:44 -0500
commit189d0e5fb2fc728c639952dd17fef1abdf251c18 (patch)
treef214079acd5cae2b01d1638486b40462c4f51888 /internal/tui/page
parentb1b402faa7616a4dd976a2a79e57ae0334ab509b (diff)
downloadopencode-189d0e5fb2fc728c639952dd17fef1abdf251c18.tar.gz
opencode-189d0e5fb2fc728c639952dd17fef1abdf251c18.zip
wip: refactoring tui
Diffstat (limited to 'internal/tui/page')
-rw-r--r--internal/tui/page/chat.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/tui/page/chat.go b/internal/tui/page/chat.go
index 134de6afd..bf30193f5 100644
--- a/internal/tui/page/chat.go
+++ b/internal/tui/page/chat.go
@@ -114,6 +114,7 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// Continue sending keys to layout->chat
case key.Matches(msg, keyMap.NewSession):
p.app.Session = &client.SessionInfo{}
+ p.app.Messages = []client.MessageInfo{}
return p, tea.Batch(
p.clearSidebar(),
util.CmdHandler(state.SessionClearedMsg{}),