feat(webui): show persisted fallback preset on replies (NAN-133)
This commit is contained in:
1 parent
db675a43b6
commit
8d0430c761
43 files changed
+919
-95
No files matched your search
@@ -522,6 +522,8 @@ async def test_image_retry_discards_provider_state_with_images(
|
||||
provider_context=ProviderCallContext(
|
||||
conversation_state=state,
|
||||
session_id="webui:cache-test",
|
||||
response_preset="saved fallback",
|
||||
response_is_fallback=True,
|
||||
),
|
||||
)
|
||||
|
||||
@@ -530,6 +532,8 @@ async def test_image_retry_discards_provider_state_with_images(
|
||||
assert isinstance(retry_context, ProviderCallContext)
|
||||
assert retry_context.conversation_state is None
|
||||
assert retry_context.session_id == "webui:cache-test"
|
||||
assert retry_context.response_preset == "saved fallback"
|
||||
assert retry_context.response_is_fallback is True
|
||||
public_content = messages[0]["content"]
|
||||
if isinstance(public_content, list):
|
||||
assert all(block.get("type") != "image_url" for block in public_content)
|
||||
|
||||
Reference in new issue
Block a user