()
| 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 | |
| 616 | func (m *Model) startChat() tea.Cmd { |
| 617 | msgs := m.buildMessages() |
| 618 | ch := m.cli.Chat(m.turnCtx, msgs, m.buildTools()) |
no test coverage detected