Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(transport): add unreachable pattern guard for SDK error mapping

Steven Enamakel13effc0a78c0
diff --git a/crates/openhuman-core/src/api/transport/sdk_compat.rs b/crates/openhuman-core/src/api/transport/sdk_compat.rs
index 803b3a6176..71c257cc99 100644
--- a/crates/openhuman-core/src/api/transport/sdk_compat.rs
+++ b/crates/openhuman-core/src/api/transport/sdk_compat.rs
@@ -95,6 +95,10 @@ pub fn map_sdk_error(error: SdkError) -> BackendTransportError {
error_code,
details,
},
+ // Socket.IO variants only exist with the SDK's `socket` feature, which
+ // the core turns off; kept as a catch-all so a future SDK variant maps
+ // to something rather than failing the build.
+ #[allow(unreachable_patterns)]
other => BackendTransportError::Other(other.to_string()),
}
}