MCPcopy Index your code
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 // A new user message is a new goal: drop any in-progress failure streak so
609 // a stale count can't trip the nudge early. History persists; only the
610 // counter resets.
611 m.failKey, m.failStreak = "", 0
612 dbgWritef("user", "%s", sendText)
613 return m, m.appendUserTurn(sendText)
614}
615
616func (m *Model) startChat() tea.Cmd {
617 msgs := m.buildMessages()
618 ch := m.cli.Chat(m.turnCtx, msgs, m.buildTools())

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