Skip to content

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

Merge commit '023fcffeea2c24796402161e5eea8e6e36fdd9d2' into epic-8089-235-skipped-browser-tests

Steven Enamakel227775f4f9dc
diff --cc tests/raw_coverage/host_inference_http_dictation_e2e.rs
index 29fc2b9a3d,6145d11382..0cc8920eca
--- a/tests/raw_coverage/host_inference_http_dictation_e2e.rs
+++ b/tests/raw_coverage/host_inference_http_dictation_e2e.rs
@@@ -1,6 -1,6 +1,6 @@@
--//! Round 23 raw/E2E coverage for inference voice/http/local-service gaps.
++//! Host HTTP inference and local-service integration coverage.
//!
--//! This suite uses temp workspaces, fake binaries, and loopback HTTP/WS servers
++//! This suite uses temp workspaces, fake binaries, and loopback HTTP servers
//! only. It must not call host Ollama, MLX, Python, Whisper, Piper, models, or
//! download endpoints, and OpenHuman itself must not launch any of them.
@@@ -199,48 -165,9 +195,9 @@@ async fn http_models_and_chat_use_mocke
.any(|(path, body)| path == "/v1/chat/completions" && body["model"] == "bare-chat"));
}
- #[tokio::test]
- async fn dictation_ws_empty_stop_and_audio_cap_do_not_load_whisper() {
- let _env = env_lock();
- let tmp = tempdir().expect("tempdir");
- let mut config = temp_config(&tmp);
- config.dictation.streaming = false;
- config.dictation.llm_refinement = false;
-
- let ws_url = serve_dictation_ws(config).await;
-
- let (mut ws, _) = tokio_tungstenite::connect_async(&ws_url)
- .await
- .expect("connect empty dictation ws");
- ws.send(WsMessage::Text(r#"{"type":"stop"}"#.into()))
- .await
- .expect("send stop");
- let final_msg = ws.next().await.expect("final frame").expect("final ok");
- let final_json: Value =
- serde_json::from_str(final_msg.to_text().expect("text frame")).expect("final json");
- assert_eq!(final_json["type"], "final");
- assert_eq!(final_json["text"], "");
- assert_eq!(final_json["raw_text"], "");
-
- let (mut ws, _) = tokio_tungstenite::connect_async(&ws_url)
- .await
- .expect("connect capped dictation ws");
- ws.send(WsMessage::Binary(vec![0u8; 9_600_002].into()))
- .await
- .expect("send oversized pcm");
- let error_msg = ws.next().await.expect("error frame").expect("error ok");
- let error_json: Value =
- serde_json::from_str(error_msg.to_text().expect("text frame")).expect("error json");
- assert_eq!(error_json["type"], "error");
- assert!(error_json["message"]
- .as_str()
- .unwrap_or_default()
- .contains("Recording limit reached"));
- }
-
#[tokio::test]
async fn local_service_reports_endpoint_state_from_mocked_ollama_without_spawning() {
- let _env = env_lock_async().await;
+ let _env = env_lock();
let (base, _state) = serve_mock().await;
let tmp = tempdir().expect("tempdir");
// Runtime binaries on PATH leave a marker if run: OpenHuman probes the