MCPcopy Create free account
hub / github.com/codehamr/codehamr / startChat

Method startChat

internal/tui/model.go:610–615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

608 if splash := strings.Join(m.splashLines(), "\n"); splash != "" {
609 cmds = append(cmds, tea.Println(wrapForScrollback(splash, m.width)))
610 }
611 if scroll := strings.TrimRight(m.scroll.String(), "\n"); scroll != "" {
612 cmds = append(cmds, tea.Println(wrapForScrollback(scroll, m.width)))
613 }
614 if len(m.outbox) > 0 {
615 cmds = append(cmds, tea.Println(wrapForScrollback(strings.Join(m.outbox, "\n"), m.width)))
616 m.outbox = nil
617 }
618 return m, tea.Sequence(cmds...)

Callers 3

updateMethod · 0.95
beginTurnMethod · 0.95
handleStreamClosedMethod · 0.95

Calls 4

buildMessagesMethod · 0.95
buildToolsMethod · 0.95
readEventFunction · 0.85
ChatMethod · 0.80

Tested by

no test coverage detected