SDKWarning

View as MarkdownOpen in Claude
1type SDKWarning = CredentialRefreshFallbackWarning | CredentialNoRefreshHandlerWarning

Non-fatal warning emitted via client.warnings$.

Use to detect SDK behaviors that affect session liveness or developer-facing contracts but do not warrant disconnection. Discriminated by code.

Existing consumers of errors$ are NOT notified — warnings$ is a separate channel so application code can react to warnings without triggering error-handling code paths (e.g., disconnect cascades, user-facing toasts).