Skip to content

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

test: drop coverage for retired dictation and voice-server config methods

Steven Enamakel3239e6c694ae
diff --git a/tests/in_process/config_auth_app_state_connectivity_e2e.rs b/tests/in_process/config_auth_app_state_connectivity_e2e.rs
index 01145fa883..2a32e38708 100644
--- a/tests/in_process/config_auth_app_state_connectivity_e2e.rs
+++ b/tests/in_process/config_auth_app_state_connectivity_e2e.rs
@@ -1811,14 +1811,12 @@ async fn worker_a_controller_schemas_are_fully_exposed() {
"openhuman.config_get_composio_trigger_settings",
"openhuman.config_get_dashboard_settings",
"openhuman.config_get_data_paths",
- "openhuman.config_get_dictation_settings",
"openhuman.config_get_onboarding_completed",
"openhuman.config_get_privacy_mode",
"openhuman.config_get_runtime_flags",
"openhuman.config_get_sandbox_settings",
"openhuman.config_get_search_settings",
"openhuman.config_get_user_timezone",
- "openhuman.config_get_voice_server_settings",
"openhuman.config_reset_local_data",
"openhuman.config_resolve_api_url",
"openhuman.config_set_browser_allow_all",
@@ -1831,7 +1829,6 @@ async fn worker_a_controller_schemas_are_fully_exposed() {
"openhuman.config_update_browser_settings",
"openhuman.config_update_composio_trigger_settings",
"openhuman.config_update_computer_settings",
- "openhuman.config_update_dictation_settings",
"openhuman.config_update_local_ai_settings",
"openhuman.config_update_memory_settings",
"openhuman.config_update_model_settings",
@@ -1839,7 +1836,6 @@ async fn worker_a_controller_schemas_are_fully_exposed() {
"openhuman.config_update_sandbox_settings",
"openhuman.config_update_search_settings",
"openhuman.config_update_user_timezone",
- "openhuman.config_update_voice_server_settings",
"openhuman.config_workspace_onboarding_flag_exists",
"openhuman.config_workspace_onboarding_flag_set",
],
@@ -2138,19 +2134,6 @@ async fn config_controller_mutations_round_trip_over_json_rpc() {
"usage_embeddings": false
}),
),
- (
- 10_009,
- "openhuman.config_update_voice_server_settings",
- json!({
- "auto_start": false,
- "hotkey": "Fn",
- "activation_mode": "push",
- "skip_cleanup": true,
- "min_duration_secs": 0.25,
- "silence_threshold": 0.01,
- "custom_dictionary": ["OpenHuman", "WorkerA"]
- }),
- ),
(
10_010,
"openhuman.config_update_composio_trigger_settings",
@@ -2202,7 +2185,6 @@ async fn config_controller_mutations_round_trip_over_json_rpc() {
(10_103, "openhuman.config_get_dashboard_settings"),
(10_104, "openhuman.config_agent_server_status"),
(10_105, "openhuman.config_get_data_paths"),
- (10_106, "openhuman.config_get_voice_server_settings"),
(10_107, "openhuman.config_get_composio_trigger_settings"),
(10_108, "openhuman.config_get_autonomy_settings"),
(10_109, "openhuman.config_get_search_settings"),
@@ -2367,66 +2349,6 @@ async fn config_runtime_flags_settings_readbacks_and_validation_paths_are_exerci
);
}
- ok(
- &rpc(
- &harness.rpc_base,
- 11_011,
- "openhuman.config_update_dictation_settings",
- json!({
- "enabled": true,
- "hotkey": "Ctrl+Space",
- "activation_mode": "toggle",
- "llm_refinement": false,
- "streaming": true,
- "streaming_interval_ms": 750
- }),
- )
- .await,
- "update_dictation_settings valid",
- );
- let dictation = rpc(
- &harness.rpc_base,
- 11_012,
- "openhuman.config_get_dictation_settings",
- json!({}),
- )
- .await;
- let dictation_payload = payload(&dictation, "get_dictation_settings");
- assert_eq!(
- dictation_payload
- .get("activation_mode")
- .and_then(Value::as_str),
- Some("toggle")
- );
- assert_eq!(
- dictation_payload
- .get("streaming_interval_ms")
- .and_then(Value::as_u64),
- Some(750)
- );
-
- assert_error_contains(
- &rpc(
- &harness.rpc_base,
- 11_013,
- "openhuman.config_update_dictation_settings",
- json!({ "activation_mode": "hold" }),
- )
- .await,
- "update_dictation_settings invalid activation",
- "invalid activation_mode",
- );
- assert_error_contains(
- &rpc(
- &harness.rpc_base,
- 11_014,
- "openhuman.config_update_voice_server_settings",
- json!({ "activation_mode": "hold" }),
- )
- .await,
- "update_voice_server_settings invalid activation",
- "invalid activation_mode",
- );
assert_error_contains(
&rpc(
&harness.rpc_base,
@@ -2646,30 +2568,6 @@ async fn config_runtime_flags_settings_readbacks_and_validation_paths_are_exerci
"reserved cloud providers already in config should be preserved once, not duplicated by echoed client payloads: {filtered_payload}"
);
- ok(
- &rpc(
- &harness.rpc_base,
- 11_019,
- "openhuman.config_update_voice_server_settings",
- json!({
- "min_duration_secs": -1.0,
- "silence_threshold": -0.5
- }),
- )
- .await,
- "update_voice_server_settings clamps non-negative floats",
- );
- let config = rpc(&harness.rpc_base, 11_020, "openhuman.config_get", json!({})).await;
- let config_payload = payload(&config, "config_get after clamps");
- assert_eq!(
- config_payload.pointer("/config/voice_server/min_duration_secs"),
- Some(&json!(0.0))
- );
- assert_eq!(
- config_payload.pointer("/config/voice_server/silence_threshold"),
- Some(&json!(0.0))
- );
-
harness.join.abort();
}
diff --git a/tests/in_process/domain_modules_e2e.rs b/tests/in_process/domain_modules_e2e.rs
index 18eed460d9..b796bf6482 100644
--- a/tests/in_process/domain_modules_e2e.rs
+++ b/tests/in_process/domain_modules_e2e.rs
@@ -254,36 +254,6 @@ async fn config_agent_tools_and_threads_mutation_paths_round_trip() {
Some(false)
);
- let dictation = rpc(
- &harness.rpc_base,
- 30_007,
- "openhuman.config_update_dictation_settings",
- json!({
- "enabled": true,
- "hotkey": "Fn",
- "activation_mode": "push",
- "llm_refinement": false,
- "streaming": true,
- "streaming_interval_ms": 750
- }),
- )
- .await;
- ok(&dictation, "update_dictation_settings");
- let dictation_get = rpc(
- &harness.rpc_base,
- 30_008,
- "openhuman.config_get_dictation_settings",
- json!({}),
- )
- .await;
- assert!(
- payload(&dictation_get, "get_dictation_settings")
- .get("streaming_interval_ms")
- .and_then(Value::as_u64)
- == Some(750),
- "dictation settings should return the persisted settings payload: {dictation_get}"
- );
-
let search = rpc(
&harness.rpc_base,
30_009,
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index 71b976b724..1efe2a1930 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -12212,10 +12212,10 @@ async fn json_rpc_channel_web_chat_with_speak_reply_invokes_reply_speech_inner()
// ── Model resolution and voice settings ─────────────────────────────────
-/// E2E: retired always-on voice parameters are rejected while supported voice
-/// settings continue to round-trip over JSON-RPC.
+/// E2E: the retired dictation and voice-server config methods are absent from
+/// the JSON-RPC surface.
#[tokio::test]
-async fn json_rpc_voice_server_settings_rejects_retired_always_on_params() {
+async fn json_rpc_retired_dictation_and_voice_server_methods_are_unknown() {
let _env_lock = json_rpc_e2e_env_lock_async().await;
let tmp = tempdir().expect("tempdir");
let home = tmp.path();
@@ -12232,66 +12232,21 @@ async fn json_rpc_voice_server_settings_rejects_retired_always_on_params() {
let rpc_base = format!("http://{}", rpc_addr);
tokio::time::sleep(Duration::from_millis(100)).await;
- let initial = post_json_rpc(
- &rpc_base,
- 7401,
- "openhuman.config_get_voice_server_settings",
- json!({}),
- )
- .await;
- let initial_outer = assert_no_jsonrpc_error(&initial, "get_voice_server_settings initial");
- let initial_result = initial_outer.get("result").unwrap();
- for retired in ["always_on_enabled", "wake_word"] {
- assert!(
- initial_result.get(retired).is_none(),
- "retired voice setting {retired} was returned: {initial_outer}"
+ for (id, method) in [
+ (7401, "openhuman.config_get_dictation_settings"),
+ (7402, "openhuman.config_update_dictation_settings"),
+ (7403, "openhuman.config_get_voice_server_settings"),
+ (7404, "openhuman.config_update_voice_server_settings"),
+ ] {
+ let response = post_json_rpc(&rpc_base, id, method, json!({})).await;
+ let error = assert_jsonrpc_error(&response, method);
+ assert_eq!(
+ error["code"].as_i64(),
+ Some(-32601),
+ "retired method {method} must use JSON-RPC method-not-found: {error}"
);
}
- let retired_update = post_json_rpc(
- &rpc_base,
- 7402,
- "openhuman.config_update_voice_server_settings",
- json!({ "always_on_enabled": false }),
- )
- .await;
- let error = assert_jsonrpc_error(
- &retired_update,
- "update_voice_server_settings retired always_on_enabled",
- );
- assert!(
- error["message"]
- .as_str()
- .is_some_and(|message| message.contains("unknown param 'always_on_enabled'")),
- "retired parameter should use the standard unknown-param error: {error}"
- );
-
- let update = post_json_rpc(
- &rpc_base,
- 7403,
- "openhuman.config_update_voice_server_settings",
- json!({ "hotkey": "F13", "min_duration_secs": 0.4 }),
- )
- .await;
- assert_no_jsonrpc_error(&update, "update_voice_server_settings supported fields");
-
- let after = post_json_rpc(
- &rpc_base,
- 7404,
- "openhuman.config_get_voice_server_settings",
- json!({}),
- )
- .await;
- let after_outer = assert_no_jsonrpc_error(&after, "get_voice_server_settings after update");
- assert_eq!(after_outer["result"]["hotkey"], "F13");
- let min_duration_secs = after_outer["result"]["min_duration_secs"]
- .as_f64()
- .expect("min_duration_secs should be numeric");
- assert!(
- (min_duration_secs - 0.4).abs() < 1e-6,
- "supported min_duration_secs update should round-trip: {min_duration_secs}"
- );
-
rpc_join.abort();
}