test(agent): align historical-image selection assertion with merged signature

This commit is contained in:
Alix-007 2026-03-29 15:55:52 +08:00
parent fd40b3df17
commit 592e2adc8d

View file

@ -526,7 +526,7 @@ func TestSelectCandidates_DoesNotUseImageModelForHistoricalImages(t *testing.T)
}
agent := NewAgentInstance(nil, &cfg.Agents.Defaults, cfg, &mockProvider{})
candidates, model, useImageFallback := (&AgentLoop{}).selectCandidates(
candidates, model, usedLight, useImageFallback := (&AgentLoop{}).selectCandidates(
agent,
"text-only follow-up",
[]providers.Message{
@ -537,6 +537,9 @@ func TestSelectCandidates_DoesNotUseImageModelForHistoricalImages(t *testing.T)
nil,
)
if usedLight {
t.Fatal("did not expect light-model routing for text-only current turn")
}
if useImageFallback {
t.Fatal("expected image fallback to be disabled for text-only current turn")
}