fix(channels): preserve global progress defaults

This commit is contained in:
chengyongru
2026-08-07 17:19:14 +08:00
committed by chengyongru
parent 332c159b93
commit bd8d3ad5b6
4 changed files with 47 additions and 9 deletions
+3
View File
@@ -339,6 +339,9 @@ class WeixinChannel(BaseChannel):
self._reply_run_ids: dict[str, str] = {}
self._reply_progress_counts: dict[str, int] = {}
def progress_transport_defaults(self) -> tuple[bool, bool]:
return self.config.send_progress, self.config.send_tool_hints
def should_retry_send_error(self, error: Exception) -> bool:
if isinstance(error, WeixinAPIError):
return error.retryable