countSystem counts RoleSystem messages, the shape every nudge appends.
(history []chmctx.Message)
| 1946 | fmt.Fprint(w, "data: [DONE]\n\n") |
| 1947 | }) |
| 1948 | m.failKey = tools.BashName + "|make build" |
| 1949 | m.failStreak = maxToolFailStreak - 1 // one away from firing |
| 1950 | mm, _ := m.submit("new goal", "new goal", promptEntry{display: "new goal"}) |
| 1951 | final := mm.(Model) |
| 1952 | if final.failStreak != 0 || final.failKey != "" { |
| 1953 | t.Fatalf("submit must reset the failure streak for a new goal, got key=%q streak=%d", |
| 1954 | final.failKey, final.failStreak) |
| 1955 | } |
| 1956 | } |
| 1957 | |
| 1958 | // TestClearResetsFailureStreak: /clear starts the conversation over, including |
| 1959 | // the repeated-failure backstop's counters. |
no outgoing calls
no test coverage detected