Skip to content

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

fix(web_chat): correct error code classification test assertions

Steven Enamakelae6905a91d7d
diff --git a/crates/openhuman-core/src/web_chat/web_tests_error_code_classification_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_error_code_classification_tests.rs
index 04418747d5..f2a61707d5 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_error_code_classification_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_error_code_classification_tests.rs
@@ -535,42 +535,6 @@ fn normalize_model_override_trims_value() {
);
}
-// ── Broadcast events ──────────────────────────────────────────
-
-#[test]
-fn subscribe_web_channel_events_returns_receiver() {
- // Just confirm we can subscribe without panic.
- let _rx = subscribe_web_channel_events();
-}
-
-// ── Field builder helpers ─────────────────────────────────────
-
-#[test]
-fn required_string_marks_field_required() {
- let f = required_string("client_id", "c");
- assert!(f.required);
- assert!(matches!(f.ty, TypeSchema::String));
-}
-
-#[test]
-fn optional_string_marks_field_optional() {
- let f = optional_string("model", "c");
- assert!(!f.required);
-}
-
-#[test]
-fn optional_f64_marks_field_optional() {
- let f = optional_f64("temperature", "c");
- assert!(!f.required);
-}
-
-#[test]
-fn json_output_is_required_json_field() {
- let f = json_output("ack", "c");
- assert!(f.required);
- assert!(matches!(f.ty, TypeSchema::Json));
-}
-
#[test]
fn fingerprint_autonomy_change_is_cache_miss() {
// Changing the agent-access policy must invalidate the cached agent so the
@@ -599,16 +563,6 @@ fn fingerprint_model_registry_change_is_cache_miss() {
);
}
-#[test]
-fn fingerprint_identical_inputs_are_cache_hit() {
- let a = fp(None, None, "orchestrator", "anthropic:claude-sonnet-4-6");
- let b = fp(None, None, "orchestrator", "anthropic:claude-sonnet-4-6");
- assert_eq!(
- a, b,
- "identical fingerprints must compare equal (cache hit)"
- );
-}
-
#[test]
fn classify_inference_error_in_stream_tool_history_rejection_uses_malformed_history_copy() {
// #6724: a provider failure delivered inside an HTTP 200 stream reaches