refactor(webui): infer fallback from active model

This commit is contained in:
chengyongru
2026-08-21 16:49:30 +08:00
committed by chengyongru
parent 7f97373490
commit 953d2ed217
9 changed files with 8 additions and 19 deletions
-2
View File
@@ -179,7 +179,6 @@ 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
@@ -219,7 +218,6 @@ 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