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

Function TestClearResetsSessionTokens

internal/tui/tui_test.go:2317–2324  ·  view source on GitHub ↗

TestClearResetsSessionTokens: /clear wipes the conversation AND the session counter: starting over from zero is the whole point.

(t *testing.T)

Source from the content-addressed store, hash-verified

2315
2316 m.phase = phaseStreaming
2317 m.turnStart = time.Now().Add(-90 * time.Second)
2318 bar := stripANSI(m.renderStatusBar())
2319 if !strings.Contains(bar, "generating") {
2320 t.Fatalf("active bar should show the phase label: %q", bar)
2321 }
2322 if !strings.Contains(bar, "1m 30s") {
2323 t.Fatalf("active bar should show the live wall-clock: %q", bar)
2324 }
2325
2326 m.phase = phaseIdle
2327 m.turnStart = time.Time{}

Callers

nothing calls this directly

Calls 2

newTestModelFunction · 0.85
runSlashMethod · 0.80

Tested by

no test coverage detected