@@ -10,7 +10,6 @@ import (
1010 "charm.land/lipgloss/v2"
1111 "github.com/charmbracelet/x/ansi"
1212
13- "github.com/docker/cagent/pkg/app"
1413 "github.com/docker/cagent/pkg/chat"
1514 "github.com/docker/cagent/pkg/runtime"
1615 "github.com/docker/cagent/pkg/session"
@@ -71,7 +70,6 @@ type model struct {
7170 views []layout.Model
7271 width int // Full width including scrollbar space
7372 height int
74- app * app.App
7573
7674 // Height tracking system fields
7775 scrollOffset int // Current scroll position in lines
@@ -98,21 +96,20 @@ type model struct {
9896}
9997
10098// New creates a new message list component
101- func New (a * app. App , sessionState * service.SessionState ) Model {
102- return newModel (120 , 24 , a , sessionState )
99+ func New (sessionState * service.SessionState ) Model {
100+ return newModel (120 , 24 , sessionState )
103101}
104102
105103// NewScrollableView creates a simple scrollable view for displaying messages in dialogs
106104// This is a lightweight version that doesn't require app or session state management
107105func NewScrollableView (width , height int , sessionState * service.SessionState ) Model {
108- return newModel (width , height , nil , sessionState )
106+ return newModel (width , height , sessionState )
109107}
110108
111- func newModel (width , height int , a * app. App , sessionState * service.SessionState ) * model {
109+ func newModel (width , height int , sessionState * service.SessionState ) * model {
112110 return & model {
113111 width : width ,
114112 height : height ,
115- app : a ,
116113 renderedItems : make (map [int ]renderedItem ),
117114 sessionState : sessionState ,
118115 scrollbar : scrollbar .New (),
0 commit comments