MCPcopy Index your code
hub / github.com/codehamr/codehamr / appendUserTurn

Method appendUserTurn

internal/tui/model.go:640–643  ·  view source on GitHub ↗

appendUserTurn appends a user-role message to history and starts a turn. The only path that does so; used by submit.

(content string)

Source from the content-addressed store, hash-verified

638 m.turnStart = time.Now()
639 m.lastOutcome = outcomeNone // the new run replaces the prior frozen summary
640 m.phase = phaseThinking
641 return m.startChat()
642}
643
644// appendUserTurn appends a user-role message to history and starts a turn.
645// The only path that does so; used by submit.
646func (m *Model) appendUserTurn(content string) tea.Cmd {

Callers 1

submitMethod · 0.95

Calls 1

beginTurnMethod · 0.95

Tested by

no test coverage detected