MCPcopy Create free account
hub / github.com/coder/agentapi / Text

Method Text

lib/screentracker/pty_conversation.go:607–616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605}
606
607func (c *PTYConversation) Text() string {
608 c.lock.Lock()
609 defer c.lock.Unlock()
610
611 snapshots := c.snapshotBuffer.GetAll()
612 if len(snapshots) == 0 {
613 return ""
614 }
615 return snapshots[len(snapshots)-1].screen
616}
617
618func (c *PTYConversation) SaveState() error {
619 c.lock.Lock()

Callers

nothing calls this directly

Calls 1

GetAllMethod · 0.80

Tested by

no test coverage detected