File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
3130type 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-
6255func (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 != "" {
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments