Skip to content

Commit f5bd08d

Browse files
committed
refactor: use Conversation interface in Server struct
Change Server.conversation from *st.PTYConversation to st.Conversation to program against the interface abstraction rather than the concrete type. This ensures the Conversation interface is a complete abstraction.
1 parent 3dd8c56 commit f5bd08d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/httpapi/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type Server struct {
4141
srv *http.Server
4242
mu sync.RWMutex
4343
logger *slog.Logger
44-
conversation *st.PTYConversation
44+
conversation st.Conversation
4545
agentio *termexec.Process
4646
agentType mf.AgentType
4747
emitter *EventEmitter

0 commit comments

Comments
 (0)