appendUserTurn appends a user-role message to history and starts a turn. The only path that does so; used by submit.
(content string)
| 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. |
| 646 | func (m *Model) appendUserTurn(content string) tea.Cmd { |