The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(transport): remove dedicated Unauthorized variant from BackendTransportError
Steven Enamakelc80f067301d2
diff --git a/crates/openhuman-core/src/backend/transport/error.rs b/crates/openhuman-core/src/backend/transport/error.rsindex ac20f6a65d..a2975cb205 100644--- a/crates/openhuman-core/src/backend/transport/error.rs+++ b/crates/openhuman-core/src/backend/transport/error.rs@@ -29,12 +29,6 @@ pub enum BackendTransportError {/// body when it parsed, otherwise the raw text as a JSON string.#[error("http {status}: {body}")]Status { status: u16, body: Value },- /// The backend rejected the request's credential (`401`). The transport- /// reports it as its own variant so the core never inspects status codes- /// to decide on session recovery; which recovery applies (session expiry- /// vs. a rejected API key) stays the caller's decision.- #[error("http 401: credential rejected")]- Unauthorized,/// `404` on a channel-message route answered by a backend handler: that/// message no longer exists (deleted provider-side or garbage-collected).#[error("http 404: channel message {provider}/{message_id} not found")]@@ -82,7 +76,6 @@ impl BackendTransportError {pub fn status(&self) -> Option<u16> {match self {Self::Status { status, .. } => Some(*status),- Self::Unauthorized => Some(401),Self::ChannelMessageNotFound { .. } | Self::ChannelMessageRouteMissing { .. } => {Some(404)}