TestClearResetsFailureStreak: /clear starts the conversation over, including the repeated-failure backstop's counters.
(t *testing.T)
| 1933 | t.Fatalf("a trivial turn must not be re-grounded, got %d system notes", n) |
| 1934 | } |
| 1935 | } |
| 1936 | |
| 1937 | // TestVerifyNudgeYieldsToEmptyReply: an empty newest assistant message is the |
| 1938 | // empty reply nudge's domain even on a substantial turn: the verify nudge must |
| 1939 | // not pre empt it (its note re grounds a summary that doesn't exist). |
| 1940 | func TestVerifyNudgeYieldsToEmptyReply(t *testing.T) { |
| 1941 | m := newTestModel(t, func(http.ResponseWriter, *http.Request) {}) |
| 1942 | m.installTurnContext() |
| 1943 | m.phase = phaseStreaming |
| 1944 | m.toolRounds = verifyNudgeMinRounds + 10 |
| 1945 | m.llmRounds = verifyNudgeMinRounds + 10 |
| 1946 | m.history = []chmctx.Message{ |
| 1947 | {Role: chmctx.RoleUser, Content: "build it"}, |
| 1948 | {Role: chmctx.RoleAssistant, Content: ""}, // empty: stopped mid task |
nothing calls this directly
no test coverage detected