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
+8
View File
@@ -101,6 +101,14 @@ class BaseChannel(ABC):
"""
pass
def progress_transport_defaults(self) -> tuple[bool, bool] | None:
"""Return channel-owned defaults for progress and tool-hint messages.
``None`` keeps the global channel policy. Channels should override this
only when their transport requires different defaults.
"""
return None
def should_retry_send_error(self, error: Exception) -> bool:
"""Return whether the channel manager may retry a failed delivery.