MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestClearResetsFailureStreak

Function TestClearResetsFailureStreak

internal/tui/tui_test.go:1935–1945  ·  view source on GitHub ↗

TestClearResetsFailureStreak: /clear starts the conversation over, including the repeated-failure backstop's counters.

(t *testing.T)

Source from the content-addressed store, hash-verified

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).
1940func 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

Callers

nothing calls this directly

Calls 2

newTestModelFunction · 0.85
runSlashMethod · 0.80

Tested by

no test coverage detected