@@ -18,7 +18,7 @@ import (
1818 "github.com/docker/cagent/pkg/tui/components/statusbar"
1919 "github.com/docker/cagent/pkg/tui/core"
2020 "github.com/docker/cagent/pkg/tui/dialog"
21- chatpage "github.com/docker/cagent/pkg/tui/page/chat"
21+ "github.com/docker/cagent/pkg/tui/page/chat"
2222 "github.com/docker/cagent/pkg/tui/styles"
2323)
2424
@@ -44,7 +44,7 @@ type appModel struct {
4444 width , height int
4545 keyMap KeyMap
4646
47- chatPage chatpage .Page
47+ chatPage chat .Page
4848 statusBar statusbar.StatusBar
4949
5050 notification notification.Manager
@@ -87,7 +87,7 @@ func New(a *app.App) tea.Model {
8787 }
8888
8989 t .statusBar = statusbar .New (t )
90- t .chatPage = chatpage .New (a , t .builtInSessionCommands ())
90+ t .chatPage = chat .New (a , t .builtInSessionCommands ())
9191
9292 return t
9393}
@@ -145,7 +145,7 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
145145 }
146146 // Otherwise forward to chat page
147147 updated , cmd := a .chatPage .Update (msg )
148- a .chatPage = updated .(chatpage .Page )
148+ a .chatPage = updated .(chat .Page )
149149 return a , cmd
150150
151151 case error :
@@ -156,7 +156,7 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
156156 if _ , isRuntimeEvent := msg .(runtime.Event ); isRuntimeEvent {
157157 // Always forward runtime events to chat page
158158 updated , cmd := a .chatPage .Update (msg )
159- a .chatPage = updated .(chatpage .Page )
159+ a .chatPage = updated .(chat .Page )
160160 return a , cmd
161161 }
162162
@@ -178,7 +178,7 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
178178 updated , cmd = a .chatPage .Update (msg )
179179 cmds = append (cmds , cmd )
180180
181- a .chatPage = updated .(chatpage .Page )
181+ a .chatPage = updated .(chat .Page )
182182
183183 return a , tea .Batch (cmds ... )
184184 }
@@ -209,7 +209,7 @@ func (a *appModel) handleWindowResize(width, height int) tea.Cmd {
209209 } else {
210210 // Fallback: send window size message
211211 updated , cmd := a .chatPage .Update (tea.WindowSizeMsg {Width : a .width , Height : a .height })
212- a .chatPage = updated .(chatpage .Page )
212+ a .chatPage = updated .(chat .Page )
213213 if cmd != nil {
214214 cmds = append (cmds , cmd )
215215 }
@@ -248,7 +248,7 @@ func (a *appModel) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
248248
249249 // Also send to chat page/editor so user can continue typing
250250 updated , cmd := a .chatPage .Update (msg )
251- a .chatPage = updated .(chatpage .Page )
251+ a .chatPage = updated .(chat .Page )
252252 cmds = append (cmds , cmd )
253253
254254 return tea .Batch (cmds ... )
@@ -267,7 +267,7 @@ func (a *appModel) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
267267 })
268268 default :
269269 updated , cmd := a .chatPage .Update (msg )
270- a .chatPage = updated .(chatpage .Page )
270+ a .chatPage = updated .(chat .Page )
271271 return cmd
272272 }
273273}
@@ -364,7 +364,7 @@ func (a *appModel) builtInSessionCommands() []dialog.Command {
364364 Category : "Session" ,
365365 Execute : func () tea.Cmd {
366366 a .application .NewSession ()
367- a .chatPage = chatpage .New (a .application , a .builtInSessionCommands ())
367+ a .chatPage = chat .New (a .application , a .builtInSessionCommands ())
368368 a .dialog = dialog .New ()
369369 a .statusBar = statusbar .New (a .chatPage )
370370
0 commit comments