fix(webui): only highlight actual model fallbacks

This commit is contained in:
chengyongru
2026-08-21 16:49:30 +08:00
committed by chengyongru
parent 761e95b659
commit 7f97373490
9 changed files with 26 additions and 2 deletions
+2
View File
@@ -179,6 +179,7 @@ async def test_fallback_model_is_scoped_to_its_websocket_chat() -> None:
assert isinstance(outbound.event, TurnModelUpdatedEvent)
assert outbound.event.model == "deepseek/deepseek-chat"
assert outbound.event.model_preset == "Deep Research"
assert outbound.event.is_fallback is True
@pytest.mark.asyncio
@@ -218,6 +219,7 @@ async def test_admitted_runtime_publishes_chat_scoped_model_and_preset(tmp_path)
assert isinstance(outbound.event, TurnModelUpdatedEvent)
assert outbound.event.model == "openai-codex/gpt-5.6"
assert outbound.event.model_preset == "Codex"
assert outbound.event.is_fallback is False
@pytest.mark.asyncio