fix(agent): preserve streamed replies after model failures (#6494)
* fix(agent): preserve streamed replies after model failures * test(webui): settle lazy imports and async settings saves * test(agent): synchronize estimation checks at the operation boundary * docs(webui): explain retained replies after stream failures
This commit is contained in:
1 parent
b6536bfc5e
commit
219c8bb2bc
31 files changed
+462
-27
No files matched your search
@@ -452,4 +452,6 @@ def recovery_state_from_metadata(metadata: Mapping[str, Any] | None) -> dict[str
|
||||
"authentication", "billing", "connection", "timeout", "rate_limit", "server", "unknown",
|
||||
}:
|
||||
payload["failure_error_kind"] = failure_error_kind
|
||||
if state.get("reply_preserved") is True:
|
||||
payload["reply_preserved"] = True
|
||||
return payload
|
||||
Reference in new issue
Block a user