Skip to content

Commit e2e498f

Browse files
authored
Merge pull request #310 from rumpl/remove-sidebar-title
Remove the title from the sidebar
2 parents 5a89d78 + b12dc68 commit e2e498f

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

pkg/tui/components/sidebar/sidebar.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ type Model interface {
2121
layout.Model
2222
layout.Sizeable
2323

24-
SetTitle(title string)
2524
SetTokenUsage(usage *runtime.Usage)
2625
SetTodos(toolCall tools.ToolCall) error
2726
SetWorking(working bool) tea.Cmd
@@ -31,7 +30,6 @@ type Model interface {
3130
type model struct {
3231
width int
3332
height int
34-
title string
3533
usage *runtime.Usage
3634
todoComp *todo.Component
3735
working bool
@@ -45,7 +43,6 @@ func New() Model {
4543
height: 24, // Default height
4644
usage: &runtime.Usage{},
4745
todoComp: todo.NewComponent(),
48-
title: "New Session",
4946
spinner: spinner.New(spinner.WithSpinner(spinner.Dot)),
5047
}
5148
}
@@ -55,10 +52,6 @@ func (m *model) Init() tea.Cmd {
5552
return nil
5653
}
5754

58-
func (m *model) SetTitle(title string) {
59-
m.title = title
60-
}
61-
6255
func (m *model) SetTokenUsage(usage *runtime.Usage) {
6356
m.usage = usage
6457
}
@@ -132,7 +125,7 @@ func (m *model) View() string {
132125
// Use predefined styles for the usage display
133126

134127
// Build top content (title + pwd + token usage)
135-
topContent := m.title + "\n\n"
128+
topContent := ""
136129

137130
// Add current working directory in grey
138131
if pwd := getCurrentWorkingDirectory(); pwd != "" {

pkg/tui/page/chat/chat.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
213213
return p, tea.Batch(cmd, p.messages.ScrollToBottom())
214214
case *runtime.SessionTitleEvent:
215215
p.sessionTitle = msg.Title
216-
p.sidebar.SetTitle(msg.Title)
217216
case *runtime.TokenUsageEvent:
218217
p.sidebar.SetTokenUsage(msg.Usage)
219218
case *runtime.StreamStoppedEvent:

0 commit comments

Comments
 (0)